/* ==========================================================================
   Climate Color Quiz — Results Screen Styles (Directory Harmonized)
   ========================================================================== */

#results {
    max-width: 1120px;
    margin: 2rem auto;
    padding: 0 1rem 4rem 1rem;
    font-family: inherit;
    color: var(--text-primary);
}

/* ==========================================================================
   Results Bar & Actions Placed Above Constellation Header
   ========================================================================== */
.results-heading {
  font-family: 'ADLaM Display', 'Varela Round', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 1.5rem 0 1rem 0;
  text-align: left;
}

.sticky-results-bar {
    position: relative;
    z-index: 100;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    box-shadow: var(--shadow-soft);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.sticky-results-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Soft directory-style blue buttons */
.btn-sm-action {
    background-color: color-mix(in srgb, var(--brand-teal) 12%, white);
    color: var(--brand-teal);
    border: 1px solid color-mix(in srgb, var(--brand-teal) 35%, white);
    padding: 0.45rem 1.25rem; /* Increased horizontal padding from 0.85rem to 1.25rem */
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn-sm-action:hover {
    background-color: color-mix(in srgb, var(--brand-teal) 20%, white);
    border-color: color-mix(in srgb, var(--brand-teal) 50%, white);
    transform: translateY(-1px);
}

.btn-sm-primary {
    background-color: var(--brand-teal);
    color: var(--bg-primary);
    border-color: var(--brand-teal);
}

.btn-sm-primary:hover {
    background-color: color-mix(in srgb, var(--brand-teal) 85%, black);
    border-color: color-mix(in srgb, var(--brand-teal) 85%, black);
}

/* ==========================================================================
   Harmonized Spectrum Bar & Results Constellation Card Styles
   ========================================================================== */

.result-display-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    margin: 1.25rem 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.color-wash-spectrum {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.result-content-overlay {
    position: relative;
    z-index: 2;
}

.season-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.triad-summary {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Directory Card Components & Color-Keyed Left Borders
   ========================================================================== */

.styleBlock {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    border-left-width: 6px;
    border-left-style: solid;
    text-align: left;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.styleBlock:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-content { 
    margin-bottom: 0; 
}

.styleTitle {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.styleIdentity {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.styleMeta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-tertiary);
}

/* Dynamic Left Border Color Application via Atlas utilities */
.styleBlock.border-red { border-left-color: var(--red-color); }
.styleBlock.border-orange { border-left-color: var(--orange-color); }
.styleBlock.border-yellow { border-left-color: var(--yellow-color); }
.styleBlock.border-green { border-left-color: var(--green-color); }
.styleBlock.border-blue { border-left-color: var(--blue-color); }
.styleBlock.border-indigo { border-left-color: var(--indigo-color); }
.styleBlock.border-purple { border-left-color: var(--purple-color); }
.styleBlock.border-violet { border-left-color: var(--violet-color); }

/* Neutral grey sidebar option for card number three */
.styleBlock.border-neutral { border-left-color: var(--border-strong); }

/* Primary Card Visual Boost */
.styleBlock.primary-card {
    border-left-width: 8px;
    box-shadow: var(--shadow-hover);
}

/* Synergy Card Override */
.styleBlock.synergy-card {
    border-left-color: var(--border-strong);
    background: var(--bg-secondary);
}

/* ==========================================================================
   Mobile Responsive Adjustments for Results
   ========================================================================== */

@media (max-width: 768px) {
    #results {
        padding: 0 0.75rem 3rem 0.75rem;
        margin: 1rem auto;
    }

    .sticky-results-bar {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .sticky-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 0.4rem;
    }

    .btn-sm-action {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

@media print {
    .sticky-results-bar { 
        display: none !important; 
    }
    body { 
        background: var(--bg-primary) !important;
        color: var(--text-primary) !important;
    }
    .styleBlock { 
        break-inside: avoid; 
        box-shadow: none !important; 
        border: 1px solid var(--border-strong) !important;
        background: var(--bg-primary) !important;
        color: var(--text-primary) !important;
    }
    .styleIdentity, .styleMeta, .styleTitle {
        color: var(--text-primary) !important;
    }
}

/* Color Theme Text Helpers (Global Scope) */
.theme-red { color: var(--red-color); }
.theme-orange { color: var(--orange-color); }
.theme-yellow { color: var(--yellow-color); }
.theme-green { color: var(--green-color); }
.theme-blue { color: var(--blue-color); }
.theme-indigo { color: var(--indigo-color); }
.theme-purple { color: var(--purple-color); }
.theme-violet { color: var(--violet-color); }