/* Pet Picts - AI Pet Portrait Service */
/* Fonts loaded in HTML: Playfair Display + Inter */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a2e;
  --bg-light: #16213e;
  --bg-card: #0f3460;
  --accent: #f0a500;
  --accent-hover: #d4920a;
  --text: #e8e8e8;
  --text-muted: #a0a0b8;
  --radius: 12px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,26,46,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240,165,0,.15);
  padding: 14px 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--accent); }
nav a.nav-link { color: var(--text-muted); margin-left: 24px; font-size: .9rem; transition: color .2s; }
nav a.nav-link:hover { color: var(--accent); text-decoration: none; }

/* BUTTONS */
.btn {
  display: inline-block; padding: 14px 32px;
  background: var(--accent); color: #1a1a2e;
  font-weight: 700; font-size: 1.05rem;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: transparent; border: 2px solid var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #1a1a2e; }
.btn-large { padding: 18px 40px; font-size: 1.15rem; }

/* HERO */
.hero {
  text-align: center; padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}
.hero-layout {
  display: flex; align-items: center; justify-content: center; gap: 40px;
}
.hero-text { flex: 0 1 500px; }
.hero-samples {
  flex: 0 1 200px; display: flex; flex-direction: column; gap: 12px;
}
.hero-img {
  width: 100%; border-radius: var(--radius); border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.hero-img-1 { transform: rotate(-3deg); }
.hero-img-2 { transform: rotate(2deg); }
.hero-img-3 { transform: rotate(-1deg); }
@media (max-width: 900px) {
  .hero-samples { display: none; }
  .hero-layout { display: block; }
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero .price-tag {
  display: inline-block; background: rgba(240,165,0,.12); border: 1px solid var(--accent);
  padding: 6px 18px; border-radius: 50px; font-weight: 600; margin-bottom: 28px; color: var(--accent);
}

/* STYLE GRID */
.styles-section { padding: 70px 0; }
.styles-section h2 { text-align: center; font-size: 2rem; margin-bottom: 12px; }
.styles-section .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.styles-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.style-card {
  background: var(--bg-light); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06); transition: transform .2s, border-color .2s;
}
.style-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.style-card .thumb {
  aspect-ratio: 1; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.style-card .sample-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.style-card h3 { font-size: .95rem; padding: 12px; text-align: center; font-family: 'Inter', sans-serif; font-weight: 600; }

/* SHOWCASE GALLERY */
.showcase-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.showcase-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06); transition: transform .2s;
}
.showcase-grid img:hover { transform: scale(1.05); }
@media (max-width: 768px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }

/* HOW IT WORKS */
.how-section { padding: 70px 0; background: var(--bg-light); }
.how-section h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; text-align: center; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #1a1a2e;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 8px; font-size: 1.1rem; }
.steps p { color: var(--text-muted); font-size: .95rem; }

/* FAQ */
.faq-section { padding: 70px 0; }
.faq-section h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.faq-q { font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { color: var(--text-muted); max-height: 0; overflow: hidden; transition: max-height .3s, padding .3s; }
.faq-item.open .faq-a { max-height: 200px; padding-top: 12px; }

/* CTA BANNER */
.cta-banner { text-align: center; padding: 60px 0; background: var(--bg-light); }
.cta-banner h2 { font-size: 2rem; margin-bottom: 20px; }

/* FOOTER */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,.06); text-align: center; }
footer p { color: var(--text-muted); font-size: .85rem; }
footer .links { margin-bottom: 12px; }
footer .links a { color: var(--text-muted); margin: 0 12px; font-size: .85rem; }
footer .links a:hover { color: var(--accent); }

/* ========== UPLOAD PAGE ========== */
.upload-section { padding: 60px 0; max-width: 600px; margin: 0 auto; }
.upload-section h1 { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.upload-section .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 32px; }

.drop-zone {
  border: 2px dashed rgba(240,165,0,.4); border-radius: var(--radius);
  padding: 60px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--bg-light);
}
.drop-zone:hover, .drop-zone.dragover { border-color: var(--accent); background: rgba(240,165,0,.05); }
.drop-zone .icon { font-size: 3rem; margin-bottom: 12px; }
.drop-zone p { color: var(--text-muted); }
.drop-zone.has-image { padding: 20px; }
.drop-zone.has-image img { max-height: 360px; margin: 0 auto; border-radius: 8px; }

.upload-tips { background: var(--bg-light); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
.upload-tips h3 { font-size: .95rem; margin-bottom: 8px; color: var(--accent); }
.upload-tips li { color: var(--text-muted); font-size: .9rem; margin-left: 18px; margin-bottom: 4px; }

.checkout-bar { text-align: center; margin-top: 32px; }
.checkout-bar .btn { width: 100%; max-width: 400px; }
.checkout-bar .btn:disabled { opacity: .4; cursor: not-allowed; }

/* ========== GALLERY PAGE ========== */
.gallery-section { padding: 60px 0; }
.gallery-section h1 { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.gallery-section .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.loading-state { text-align: center; padding: 60px 0; }
.spinner {
  width: 48px; height: 48px; border: 4px solid rgba(240,165,0,.2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portraits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 40px;
}
.portrait-card {
  background: var(--bg-light); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.portrait-card .image-wrap {
  aspect-ratio: 1; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  position: relative;
}
.portrait-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card .card-footer { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.portrait-card h3 { font-size: .95rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.portrait-card .btn-sm {
  padding: 6px 14px; font-size: .8rem; background: var(--accent); color: #1a1a2e;
  border: none; border-radius: 6px; cursor: pointer; font-weight: 600;
}

.gallery-actions { text-align: center; margin-bottom: 40px; }
.gallery-actions .btn { margin: 0 8px 12px; }

.share-section { text-align: center; margin-bottom: 40px; }
.share-section h3 { margin-bottom: 16px; font-size: 1.1rem; }
.share-btns a {
  display: inline-block; padding: 10px 20px; margin: 0 6px 8px;
  background: var(--bg-light); border-radius: 8px; font-size: .9rem;
  color: var(--text); border: 1px solid rgba(255,255,255,.08);
}
.share-btns a:hover { border-color: var(--accent); text-decoration: none; }

/* ========== LEGAL PAGES ========== */
.legal-page { padding: 60px 0; max-width: 700px; margin: 0 auto; }
.legal-page h1 { font-size: 2rem; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.3rem; margin: 28px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 12px; }
.legal-page ul { margin-left: 20px; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero { padding: 50px 0 40px; }
  .styles-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  @media (min-width: 600px) and (max-width: 900px) { .styles-grid { grid-template-columns: repeat(3, 1fr); } }
  .portraits-grid { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
}
