/* css/style.css - Complete Styles */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4F46E5;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-large, .btn-add, .btn-remove, .btn-google {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  border: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #4F46E5;
  color: white;
}

.btn-primary:hover {
  background: #4338CA;
}

.btn-secondary {
  background: #6B7280;
  color: white;
}

.btn-secondary:hover {
  background: #4B5563;
}

.btn-outline {
  background: transparent;
  color: #4F46E5;
  border: 2px solid #4F46E5;
}

.btn-outline:hover {
  background: #4F46E5;
  color: white;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.btn-add {
  background: #10B981;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-add:hover {
  background: #059669;
}

.btn-remove {
  background: #EF4444;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-remove:hover {
  background: #DC2626;
}

.btn-google {
  background: white;
  color: #333;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-google:hover {
  background: #f9f9f9;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* Features */
.features {
  padding: 4rem 0;
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 8px;
  background: #f9f9f9;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Auth Container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 450px;
  width: 100%;
}

.auth-box h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: #4F46E5;
}

.auth-subtitle {
  text-align: center;
  color: #6B7280;
  margin-bottom: 2rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  padding: 0.75rem;
  border: none;
  background: #f3f4f6;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #4F46E5;
  color: white;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4F46E5;
}

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E5E7EB;
}

.auth-divider span {
  background: white;
  padding: 0 1rem;
  position: relative;
  color: #6B7280;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6B7280;
}

.error-message {
  color: #EF4444;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.success-message {
  color: #10B981;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Dashboard */
.dashboard {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  color: #1F2937;
}

.dashboard-content {
  display: grid;
  gap: 2rem;
}

.profile-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-info h2 {
  margin-bottom: 0.5rem;
  color: #1F2937;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.no-profile {
  text-align: center;
  padding: 2rem;
}

.profile-preview {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.preview-content {
  margin-top: 1rem;
}

.preview-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-item strong {
  display: inline-block;
  min-width: 120px;
  color: #6B7280;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #6B7280;
}

.close:hover {
  color: #1F2937;
}

.username-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.username-input-group input {
  flex: 1;
}

.domain-suffix {
  color: #6B7280;
  font-size: 0.9rem;
}

#username-status {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

#username-status.success {
  color: #10B981;
}

#username-status.error {
  color: #EF4444;
}

#username-suggestions {
  margin: 1rem 0;
}

#username-suggestions p {
  font-size: 0.9rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.suggestion-chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #F3F4F6;
  border-radius: 20px;
  margin: 0.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.suggestion-chip:hover {
  background: #4F46E5;
  color: white;
}

#deploy-result {
  margin-top: 1rem;
}

#deploy-result .success {
  background: #D1FAE5;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

#deploy-result .success a {
  color: #4F46E5;
  font-weight: bold;
}

/* Create Form */
.create-container {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.create-container h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #1F2937;
}

.subtitle {
  text-align: center;
  color: #6B7280;
  margin-bottom: 2rem;
}

.form-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
  margin-bottom: 1.5rem;
  color: #1F2937;
  border-bottom: 2px solid #4F46E5;
  padding-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.dynamic-item {
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #E5E7EB;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.form-actions {
  text-align: center;
  margin: 2rem 0;
}

#save-status {
  margin-top: 1rem;
}

#save-status p {
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

#save-status .info {
  background: #DBEAFE;
  color: #1E40AF;
}

#save-status .success {
  background: #D1FAE5;
  color: #065F46;
}

#save-status .error {
  background: #FEE2E2;
  color: #991B1B;
}

/* Profile Page */
.profile-page {
  background: white;
}

#profile-container {
  min-height: 100vh;
  padding: 2rem;
}

#loading {
  text-align: center;
  padding: 4rem 0;
  font-size: 1.2rem;
  color: #6B7280;
}

#error-container {
  text-align: center;
  padding: 4rem 2rem;
}

#error-container h2 {
  color: #EF4444;
  margin-bottom: 1rem;
}

#profile-content {
  max-width: 900px;
  margin: 0 auto;
}

.profile-header {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.profile-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.profile-header p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

.profile-header a {
  color: white;
  text-decoration: underline;
}

#profile-social {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

#profile-social a {
  background: rgba(255,255,255,0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

#profile-social a:hover {
  background: rgba(255,255,255,0.3);
}

.profile-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section h2 {
  color: #1F2937;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #4F46E5;
  padding-bottom: 0.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-badge {
  background: #EEF2FF;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.skill-badge strong {
  display: block;
  color: #4F46E5;
  margin-bottom: 0.25rem;
}

.skill-badge span {
  font-size: 0.9rem;
  color: #6B7280;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  padding-left: 2rem;
  border-left: 3px solid #4F46E5;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 12px;
  height: 12px;
  background: #4F46E5;
  border-radius: 50%;
}

.timeline-item h3 {
  color: #1F2937;
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  color: #4F46E5;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-item .date {
  color: #6B7280;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.project-card h3 {
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.project-card .tech-tags {
  color: #6B7280;
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.5rem 0;
}

.project-card a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 500;
}

.project-card a:hover {
  text-decoration: underline;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.cert-card h3 {
  color: #1F2937;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.cert-card p {
  color: #6B7280;
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.cert-card a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.cert-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer, .profile-footer {
  text-align: center;
  padding: 2rem 0;
  background: #1F2937;
  color: white;
  margin-top: 4rem;
}

footer a, .profile-footer a {
  color: #4F46E5;
  text-decoration: none;
}

footer a:hover, .profile-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .profile-actions {
    flex-direction: column;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-grid,
  .projects-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}
