/* ========================================================
   App-wide styles for inner pages (gallery, order, pricing)
   Does NOT override theme.css variables.
   ======================================================== */

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--fg); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: opacity 0.15s !important;
}

.nav-cta:hover { opacity: 0.85; }

/* App main */
.app-main {
  min-height: calc(100vh - 64px - 81px);
}

/* Page hero (inner pages) */
.page-hero {
  padding: 80px 40px 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.page-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.2); color: var(--fg); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover { color: var(--fg); border-color: rgba(255,255,255,0.15); }

.btn-sm { font-size: 0.82rem; padding: 7px 16px; }

/* Landing page CTA block (injected into existing hero) */
.hero-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 56px;
}

/* ---- Gallery ---- */
.gallery-section { padding: 0 40px 120px; }
.gallery-inner { max-width: 1100px; margin: 0 auto; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 80px;
}

.sample-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.sample-card:hover { border-color: rgba(255,61,0,0.25); transform: translateY(-2px); }

.sample-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.sample-thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card)); }

.sample-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.7);
  color: var(--fg-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}

.sample-body { padding: 24px; }

.sample-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.sample-body p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.sample-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.meta-arrow { color: var(--accent); }
.meta-clip { color: var(--accent-soft); font-weight: 600; }

.sample-links { display: flex; gap: 10px; flex-wrap: wrap; }

.gallery-cta {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.gallery-cta p {
  color: var(--fg-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.empty-state {
  color: var(--fg-muted);
  font-size: 0.95rem;
  padding: 60px 0;
  text-align: center;
}

/* ---- Order Form ---- */
.order-section { padding: 0 40px 120px; }

.order-inner { max-width: 720px; margin: 0 auto; }

.order-form { display: flex; flex-direction: column; gap: 0; }

.form-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.form-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

.field input,
.field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field textarea:focus { border-color: rgba(255,61,0,0.4); }

.field textarea { resize: vertical; min-height: 88px; }

.field-hint { font-size: 0.78rem; color: var(--fg-muted); }

/* Tier grid */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tier-option {
  cursor: pointer;
  position: relative;
}

.tier-option input[type=radio] { display: none; }

.tier-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 12px;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 1;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: border-color 0.15s;
  height: 100%;
}

.tier-option.selected .tier-card,
.tier-option input:checked ~ .tier-card { border-color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); }

.tier-option:hover .tier-card { border-color: rgba(255,61,0,0.3); }

.tier-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }

.tier-price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.tier-price span { font-size: 0.85rem; font-weight: 500; color: var(--fg-muted); }

.tier-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tier-card li { font-size: 0.82rem; color: var(--fg-muted); padding-left: 16px; position: relative; }
.tier-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.btn-submit { margin-top: 40px; align-self: flex-start; font-size: 1rem; padding: 16px 36px; }

/* Success */
.success-box {
  text-align: center;
  padding: 80px 40px;
  border: 1px solid rgba(255,61,0,0.2);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-box h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; }
.success-box p { color: var(--fg-muted); max-width: 440px; margin: 0 auto; }

/* Error banner */
.error-banner {
  background: rgba(255,61,0,0.1);
  border: 1px solid rgba(255,61,0,0.3);
  color: var(--accent-soft);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ---- Pricing page ---- */
.full-pricing-section { padding: 0 40px 120px; }
.full-pricing-inner { max-width: 1100px; margin: 0 auto; }

.price-card .btn-primary,
.price-card .btn-outline {
  width: 100%;
  justify-content: center;
  margin-top: 28px;
}

.pricing-faq {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
}

.pricing-faq h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.faq-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item p { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }

/* Admin login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 28px; color: var(--fg-muted); }

/* Mobile */
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .page-hero { padding: 48px 24px 32px; }
  .gallery-section { padding: 0 24px 80px; }
  .gallery-grid { grid-template-columns: 1fr; }

  .order-section { padding: 0 24px 80px; }
  .field-row { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }

  .full-pricing-section { padding: 0 24px 80px; }
  .faq-grid { grid-template-columns: 1fr; }
}
