/* index.css — Styles specific to MakeNation homepage (index.html) */

/* ── Overflow guard ── */
html, body {
  overflow-x: hidden;
}

/* ── Glassmorphism header ── */
header {
  background: rgba(29, 53, 87, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  height: 90px;
}
header .logo img {
  height: 75px;
}
header .btn-outline {
  border-radius: 999px;
  transition: all 0.3s ease;
}
header .btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Homepage nav extras ── */
.nav-links span {
  color: #fff;
}
.mobile-home-link {
  display: none;
}
.nav-links .sign-out-link {
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-home-link {
    display: block !important;
    font-weight: bold;
    font-size: 1.4rem !important;
  }
}

/* ── Hero Section ── */
.hero {
  background: #e2e9f0;
  padding: 80px 0 50px;
  text-align: center;
}
.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}
.hero p {
  font-size: 1.35rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 40px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}

/* ── Request Form ── */
.request-form {
  max-width: 800px;
  margin: 0 auto;
  background: #f8fafc;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 20px 25px -5px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
}
.form-group {
  margin-bottom: 28px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #475569;
  font-size: 0.95rem;
}
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db; /* Softer gray border */
  border-radius: 8px; /* Match form radius */
  font-size: 1rem;
  background: #f8fafc;
  transition: all 0.3s ease;
  color: #334155;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #a8dadc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 218, 220, 0.2);
}
textarea {
  min-height: 150px;
  resize: vertical;
}
@media (max-width: 768px) {
  .request-form {
    padding: 24px;
  }
  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* ── Form buttons (page-specific overrides) ── */
.request-form .btn-primary {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.request-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 53, 87, 0.25);
}
.btn-secondary {
  flex: 1;
  background: #f2f2f2;
  color: #1d3557;
  border: 2px solid #1d3557;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.1);
}

/* ── Not logged in banner ── */
.not-logged-in {
  text-align: center;
  padding: 20px;
  background: #fff3cd;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #8a6d15;
}

/* ── Suspension banner ── */
.suspension-banner {
  background: #fef0eb;
  border: 1px solid #f0d8d4;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.suspension-banner h3 {
  color: #b5451e;
  margin: 0 0 8px 0;
}
.suspension-banner p {
  color: #7f1d1d;
  margin: 0;
}

/* ── Cancel warning banner ── */
.cancel-warning-banner {
  background: #fef9e7;
  border: 1px solid #f9c74f;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}
.cancel-warning-banner p {
  color: #8a6d15;
  margin: 0;
  font-size: 0.9rem;
}

/* ── AI Questions Section ── */
@keyframes spin { to { transform: rotate(360deg); } }

.ai-questions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #a8dadc 0%, #c7d2fe 100%);
  border-radius: 8px;
}
.ai-questions-icon {
  font-size: 1.5rem;
}
.ai-questions-header h4 {
  margin: 0;
  color: #4338ca;
  font-size: 1rem;
}
.ai-questions-header p {
  margin: 4px 0 0 0;
  color: #6366f1;
  font-size: 0.85rem;
}
.ai-questions-loading {
  text-align: center;
  padding: 20px;
  color: #6366f1;
}
.ai-questions-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid #a8dadc;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.ai-question-group {
  margin-bottom: 16px;
}
.ai-question-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1e293b;
}
.ai-question-group select,
.ai-question-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  font-size: 1rem;
  background: #fdfdff;
  transition: all 0.3s ease;
}
.ai-question-group select:focus,
.ai-question-group input[type="text"]:focus {
  outline: none;
  border-color: #6366f1;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.ai-question-optional {
  color: #9ca3af;
  font-weight: normal;
  font-size: 0.85rem;
}
.ai-questions-error {
  color: #6b7280;
  font-style: italic;
  padding: 12px;
  background: #f3f4f6;
  border-radius: 6px;
}
.ai-badge {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 12px;
  text-align: right;
}


/* ── Form helper text ── */
.form-helper {
  color: #64748b;
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
}
.form-helper--info {
  color: #3b82f6;
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
}

/* ── Budget / deadline row ── */
.form-row {
  display: flex;
  gap: 20px;
}
.form-row-item {
  flex: 1;
}

/* ── File input area ── */
.file-input {
  padding: 24px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  color: #64748b;
}
.file-input:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* ── Image preview grid ── */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

/* ── Inline image previews (from JS) ── */
.img-preview {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #a8dadc;
}
.img-preview--draft {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #f9c74f;
}

/* ── Button row ── */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── How It Works ── */
.how-it-works {
  padding: 80px 0;
  background: #e2e9f0;
}
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
}
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.step-card {
  flex: 0 1 calc(33.333% - 20px);
  max-width: 350px;
  min-width: 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 25px 30px -10px rgba(0, 0, 0, 0.04);
}
.step-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  background: #1d3557;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 1;
}
.step-card h3 {
  padding: 20px 15px;
  margin: 0;
  font-size: 1.1rem;
  color: #1d3557;
}

/* ── Reviews ── */
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ddd;
  object-fit: cover;
}
.review-meta {
  flex: 1;
}
.review-meta h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #264653;
}
.review-meta .stars {
  color: #f9c74f;
  font-size: 0.9rem;
}
.review-project {
  font-size: 0.85rem;
  color: #1d3557;
  margin-bottom: 8px;
  font-weight: 500;
}
.review-text {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.no-reviews {
  text-align: center;
  color: #666;
  padding: 40px;
  grid-column: 1 / -1;
}
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ── Tooltip ── */
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
  line-height: 1.4;
}
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
.help-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #1d3557;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  font-weight: bold;
  cursor: help;
  margin-left: 6px;
}

/* ── Footer (multi-column dark footer) ── */
.footer {
  background: #0f1923;
  color: #f2f2f2;
  padding: 60px 0 30px;
}
.footer a {
  color: #8c9ca4;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  color: #8c9ca4;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
}
.footer-brand img {
  height: 60px;
  opacity: 0.9;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #8c9ca4;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: #8c9ca4;
  font-size: 0.8rem;
}
.footer-bottom-links a {
  color: #8c9ca4;
  font-size: 0.8rem;
  margin-left: 20px;
}
.footer-bottom-links a:hover {
  color: #fff;
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Draft editing notice (from JS) ── */
.draft-notice {
  background: #fef9e7;
  border: 2px solid #f9c74f;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}
.draft-notice a {
  color: #1d3557;
  margin-left: 12px;
}

/* ── Admin link color (from JS) ── */
.admin-link {
  color: #f9c74f;
}

/* ── Welcome text weight (from JS) ── */
.welcome-text {
  font-weight: 500;
}

/* ── Post-request multi-select dropdowns (materials, styles) ── */
.pr-dropdown-multi {
  position: relative;
}
.pr-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 1rem;
  color: #334155;
  text-align: left;
  font-family: inherit;
  line-height: 1.4;
  transition: all 0.3s ease;
}
.pr-dropdown-trigger:hover {
  border-color: #a8dadc;
}
.pr-dropdown-multi.open .pr-dropdown-trigger {
  border-color: #a8dadc;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 218, 220, 0.2);
}
.pr-dropdown-arrow {
  font-size: 0.8rem;
  color: #64748b;
  transition: transform 0.2s;
}
.pr-dropdown-multi.open .pr-dropdown-arrow {
  transform: rotate(180deg);
}
.pr-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 250px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pr-dropdown-multi.open .pr-dropdown-panel {
  display: block;
}
.pr-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid #dff0f5;
}
.pr-dropdown-item:last-child {
  border-bottom: none;
}
.pr-dropdown-item:hover {
  background: #dff0f5;
}
.pr-dropdown-item:has(:checked) {
  background: #d0e8ee;
  color: #3d5a3f;
  font-weight: 500;
}
.pr-dropdown-item input[type="checkbox"] {
  width: auto;
  padding: 0;
  border: none;
  accent-color: #277da1;
  flex-shrink: 0;
}

/* ── Fade-in scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive header ── */
@media (max-width: 768px) {
  header {
    height: 80px;
  }
  header .logo img {
    height: 65px;
  }
}
