/* ==========================================================================
   GetSign Release Notes — Frontend Styles
   Design language: clean, modern, monday.com-inspired.
   Primary: #0073ea  •  Font: Manrope
   ========================================================================== */

.gsrn-wrap {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1f2937;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gsrn-wrap *,
.gsrn-wrap *::before,
.gsrn-wrap *::after {
    box-sizing: border-box;
}

.gsrn-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
}

/* ----- Timeline backbone ----- */
.gsrn-timeline {
    position: relative;
    padding-left: 70px;
}

.gsrn-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 70px;
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, #e5e7eb 8%, #e5e7eb 92%, transparent 100%);
}

.gsrn-timeline-row {
    position: relative;
    margin-bottom: 48px;
}

.gsrn-timeline-row:last-child {
    margin-bottom: 0;
}

/* ----- Date column ----- */
.gsrn-date-col {
    position: absolute;
    left: -70px;
    top: 22px;
    width: 56px;
    text-align: center;
    line-height: 1;
}

.gsrn-date-month {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gsrn-date-day {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.gsrn-date-year {
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.gsrn-date-dot {
    position: absolute;
    top: 14px;
    right: -23px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0073ea;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 5px rgba(0, 115, 234, 0.15);
}

/* ----- Cards column ----- */
.gsrn-cards-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 28px;
}

/* ----- Card ----- */
.gsrn-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 4px 16px rgba(16, 24, 40, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.7);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.gsrn-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 2px 4px rgba(16, 24, 40, 0.04),
        0 12px 28px rgba(16, 24, 40, 0.08);
    border-color: rgba(0, 115, 234, 0.2);
}

.gsrn-card-body {
    padding: 18px 22px 20px;
    display: flex;
    flex-direction: column;
}

/* Image sits below the description, like a Twitter/X link card */
.gsrn-card-media {
    margin: 14px 0 2px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    background: #f3f4f6;
    line-height: 0;
}

.gsrn-card-media img,
.gsrn-card-media video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.gsrn-card:hover .gsrn-card-media img,
.gsrn-card:hover .gsrn-card-media video {
    transform: scale(1.02);
}

/* ----- Pill (type tag) — solid rectangle ----- */
.gsrn-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
    line-height: 1;
    color: #ffffff;
    text-transform: capitalize;
    width: fit-content;
}

.gsrn-pill-dot { display: none; }

.gsrn-pill-feature     { background: #0073ea; }
.gsrn-pill-improvement { background: #00854d; }
.gsrn-pill-security    { background: #c97a00; }
.gsrn-pill-fix         { background: #4b5563; }

/* ----- Title & description ----- */
.gsrn-card .gsrn-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.gsrn-card-desc {
    font-size: 13.5px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
    font-weight: 400;
}

/* ----- Actions ----- */
.gsrn-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.gsrn-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1;
    transition: all 180ms ease;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.gsrn-btn:focus-visible {
    outline: 2px solid #0073ea;
    outline-offset: 2px;
}

.gsrn-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

/* Watch Demo — solid blue fill, white text (matches GetSign "Watch demo" button) */
.gsrn-btn-demo {
    background: #0073ea;
    color: #ffffff !important;
    border: 2px solid #0073ea;
    box-shadow: 0 1px 4px rgba(0, 115, 234, 0.18);
}

.gsrn-btn-demo:hover {
    background: #0060c7;
    border-color: #0060c7;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 234, 0.28);
}

/* Release Notes — white bg, grey border (matches GetSign "Add to monday" outlined button) */
.gsrn-btn-notes {
    background: #ffffff;
    color: #1f2937 !important;
    border: 2px solid #d1d5db;
}

.gsrn-btn-notes:hover {
    border-color: #0073ea;
    color: #0073ea !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 234, 0.1);
}

.gsrn-btn-arrow {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 180ms ease;
}

.gsrn-btn-notes:hover .gsrn-btn-arrow {
    transform: translateX(2px);
}

/* ==========================================================================
   Load More
   ========================================================================== */

.gsrn-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding-bottom: 8px;
}

.gsrn-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 32px;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #0073ea;
    background: #ffffff;
    border: 2px solid #0073ea;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    letter-spacing: 0.1px;
    outline: none;
}

.gsrn-load-more-btn:hover:not(:disabled) {
    background: #0073ea;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 115, 234, 0.25);
}

.gsrn-load-more-btn:focus-visible {
    outline: 2px solid #0073ea;
    outline-offset: 3px;
}

.gsrn-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner — hidden by default, shown during loading */
.gsrn-load-more-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    flex-shrink: 0;
}

.gsrn-load-more-btn.gsrn-loading .gsrn-load-more-spinner {
    display: block;
    animation: gsrn-spin 0.7s linear infinite;
}

.gsrn-load-more-btn.gsrn-loading .gsrn-load-more-label {
    opacity: 0.75;
}

@keyframes gsrn-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive — Tablet (≤ 720px)
   ========================================================================== */

@media (max-width: 720px) {
    .gsrn-wrap {
        padding: 0 14px;
    }

    .gsrn-timeline {
        padding-left: 52px;
    }

    .gsrn-timeline::before {
        left: 52px;
    }

    .gsrn-date-col {
        left: -52px;
        width: 42px;
        top: 16px;
    }

    .gsrn-date-day {
        font-size: 20px;
    }

    .gsrn-date-month,
    .gsrn-date-year {
        font-size: 10px;
    }

    .gsrn-date-dot {
        right: -16px;
        width: 10px;
        height: 10px;
        box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0,115,234,0.15);
    }

    .gsrn-cards-col {
        padding-left: 18px;
        gap: 14px;
    }

    .gsrn-card-body {
        padding: 16px 18px 18px;
    }

    .gsrn-card-title {
        font-size: 16px;
    }

    .gsrn-card-desc {
        font-size: 13px;
    }

    .gsrn-card-media img,
    .gsrn-card-media video {
        max-height: 220px;
    }

    .gsrn-timeline-row {
        margin-bottom: 36px;
    }
}

/* ==========================================================================
   Responsive — Mobile (≤ 480px)
   Collapse date column into a small inline badge above each card
   so the card gets the full screen width.
   ========================================================================== */

@media (max-width: 480px) {
    .gsrn-wrap {
        padding: 0 12px;
    }

    /* Remove left indent — cards go full width */
    .gsrn-timeline {
        padding-left: 0;
    }

    /* Hide the vertical rail line */
    .gsrn-timeline::before {
        display: none;
    }

    .gsrn-timeline-row {
        margin-bottom: 28px;
    }

    /* Stack: date badge on top, cards below */
    .gsrn-date-col {
        position: static;
        width: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    /* Hide the dot on mobile — no rail to attach to */
    .gsrn-date-dot {
        display: none;
    }

    /* Reorder date parts into a single readable line: "MAY 13, 2026" */
    .gsrn-date-month,
    .gsrn-date-day,
    .gsrn-date-year {
        font-size: 12px;
        font-weight: 700;
        color: #6b7280;
        letter-spacing: 0.5px;
    }

    .gsrn-date-month { order: 1; }
    .gsrn-date-day   { order: 2; font-size: 13px; color: #374151; }
    .gsrn-date-year  { order: 3; color: #9ca3af; font-weight: 500; }

    /* Thin accent line beside the date */
    .gsrn-date-col::before {
        content: '';
        display: block;
        width: 3px;
        height: 18px;
        border-radius: 2px;
        background: #0073ea;
        flex-shrink: 0;
        order: 0;
    }

    .gsrn-cards-col {
        padding-left: 0;
        gap: 12px;
    }

    .gsrn-card {
        border-radius: 12px;
    }

    .gsrn-card-body {
        padding: 14px 16px 16px;
    }

    .gsrn-card .gsrn-card-title,
    .gsrn-card-title {
        font-size: 15px !important;
        letter-spacing: -0.1px;
        line-height: 1.35;
    }

    .gsrn-card-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .gsrn-card-media {
        margin: 12px 0 2px;
        border-radius: 8px;
    }

    .gsrn-card-media img,
    .gsrn-card-media video {
        max-height: 200px;
    }

    .gsrn-card-actions {
        margin-top: 14px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .gsrn-btn {
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 8px;
    }

    .gsrn-load-more-wrap {
        margin-top: 32px;
    }

    .gsrn-load-more-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }
}

