/* ==========================================================================
   Series Reminder Detail Custom Styles (series_detail.css)
   ========================================================================== */

@media (min-width: 1400px) {
    /* Unlocks the scroll context for sticky positioning on desktop */
    body, .wrapper {
        overflow: visible !important;
        overflow-x: visible !important;
    }

    /* Standard sticky behavior */
    .sticky-sidebar {
        position: sticky;
        top: 20px; /* Distance from the top of the viewport when stuck */
        align-self: start; /* Prevents column stretching so it can slide */
    }
}

/* 1. FLEXIBLE DETAIL BLOCKS (Elegant, standard vertical dividers) */
.sr-detail-block {

}

/* Standardized Section Title */
.sr-detail-block-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1.25rem; /* ~20px */
    color: #3e4555;
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. CUSTOM CARD CONTAINER (Optional if you want boxed containers later) */
.sr-card {
    background-color: #fcfcfc;
    border: 1px solid #e9ecef !important;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Quicksand', sans-serif;
}

.sr-card-title {
    font-family: 'Quicksand', sans-serif;
    color: #3e4555;
    font-weight: 600;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Standardized Custom Buttons inside Cards */
.sr-card-btn {
    text-decoration: underline;
    font-weight: normal;
    color: #9352b3;
    transition: color 0.2s ease;
}

.sr-card-btn:hover {
    color: #6f42c1;
}

/* ==========================================================================
   3. SOVEREIGN EDITORIAL TYPOGRAPHY (Styles any basic HTML output)
   ========================================================================== */
.sr-editorial {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem; /* Great readable size (~18px) */
    line-height: 1.7; /* Comfortable reading line-height */
    color: #3e4555; /* Slate grey */
    font-weight: 400;
}

/* Space out paragraphs cleanly */
.sr-editorial p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* Beautiful, slightly darker bolding */
.sr-editorial strong {
    font-weight: 700;
    color: #232731; /* Darker slate for strong emphasis */
}

/* Soft italics */
.sr-editorial em {
    font-style: italic;
    color: #555e70;
}

/* Clean list rendering if the AI outputs bullet points */
.sr-editorial ul,
.sr-editorial ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.sr-editorial li {
    margin-bottom: 0.5rem;
}

/* =========================================================================
   SERIES REMINDER: DIAGNOSTIC BUTTON THEMES
   Base state: Transparent (empty) with colored border
   Hover state: Solid color with white text and white icons
   ========================================================================= */

/* 1. Intro / AI Critic Overview (Purple) */
.btn-diagnostic-intro {
    color: #6f42c1 !important;
    border-color: #6f42c1 !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.btn-diagnostic-intro i {
    color: #6f42c1 !important;
}

.btn-diagnostic-intro:hover {
    color: #ffffff !important;
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

.btn-diagnostic-intro:hover i {
    color: #ffffff !important;
}

/* 2. The Industry Oracle (Gold) */
.btn-diagnostic-oracle {
    color: #b8860b !important;
    border-color: #b8860b !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.btn-diagnostic-oracle i {
    color: #b8860b !important;
}

.btn-diagnostic-oracle:hover {
    color: #ffffff !important;
    background-color: #b8860b !important;
    border-color: #b8860b !important;
}

.btn-diagnostic-oracle:hover i {
    color: #ffffff !important;
}

/* 3. Frequently Asked Questions (Blue) */
.btn-diagnostic-faq {
    color: #4b6cb7 !important;
    border-color: #4b6cb7 !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.btn-diagnostic-faq i {
    color: #4b6cb7 !important;
}

.btn-diagnostic-faq:hover {
    color: #ffffff !important;
    background-color: #4b6cb7 !important;
    border-color: #4b6cb7 !important;
}

.btn-diagnostic-faq:hover i {
    color: #ffffff !important;
}

/* 4. Sync Warning / Missing IMDb (Amber/Dark Yellow) */
.btn-diagnostic-warning {
    /* color: #d39e00 !important;  Slightly darker than ffc107 for readability */
    border-color: #d39e00 !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.btn-diagnostic-warning i {

}

.btn-diagnostic-warning:hover {
    color: #000000 !important; /* Dark text on bright yellow hover */
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
}

.btn-diagnostic-warning:hover i {
    color: #000000 !important;
}

/* 5. Sync Danger / Mismatch (Red) */
.btn-diagnostic-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.btn-diagnostic-danger i {
    color: #dc3545 !important;
}

.btn-diagnostic-danger:hover {
    color: #ffffff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-diagnostic-danger:hover i {
    color: #ffffff !important;
}

/* =========================================================================
   NOTIFICATION PREFERENCES: Delivery Timing rows (delay / time of day)
   Label on the left, compact select on the right. The label takes the remaining
   width and the select sizes to its content, so rows never wrap awkwardly in the
   narrow sidebar (~280px at lg, ~300px at md).
   ========================================================================= */
#series-notification-pref .sr-timing {
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

#series-notification-pref .sr-timing-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}

#series-notification-pref .sr-timing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

#series-notification-pref .sr-timing-row label {
    /* flex + tight line-height so the TEXT (not just the box) centers against the select;
       the inherited body line-height made the label text sit visibly higher than the select text */
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.2;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    min-width: 0;
    white-space: nowrap;
}

#series-notification-pref .sr-timing-row label .fa {
    line-height: 1;
}

#series-notification-pref .sr-timing-row .form-select {
    width: auto;
    min-width: 8rem;
    max-width: 10rem;
    flex-shrink: 0;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
}

