/* ============================================================
   Secret Santa Generator — Premium CSS
   thewheelofname.com/secretsanta
   ============================================================ */

:root {
    --ss-red:        #DC2626;
    --ss-red-dark:   #B91C1C;
    --ss-green:      #16A34A;
    --ss-green-dark: #15803D;
    --ss-gold:       #F59E0B;
    --ss-gold-dark:  #D97706;
    --ss-snow:       #F8FAFC;
    --ss-text:       #1E293B;
    --ss-muted:      #64748B;
    --ss-radius:     16px;
    --ss-shadow:     0 4px 24px rgba(0,0,0,0.10);
}

/* ── Hero ───────────────────────────────────────────────────── */
.ss-hero {
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 40%, #15803D 100%);
    color: #fff;
    border-radius: var(--ss-radius);
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
.ss-hero::before {
    content: '🎅🎁❄️🎄🔔⭐🎀🦌';
    position: absolute;
    top: 0.5rem; left: 0; right: 0;
    font-size: 1.5rem;
    letter-spacing: 0.8rem;
    opacity: 0.18;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}
.ss-hero h1 { font-size: clamp(1.6rem,4vw,2.4rem); font-weight: 800; margin-bottom: 0.5rem; }
.ss-hero p  { opacity: 0.9; font-size: 1.05rem; margin: 0; }

/* ── Tool layout ────────────────────────────────────────────── */
.ss-tool-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.ss-generator-col { flex: 1 1 380px; min-width: 280px; }
.ss-panel-col     { flex: 1 1 300px; min-width: 280px; }

/* ── Generator card ─────────────────────────────────────────── */
.ss-generator-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--ss-radius);
    padding: 1.5rem;
    box-shadow: var(--ss-shadow);
}

/* ── Input label ────────────────────────────────────────────── */
.ss-input-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ss-text);
    margin-bottom: 0.35rem;
    display: block;
}

/* ── Textarea ───────────────────────────────────────────────── */
.ss-textarea {
    width: 100%;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
    min-height: 120px;
}
.ss-textarea:focus {
    outline: none;
    border-color: var(--ss-red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}

/* ── Budget row ─────────────────────────────────────────────── */
.ss-budget-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ss-text);
    flex-wrap: wrap;
}
.ss-budget-input {
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
    width: 110px;
    font-family: inherit;
    transition: border-color 0.15s;
}
.ss-budget-input:focus { outline: none; border-color: var(--ss-green); }

/* ── Generate button ────────────────────────────────────────── */
.ss-generate-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--ss-red-dark), var(--ss-red));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(220,38,38,0.35);
    transition: transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.02em;
    margin: 0.75rem 0;
}
.ss-generate-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(220,38,38,0.45); }
.ss-generate-btn:active { transform: translateY(0); }

/* ── Action buttons ─────────────────────────────────────────── */
.ss-action-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.ss-action-btn {
    background: #fff;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.ss-action-btn:hover { background: #F1F5F9; border-color: #94A3B8; }

/* ── Result card ────────────────────────────────────────────── */
.ss-result-card {
    background: linear-gradient(135deg, #FFF8F0, #FEF3C7);
    border: 2px solid var(--ss-gold);
    border-radius: var(--ss-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    min-height: 80px;
    transition: box-shadow 0.3s;
}
.ss-result-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ss-muted);
    margin-bottom: 0.5rem;
}
.ss-pair-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #FDE68A;
    font-size: 0.95rem;
}
.ss-pair-row:last-child { border-bottom: none; }
.ss-pair-giver    { font-weight: 700; color: var(--ss-text); flex: 1; min-width: 0; word-break: break-word; }
.ss-pair-arrow    { color: var(--ss-gold-dark); font-size: 1.1rem; flex-shrink: 0; }
.ss-pair-receiver { font-weight: 700; color: var(--ss-red-dark); flex: 1; min-width: 0; word-break: break-word; }
.ss-result-empty  { color: var(--ss-muted); font-size: 0.92rem; text-align: center; padding: 0.5rem 0; }

/* ── Panel sections ─────────────────────────────────────────── */
.ss-panel-section {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--ss-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--ss-shadow);
}
.ss-panel-section h3,
.ss-panel-section h4 { font-size: 1rem; font-weight: 700; color: var(--ss-text); margin-bottom: 0.75rem; }

/* ── History ────────────────────────────────────────────────── */
.ss-history-list { list-style: none; padding: 0; margin: 0 0 0.75rem; max-height: 180px; overflow-y: auto; }
.ss-history-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid #F1F5F9; font-size: 0.85rem; gap: 0.5rem; }
.ss-history-count { font-weight: 600; color: var(--ss-text); }
.ss-history-time  { color: var(--ss-muted); font-size: 0.75rem; }

/* ── GEO section ────────────────────────────────────────────── */
.ss-geo-section { margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 2px solid #F1F5F9; }
.ss-geo-section h2 { font-size: 1.45rem; font-weight: 800; color: var(--ss-red-dark); margin-bottom: 0.75rem; }
.ss-geo-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--ss-green-dark); margin: 1.25rem 0 0.4rem; }
.ss-geo-section p  { color: #374151; line-height: 1.75; margin-bottom: 0.75rem; }

/* ── Content cards ──────────────────────────────────────────── */
.ss-content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin: 1.25rem 0; }
.ss-content-card { background: linear-gradient(135deg,#FFF8F0,#fff); border: 1px solid #FDE68A; border-radius: 12px; padding: 1.1rem; }
.ss-content-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--ss-red-dark); margin-bottom: 0.4rem; }
.ss-content-card p  { font-size: 0.84rem; color: #4B5563; margin: 0; line-height: 1.6; }

/* ── FAQ accordion ──────────────────────────────────────────── */
.ss-faq-section { margin: 2.5rem 0; }
.ss-faq-section h2 { font-size: 1.45rem; font-weight: 800; color: var(--ss-red-dark); margin-bottom: 1rem; }
.ss-faq-item { border: 1px solid #E2E8F0; border-radius: 10px; margin-bottom: 0.5rem; overflow: hidden; transition: box-shadow 0.2s; }
.ss-faq-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.ss-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.1rem; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--ss-text); background: #fff; user-select: none; gap: 1rem; }
.ss-faq-q:hover { background: #FEF2F2; color: var(--ss-red-dark); }
.ss-faq-icon { font-size: 1.1rem; transition: transform 0.25s; flex-shrink: 0; }
.ss-faq-item.ss-open .ss-faq-icon { transform: rotate(45deg); }
.ss-faq-a { display: none; padding: 0 1.1rem 1rem; font-size: 0.9rem; color: #374151; line-height: 1.7; background: #fff; }
.ss-faq-item.ss-open .ss-faq-a { display: block; }

/* ── Related tools ──────────────────────────────────────────── */
.ss-related { background: linear-gradient(135deg,#0F172A,#1E293B); color: #fff; border-radius: var(--ss-radius); padding: 1.5rem; margin: 2rem 0; }
.ss-related h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: #FCD34D; }
.ss-related-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ss-related-link { background: rgba(255,255,255,0.1); color: #fff; border-radius: 50px; padding: 0.4rem 1rem; font-size: 0.85rem; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.ss-related-link:hover { background: rgba(245,158,11,0.3); color: #FCD34D; }

/* ── Snow canvas ────────────────────────────────────────────── */
#ssSnowCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.ss-content-wrapper { position: relative; z-index: 1; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ss-tool-row { flex-direction: column; }
    .ss-hero { padding: 1.5rem 1rem 1rem; }
}
@media (max-width: 400px) {
    .ss-generate-btn { font-size: 1rem; }
}
