/* public/css/style.css */

:root,
html[data-theme="biomimetic"] {
    --theme-bg: #f5f6ed;
    --theme-surface: rgba(255, 255, 250, .9);
    --theme-surface-soft: #e9f1e7;
    --theme-text: #17362f;
    --theme-muted: #61756d;
    --theme-border: #cad9cf;
    --theme-accent: #00b9b0;
    --theme-accent-2: #78bf70;
    --theme-accent-text: #062f2c;
    --theme-nav: rgba(11, 42, 37, .96);
    --theme-hero: radial-gradient(circle at 82% 12%, rgba(30, 231, 213, .32), transparent 27%), linear-gradient(135deg, #0a302c, #176b5d 58%, #57a26f);
    --theme-radius: 1.25rem;
    --theme-shadow: 0 1rem 2.75rem rgba(13, 69, 57, .11);
    --theme-font: 'Inter', system-ui, sans-serif;
}

html[data-theme="neo-brutalism"] {
    --theme-bg: #f3efe2;
    --theme-surface: #fffdf4;
    --theme-surface-soft: #ffd84d;
    --theme-text: #171717;
    --theme-muted: #4e4e4e;
    --theme-border: #171717;
    --theme-accent: #ff5a1f;
    --theme-accent-2: #ffd400;
    --theme-accent-text: #171717;
    --theme-nav: #171717;
    --theme-hero: linear-gradient(110deg, #ff5a1f 0 42%, #ffd400 42% 70%, #f3efe2 70%);
    --theme-radius: 0;
    --theme-shadow: 7px 7px 0 #171717;
    --theme-font: Arial, Helvetica, sans-serif;
}

html[data-theme="glass"] {
    --theme-bg: #070b19;
    --theme-surface: rgba(20, 28, 53, .66);
    --theme-surface-soft: rgba(135, 168, 255, .12);
    --theme-text: #f5f7ff;
    --theme-muted: #b8c2dd;
    --theme-border: rgba(255, 255, 255, .2);
    --theme-accent: #8be9fd;
    --theme-accent-2: #d69cff;
    --theme-accent-text: #07101d;
    --theme-nav: rgba(6, 10, 25, .78);
    --theme-hero: radial-gradient(circle at 15% 5%, rgba(80, 217, 255, .38), transparent 32%), radial-gradient(circle at 84% 30%, rgba(211, 113, 255, .32), transparent 30%), linear-gradient(145deg, #071021, #151b3c);
    --theme-radius: 1.5rem;
    --theme-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .13);
    --theme-font: 'Inter', system-ui, sans-serif;
}

html[data-theme="mono-neon"] {
    --theme-bg: #050505;
    --theme-surface: #111;
    --theme-surface-soft: #181818;
    --theme-text: #fff;
    --theme-muted: #aaa;
    --theme-border: #333;
    --theme-accent: #c7ff00;
    --theme-accent-2: #c7ff00;
    --theme-accent-text: #050505;
    --theme-nav: #050505;
    --theme-hero: linear-gradient(115deg, #050505 0 72%, #c7ff00 72% 73%, #161616 73%);
    --theme-radius: .2rem;
    --theme-shadow: 0 0 0 1px #333;
    --theme-font: 'Inter', system-ui, sans-serif;
}

html[data-theme="retro-future"] {
    --theme-bg: #17213a;
    --theme-surface: #f1e6c9;
    --theme-surface-soft: #213253;
    --theme-text: #17213a;
    --theme-muted: #625f5b;
    --theme-border: #ba6b42;
    --theme-accent: #ff9b42;
    --theme-accent-2: #59d98e;
    --theme-accent-text: #241306;
    --theme-nav: #3b1731;
    --theme-hero: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px), linear-gradient(135deg, #3b1731, #273e68 58%, #075f58);
    --theme-radius: .65rem;
    --theme-shadow: 0 0 0 2px #17213a, 6px 6px 0 #ba6b42;
    --theme-font: 'Courier New', ui-monospace, monospace;
}

body {
    color: var(--theme-text);
    font-family: var(--theme-font);
    background: var(--theme-bg);
    transition: color .25s ease, background .25s ease;
}

.navbar.bg-dark { background: var(--theme-nav) !important; backdrop-filter: blur(18px); }
.theme-picker { min-width: 125px; color: var(--theme-text); border-color: var(--theme-border); background-color: var(--theme-surface); }
.dropdown-menu { color: var(--theme-text); border-color: var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); box-shadow: var(--theme-shadow); }
.dropdown-item { color: var(--theme-text); }
.dropdown-item:hover, .dropdown-item:focus { color: var(--theme-accent-text); background: var(--theme-accent); }
.btn-success, .text-bg-success { color: var(--theme-accent-text) !important; border-color: var(--theme-accent) !important; background: var(--theme-accent) !important; }
.btn-outline-dark { color: var(--theme-text); border-color: var(--theme-text); }
.btn-outline-dark:hover { color: var(--theme-accent-text); border-color: var(--theme-accent); background: var(--theme-accent); }
.text-success, a { color: var(--theme-accent); }
.text-muted { color: var(--theme-muted) !important; }
.form-control, .form-select { color: var(--theme-text); border-color: var(--theme-border); border-radius: calc(var(--theme-radius) * .55); background-color: var(--theme-surface); }
.form-control:focus, .form-select:focus { color: var(--theme-text); border-color: var(--theme-accent); background-color: var(--theme-surface); box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--theme-accent) 24%, transparent); }
.form-control::placeholder { color: var(--theme-muted); }
.alert-warning { color: var(--theme-text); background: color-mix(in srgb, var(--theme-accent-2) 24%, var(--theme-surface)); }
.gbp-hero, .referral-hero, .hero-section { background: var(--theme-hero); }
.gbp-card, .service-referral-card, .ai-generator-box, .card { color: var(--theme-text); border-color: var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); box-shadow: var(--theme-shadow); }
.gbp-privacy-note, .referral-hero-note { border-radius: var(--theme-radius); }
.gbp-summary, .referral-detail-panel { color: var(--theme-text); background: var(--theme-surface-soft); }
.gbp-check, .service-referral-heading, .referral-details > div { border-color: var(--theme-border); }
.referral-price-table, .referral-price-table td, .referral-price-table th { color: var(--theme-text); border-color: var(--theme-border); background: var(--theme-surface); }
.referral-disclaimer { color: var(--theme-text); border-left-color: var(--theme-accent); background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)); }
footer.bg-dark { background: var(--theme-nav) !important; }

html[data-theme="neo-brutalism"] h1,
html[data-theme="neo-brutalism"] h2,
html[data-theme="neo-brutalism"] h3 { font-weight: 900 !important; text-transform: uppercase; letter-spacing: -.04em; }
html[data-theme="neo-brutalism"] .gbp-card,
html[data-theme="neo-brutalism"] .service-referral-card { border-width: 3px; }
html[data-theme="neo-brutalism"] body { background-image: radial-gradient(#171717 0.7px, transparent .7px); background-size: 7px 7px; }

html[data-theme="glass"] body { background-image: radial-gradient(circle at 5% 35%, rgba(79, 205, 255, .12), transparent 27%), radial-gradient(circle at 90% 80%, rgba(203, 108, 255, .1), transparent 32%); background-attachment: fixed; }
html[data-theme="glass"] .gbp-card,
html[data-theme="glass"] .service-referral-card,
html[data-theme="glass"] .dropdown-menu { backdrop-filter: blur(24px) saturate(145%); }

html[data-theme="mono-neon"] h1 { letter-spacing: -.055em; }
html[data-theme="mono-neon"] .section-kicker,
html[data-theme="mono-neon"] .eyebrow { color: var(--theme-accent); }

html[data-theme="retro-future"] body { background-image: linear-gradient(rgba(89,217,142,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(89,217,142,.055) 1px, transparent 1px); background-size: 28px 28px; }
html[data-theme="retro-future"] .gbp-card,
html[data-theme="retro-future"] .service-referral-card { border-width: 2px; }

.gbp-hero {
  color: #fff;
  background: linear-gradient(125deg, #132f2a 0%, #176b52 58%, #34a853 100%);
}

.gbp-privacy-note {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .12);
}

.gbp-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #dde7e2;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 .75rem 2rem rgba(20, 55, 43, .08);
}

.gbp-sticky { position: sticky; top: 6rem; }
.gbp-check { padding: .85rem .85rem .85rem 2.25rem; border-bottom: 1px solid #edf2ef; }
.gbp-results { scroll-margin-top: 5rem; }
.gbp-summary { min-height: 18rem; margin: 0; padding: 1rem; white-space: pre-wrap; font: inherit; font-size: .92rem; background: #f4f8f6; border-radius: .75rem; }
.gbp-steps li { margin-bottom: .85rem; padding-left: .35rem; }

@media (max-width: 991.98px) {
  .gbp-sticky { position: static; }
}

/* Keep the selected visual system authoritative over legacy component colors. */
html[data-theme] .gbp-hero,
html[data-theme] .referral-hero,
html[data-theme] .hero-section { background: var(--theme-hero); }

html[data-theme] .gbp-card,
html[data-theme] .service-referral-card,
html[data-theme] .ai-generator-box,
html[data-theme] .card {
    color: var(--theme-text);
    border-color: var(--theme-border);
    border-radius: var(--theme-radius);
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}

html[data-theme] .gbp-summary,
html[data-theme] .referral-detail-panel { color: var(--theme-text); background: var(--theme-surface-soft); }
html[data-theme] .referral-price-table,
html[data-theme] .referral-price-table td,
html[data-theme] .referral-price-table th { color: var(--theme-text); border-color: var(--theme-border); background: var(--theme-surface); }
html[data-theme] .referral-disclaimer { color: var(--theme-text); border-left-color: var(--theme-accent); background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)); }

.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 100px 0;
}

.card-product {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.ai-generator-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 30px;
    margin-top: -50px;
}

.btn-printful { background-color: #e21c21; color: white; border:none; }
.btn-fiverr { background-color: #1dbf73; color: white; border:none; }
.btn-etsy { background-color: #f16521; color: white; border:none; }

.btn-printful:hover, .btn-fiverr:hover, .btn-etsy:hover {
    opacity: 0.9;
    color: white;
}

.eyebrow {
    display: inline-block;
    color: #ffe08a;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 760px;
}

.footer-copy {
    color: #c7cbd1;
}

.how-list {
    padding-left: 1.25rem;
}

.referral-hero {
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 224, 138, .26), transparent 28%),
        linear-gradient(135deg, #123f36 0%, #16715e 58%, #249578 100%);
}

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.referral-kicker {
    color: #ffe08a;
}

.referral-hero-note {
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
}

.service-referral-card {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid #dfe6e3;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 40px rgba(22, 65, 55, .08);
}

.service-referral-heading {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e7ecea;
}

.service-referral-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: .65rem;
    min-width: 220px;
}

.referral-detail-panel {
    padding: 1.15rem;
    border-radius: .9rem;
    background: #f3f8f6;
}

.referral-details > div {
    padding: .65rem 0;
    border-bottom: 1px solid #dce8e3;
}

.referral-details > div:last-child {
    border-bottom: 0;
}

.referral-details dt {
    color: #60716b;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.referral-details dd {
    margin: .15rem 0 0;
    font-weight: 600;
}

.referral-price-table {
    border: 1px solid #e3e8e6;
}

.referral-price-table th {
    color: #52635e;
    background: #f8faf9;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.referral-price-table th:last-child,
.referral-price-table td:last-child {
    width: 38%;
}

.referral-disclaimer {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-left: 5px solid #198754;
    border-radius: .5rem 1rem 1rem .5rem;
    background: #eef7f2;
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 72px 0 88px;
    }

    .ai-generator-box {
        margin-top: -36px;
        padding: 24px 18px;
    }

    .generator-form {
        flex-direction: column;
    }
}

@media (max-width: 991.98px) {
    .service-referral-heading {
        flex-direction: column;
    }

    .service-referral-actions {
        min-width: 0;
    }

    .py-lg-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}

/* Final theme layer: overrides legacy component declarations above. */
html[data-theme] .gbp-hero,
html[data-theme] .referral-hero,
html[data-theme] .hero-section { background: var(--theme-hero); }
html[data-theme] .gbp-card,
html[data-theme] .service-referral-card,
html[data-theme] .ai-generator-box,
html[data-theme] .card { color: var(--theme-text); border-color: var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); box-shadow: var(--theme-shadow); }
html[data-theme] .gbp-summary,
html[data-theme] .referral-detail-panel { color: var(--theme-text); background: var(--theme-surface-soft); }
html[data-theme] .referral-price-table,
html[data-theme] .referral-price-table td,
html[data-theme] .referral-price-table th { color: var(--theme-text); border-color: var(--theme-border); background: var(--theme-surface); }
html[data-theme] .referral-disclaimer { color: var(--theme-text); border-left-color: var(--theme-accent); background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)); }
