﻿/* ========================================
   DOWNLOAD PAGE — download.css
   ======================================== */


/* ════════════════════════════════════════
   SECTION 1 — DOWNLOAD
   ════════════════════════════════════════ */

.dl-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(160deg, var(--dark-burgundy) 0%, var(--burgundy) 60%, var(--wine) 100%);
    position: relative;
    overflow: hidden;
}

.dl-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polygon points="12,2 22,12 12,22 2,12" fill="none" stroke="%23D4AF37" stroke-width="0.3" opacity="0.15"/></svg>');
    background-size: 64px 64px;
    pointer-events: none;
}

.dl-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dl-bg-orb--tl {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
    top: -150px;
    left: -150px;
}

.dl-bg-orb--br {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* ── Header ─────────────────────────────── */

.dl-header {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.dl-header__label {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.dl-header__label-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.dl-header__label-line--right {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.dl-header__heading {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.dl-header__accent {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-header__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Download Card ──────────────────────── */

.dl-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
}

.dl-card__accent {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--burgundy) 20%, var(--gold) 50%, var(--burgundy) 80%, transparent);
}

.dl-card__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

/* Left column */
.dl-card__left {
    padding: 3rem 2.5rem;
    background: linear-gradient(160deg, var(--dark-burgundy), var(--burgundy));
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dl-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.8rem;
}

.dl-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.dl-card__version {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dl-version-badge {
    font-size: 0.9rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--gold);
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.dl-version-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
}

.dl-version-type--stable {
    background: rgba(45,122,79,0.2);
    color: #6ee7b7;
}

.dl-version-type--beta {
    background: rgba(180,83,9,0.2);
    color: #fcd34d;
}

.dl-version-type--hotfix {
    background: rgba(185,28,28,0.2);
    color: #fca5a5;
}

.dl-card__date {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--dark-burgundy);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 22px rgba(212,175,55,0.35);
    width: fit-content;
}

    .dl-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(212,175,55,0.45);
        color: var(--dark-burgundy);
    }

.dl-card__filename {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: monospace;
}

.dl-card__login-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

    .dl-card__login-hint a {
        color: var(--gold);
        text-decoration: underline;
    }

.dl-unavailable {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
}

    .dl-unavailable a {
        color: var(--gold);
    }

.dl-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #fca5a5;
    background: rgba(185,28,28,0.15);
    border: 1px solid rgba(185,28,28,0.25);
    border-radius: 10px;
    padding: 0.7rem 1rem;
}

/* Right column — requirements */
.dl-card__right {
    padding: 3rem 2.5rem;
    background: var(--white);
}

.dl-req__heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dl-req-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(107,44,62,0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.dl-req-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(107,44,62,0.07);
    transition: background 0.2s ease;
}

    .dl-req-item:last-child {
        border-bottom: none;
    }

    .dl-req-item:hover {
        background: rgba(107,44,62,0.02);
    }

.dl-req-item__icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.dl-req-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.dl-req-item__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--luxury-gray);
}

.dl-req-item__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-burgundy);
}

.dl-trust-strip {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

    .dl-trust-strip span {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.78rem;
        color: var(--luxury-gray);
        font-weight: 500;
    }

        .dl-trust-strip span i {
            color: var(--burgundy);
            font-size: 0.72rem;
        }


/* ════════════════════════════════════════
   SECTION 2 — CHANGELOG
   ════════════════════════════════════════ */

.changelog-section {
    padding: 7rem 0;
    background: linear-gradient(160deg, var(--white) 0%, var(--pearl) 50%, var(--champagne) 100%);
    position: relative;
}

.changelog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.changelog-header__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--burgundy);
}

.changelog-header__line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--burgundy));
}

    .changelog-header__line:last-child {
        background: linear-gradient(90deg, var(--burgundy), transparent);
    }

.changelog-header__heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-burgundy);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.changelog-header__accent {
    background: linear-gradient(135deg, var(--burgundy), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.changelog-header__sub {
    font-size: 1rem;
    color: var(--luxury-gray);
}

/* ── Timeline list ──────────────────────── */

.changelog-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.changelog-item {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.changelog-item__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.changelog-item__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid rgba(107,44,62,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--luxury-gray);
    font-size: 0.6rem;
    flex-shrink: 0;
    z-index: 1;
}

.changelog-item__dot--latest {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    border-color: var(--burgundy);
    color: var(--gold);
    font-size: 0.75rem;
    box-shadow: 0 4px 14px rgba(107,44,62,0.3);
}

.changelog-item__line {
    width: 2px;
    flex: 1;
    background: rgba(107,44,62,0.1);
    margin: 4px 0;
    min-height: 20px;
}

.changelog-item:last-child .changelog-item__line {
    display: none;
}

/* Content */
.changelog-item__content {
    flex: 1;
    padding-bottom: 2.5rem;
}

.changelog-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-top: 0.4rem;
}

.changelog-item__version-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.changelog-version {
    font-family: monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-burgundy);
}

.changelog-type-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
}

.changelog-type-badge--stable {
    background: rgba(45,122,79,0.1);
    color: #2d7a4f;
}

.changelog-type-badge--beta {
    background: rgba(180,83,9,0.1);
    color: #b45309;
}

.changelog-type-badge--hotfix {
    background: rgba(185,28,28,0.1);
    color: #b91c1c;
}

.changelog-latest-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--gold);
}

.changelog-date {
    font-size: 0.8rem;
    color: var(--luxury-gray);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.changelog-item__body {
    background: var(--white);
    border: 1px solid rgba(107,44,62,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107,44,62,0.05);
}

.changelog-item--latest .changelog-item__body {
    border-color: rgba(107,44,62,0.2);
    box-shadow: 0 8px 30px rgba(107,44,62,0.1);
}

.changelog-group {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(107,44,62,0.06);
}

    .changelog-group:last-child {
        border-bottom: none;
    }

.changelog-group__heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.changelog-group__heading--new {
    color: #2d7a4f;
}

.changelog-group__heading--fix {
    color: var(--burgundy);
}

.changelog-group__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

    .changelog-group__list li {
        font-size: 0.9rem;
        color: var(--dark-gray);
        padding-left: 1.1rem;
        position: relative;
        line-height: 1.5;
    }

        .changelog-group__list li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--luxury-gray);
            font-size: 0.8rem;
        }


/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

@media (max-width: 968px) {
    .dl-card__inner {
        grid-template-columns: 1fr;
    }

    .dl-card__left {
        align-items: center;
        text-align: center;
        padding: 2.5rem 2rem;
    }

    .dl-card__date,
    .dl-card__filename,
    .dl-card__login-hint {
        justify-content: center;
    }

    .dl-trust-strip {
        justify-content: center;
    }

    .dl-header__heading {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .dl-section {
        padding: 6rem 0 4rem;
    }

    .dl-header__heading {
        font-size: 2rem;
    }

    .dl-card__left,
    .dl-card__right {
        padding: 2rem 1.5rem;
    }

    .changelog-header__heading {
        font-size: 2.2rem;
    }

    .changelog-item__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .dl-section {
        padding: 5rem 0 3rem;
    }

    .dl-header__heading {
        font-size: 1.8rem;
    }

    .changelog-header__heading {
        font-size: 1.8rem;
    }

    .changelog-item {
        gap: 1rem;
    }
}

.dl-card__credential-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}

    .dl-card__credential-hint i {
        color: var(--gold);
        font-size: 1.1rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .dl-card__credential-hint div {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .dl-card__credential-hint strong {
        color: var(--gold);
        font-size: 0.85rem;
    }

    .dl-card__credential-hint span {
        color: var(--gold);
        font-size: 0.8rem;
        line-height: 1.4;
    }
