/* =========================================
   SSNA Release Notes Timeline
   ========================================= */

.ssna-rn-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
}

/* ----- Sidebar ----- */

.ssna-rn-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 20px 16px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.ssna-rn-sidebar__title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 18px 0;
    padding: 0;
}

/* Year block — card style */
.ssna-rn-sidebar__year {
    position: relative;
    margin-bottom: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.ssna-rn-sidebar__year:last-child {
    margin-bottom: 0;
}

/* Active year block */
.ssna-rn-sidebar__year.is-active {
    background: #eef2f7;
}

/* Year toggle button */
.ssna-rn-sidebar__year-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
    outline: none !important;
    gap: 8px !important;
}

.ssna-rn-sidebar__year-toggle:hover,
.ssna-rn-sidebar__year-toggle:focus {
    background-color: #e5e7eb !important;
    border-radius: 8px !important;
    color: #1f2937 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Chevron */
.ssna-rn-sidebar__chevron {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(-45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.ssna-rn-sidebar__year.is-active .ssna-rn-sidebar__chevron {
    transform: rotate(45deg);
}

/* Month list */
.ssna-rn-sidebar__months {
    list-style: none;
    margin: 0;
    padding: 0 8px 0 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    opacity: 0;
}

.ssna-rn-sidebar__year.is-active .ssna-rn-sidebar__months {
    max-height: 500px;
    opacity: 1;
    padding: 2px 8px 10px 8px;
}

.ssna-rn-sidebar__months li {
    margin: 0;
    padding: 0;
}

.ssna-rn-sidebar__months a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #374151;
    text-decoration: none !important;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.ssna-rn-sidebar__months a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.ssna-rn-sidebar__months a.is-active {
    background-color: #cbd5e1;
    color: #1e293b;
    font-weight: 600;
}

/* ----- Main Content ----- */

.ssna-rn-content {
    min-width: 0;
    position: relative;
    padding-left: 40px;
}

/* Vertical timeline line */
.ssna-rn-content::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.ssna-rn-year-section {
    margin-bottom: 60px;
    position: relative;
}

.ssna-rn-year-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin: 0 0 30px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Year dot - filled blue */
.ssna-rn-year-section h2::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translate(2px, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2196F3;
    z-index: 1;
}

.ssna-rn-year-section h2::after {
    display: none;
}

/* Month sections */
.ssna-rn-month-section {
    margin-bottom: 30px;
    padding: 24px 30px;
    border-left: none;
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.ssna-rn-month-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Month dot - hollow outline */
.ssna-rn-month-dot {
    position: absolute;
    left: -40px;
    top: 36px;
    transform: translate(3px, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #2196F3;
    z-index: 1;
}

.ssna-rn-month-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Month title */
.ssna-rn-month-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0px;
    padding: 0;
}

/* Version block */
.ssna-rn-version-block {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ssna-rn-version-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ssna-rn-version-block:first-of-type {
    padding-top: 0;
}

.ssna-rn-version-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ssna-rn-version {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.3px;
}

.ssna-rn-date {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.5px;
}

/* Category blocks */
.ssna-rn-category {
    margin-bottom: 24px;
}

/* Badges */
.ssna-rn-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ssna-rn-badge--bug-fixes {
    background-color: #FFE0E6;
    color: #D63384;
	margin-bottom:10px;
}

.ssna-rn-badge--new-feature {
    background-color: #D4EDDA;
    color: #198754;
    margin-bottom:10px;
}

.ssna-rn-badge--enhancements {
    background-color: #D0E8FF;
    color: #0D6EFD;
    margin-bottom:10px;
}

.ssna-rn-badge--improvements {
    background-color: #E8D5F5;
    color: #6F42C1;
    margin-bottom:10px;
}

.ssna-rn-badge--changes {
    background-color: #FFF3CD;
    color: #B8860B;
    margin-bottom:10px;
}

/* Bullet list */
.ssna-rn-category ul {
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
}

.ssna-note-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 4px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.7;
}

.ssna-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 5px;
    line-height: 1;
}

.ssna-note-text {
    flex: 1;
}

/* Default icon colors (overridden by Elementor controls) */
.ssna-note-icon i {
    font-size: 14px;
}

.ssna-note--new-feature .ssna-note-icon i {
    color: #FFC107;
}

.ssna-note--bug-fixes .ssna-note-icon i {
    color: #DC3545;
}

.ssna-note--improvements .ssna-note-icon i {
    color: #0D6EFD;
}

.ssna-note--enhancements .ssna-note-icon i {
    color: #0D6EFD;
}

.ssna-note--changes .ssna-note-icon i {
    color: #1A73E8;
}


/* Empty state */
.ssna-rn-empty {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    padding: 60px 20px;
}

/* =========================================
   Mobile Version Indicator (hidden on desktop)
   ========================================= */

.ssna-rn-mobile-version-indicator {
    display: none;
}

/* =========================================
   Mobile Sticky Year Indicator (hidden on desktop)
   ========================================= */

.ssna-rn-mobile-year-indicator {
    display: none;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 745px) {

    /* Single-column layout on mobile */
    .ssna-rn-wrapper {
        display: block;
        padding: 20px 16px;
    }

    /* Hide desktop sidebar */
    .ssna-rn-sidebar {
        display: none !important;
    }

    /* Hide mobile indicators */
    .ssna-rn-mobile-version-indicator {
        display: none !important;
    }

    .ssna-rn-mobile-year-indicator {
        display: none !important;
    }

    /* Content full width */
    .ssna-rn-content {
        padding-left: 0;
        min-width: 0;
    }

    .ssna-rn-content::before {
        display: none;
    }

    /* Year section */
    .ssna-rn-year-section {
        margin-bottom: 28px;
    }

    /* Year heading — sticky below header */
    .ssna-rn-year-section h2 {
        display: block;
        font-size: 26px;
        font-weight: 800;
        color: #111;
        margin: 0 0 20px 0;
        padding: 12px 0;
        border-bottom: 2px solid #e5e7eb;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 40;
    }

    .ssna-rn-year-section h2::before {
        display: none;
    }

    /* Month sections */
    .ssna-rn-month-section {
        margin-bottom: 18px;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    }

    .ssna-rn-month-dot {
        display: none;
    }

    .ssna-rn-month-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 12px 0;
    }

    /* Version blocks */
    .ssna-rn-version-block {
        padding: 14px 0;
    }

    .ssna-rn-version-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .ssna-rn-version {
        font-size: 15px;
    }

    .ssna-rn-date {
        font-size: 12px;
    }

    /* Category */
    .ssna-rn-category {
        margin-bottom: 18px;
    }

    .ssna-rn-badge {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* Bullets */
    .ssna-rn-category ul {
        padding: 0;
    }

    .ssna-note-item {
        font-size: 14px;
        padding: 5px 0;
        gap: 8px;
        line-height: 1.5;
    }

    .ssna-note-icon {
        margin-top: 4px;
    }
}

@media (max-width: 420px) {
    .ssna-rn-wrapper {
        padding: 16px 10px;
    }

    .ssna-rn-year-section h2 {
        font-size: 22px;
    }

    .ssna-rn-month-title {
        font-size: 16px;
    }

    .ssna-rn-month-section {
        padding: 14px;
    }

    .ssna-rn-version {
        font-size: 14px;
    }

    .ssna-note-item {
        font-size: 13px;
    }
}