/* ============================================================
   VIRAL CHRISTMAS PORTRAITS — Page Styles
   Path: /christmas/assets/festive-ui.css
   Owns everything unique to /christmas/index.php
   ============================================================ */

/* ---------- Base overrides ---------- */
body,
.builder-container,
.studio-card,
.studio-card p,
.studio-card span,
.studio-card h1,
.studio-card h2,
.studio-card h3,
.studio-card h4,
.studio-card label,
.studio-card summary,
.studio-card li {
    color: #ffffff;
}

body {
    background: #09090d;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ---------- Hero ---------- */
.forced-white-title {
    color: #ffffff !important;
    opacity: 1 !important;
    display: block !important;
}
.holiday-accent { color: #10b981; }
.pro-tag.holiday {
    background: linear-gradient(135deg, #ef4444, #10b981);
    color: white;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* ---------- Studio cards ---------- */
.studio-card {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    margin-bottom: 25px;
    padding: 25px;
    color: #ffffff;
}
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #c47a44;
}

/* ---------- Viral style grid ---------- */
.viral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.viral-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}
.viral-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}
.viral-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 15px rgba(16,185,129,0.15);
}
.viral-card h3 { color: #ffffff !important; }
.viral-card p  { color: rgba(255,255,255,0.6) !important; }

.viral-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    background: #ef4444;
    color: #ffffff !important;
}

/* ---------- Chips & controls ---------- */
.control-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    color: #ffffff;
    font-family: inherit;
    text-align: left;
}
.chip:hover { background: rgba(255,255,255,0.1); }
.chip.selected {
    background: rgba(196, 122, 68, 0.2);
    border-color: #c47a44;
    color: #ffffff;
}
.chip strong {
    color: #ffffff;
    display: block;
}
.chip span {
    display: block;
    font-size: 0.78rem;
    opacity: 0.65;
    margin-top: 3px;
    color: #ffffff;
    font-weight: normal;
}

/* ---------- Accordions ---------- */
details.advanced-panel {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
details.advanced-panel summary {
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.7);
    outline: none;
    list-style: none;
    display: flex;
    align-items: center;
}
details.advanced-panel summary::-webkit-details-marker { display: none; }
details.advanced-panel summary::before {
    content: '▸';
    margin-right: 8px;
    transition: transform 0.2s;
}
details.advanced-panel[open] summary::before { transform: rotate(90deg); }
.panel-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #ffffff;
}
.panel-content p,
.panel-content label { color: #a1a1aa !important; }

/* ---------- Inputs ---------- */
.forced-white-input {
    background: #161622;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.forced-white-input::placeholder { color: rgba(255,255,255,0.4); }

/* ---------- Primary CTA ---------- */
.compile-primary-cta {
    padding: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 800;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.2s;
}
.compile-primary-cta:hover { opacity: 0.9; }

/* ---------- Output area ---------- */
#viralOutputBox {
    background: #000 !important;
    color: #a7f3d0 !important;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    line-height: 1.6;
    border: 1px solid rgba(16,185,129,0.3);
}
#viralOutputBox * { color: #a7f3d0 !important; }

.instructions-box {
    background: rgba(16,185,129,0.1);
    border-left: 4px solid #10b981;
    padding: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}
.instructions-box,
.instructions-box *,
.instructions-box strong,
.instructions-box code,
#howToContent,
#howToContent * {
    color: #ffffff !important;
}
.instructions-box code {
    background: rgba(0,0,0,0.4);
    padding: 1px 6px;
    border-radius: 4px;
}

#outputContainer h2 { color: #10b981 !important; }

/* ---------- Platform tabs ---------- */
#platformTabs .chip          { color: #ffffff !important; }
#platformTabs .chip.selected { color: #ffffff !important; }

/* ---------- Copy button ---------- */
#copyPromptBtn {
    background: #10b981 !important;
    color: #000 !important;
    font-weight: bold;
    border: none !important;
    padding: 12px 20px;
}

/* ---------- Secondary action buttons ---------- */
#regenBtn {
    border-color: #10b981 !important;
    color: #10b981 !important;
    background: transparent !important;
}
#newStyleBtn { color: #ffffff !important; }

/* ---------- Pro tip ---------- */
.pro-tip {
    font-size: 0.85rem;
    color: #a1a1aa !important;
    background: rgba(196,122,68,0.08);
    border-left: 3px solid #c47a44;
    padding: 10px 14px;
    margin-top: 15px;
    border-radius: 0 6px 6px 0;
}
.pro-tip strong { color: #ffffff !important; }

/* ---------- Mobile sticky CTA ---------- */
@media (max-width: 640px) {
    .compile-primary-cta {
        position: sticky;
        bottom: 12px;
        z-index: 50;
        box-shadow: 0 8px 24px rgba(16,185,129,0.4);
    }
}

/* Prevent header from competing with page H1 for SEO */
body > header h1:first-child,
.header-banner h1 {
    font-size: 1.1rem;
    font-weight: 600;
}