/* ===== DOWNLOADS PAGE STYLES (SELECTION MODEL) ===== */

.downloads-hero {
    padding: 160px 20px 60px;
    /* Increased bottom spacing */
    text-align: center;
}

.platform-section {
    padding: 1rem 20px 8rem;
    max-width: 1000px;
    /* Tighter width for focus */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Container for Cards --- */
.platform-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    /* More space before button */
}

/* --- Selectable Cards --- */
.platform-card {
    background: var(--bg-glass-secondary);
    /* Centralized glassmorphism background */
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

/* Hover State (Unselected) */
.platform-card:hover:not(.active) {
    background: var(--bg-glass-secondary);
    filter: brightness(0.97);
    /* Slightly darker on hover */
    transform: translateY(-2px);
}

/* --- ACTIVE STATE (Selection) --- */
.platform-card.active {
    background: var(--bg-glass-secondary);
    filter: brightness(1.03);
    /* Brighter variant for selection */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--btn-primary-bg);
    /* Green accent border to indicate selection */
    transform: scale(1.05);
    z-index: 10;
}

.platform-card.active .platform-icon {
    /* Optional: Make icon pop more */
    transform: scale(1.1);
}

/* Icons */
.platform-icon {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon img,
.platform-icon svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    /* Slightly muted by default */
}

/* Active Icon */
.platform-card.active .platform-icon img,
.platform-card.active .platform-icon svg {
    opacity: 1;
}

/* Text */
.platform-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.2s;
}

.platform-card.active h3 {
    color: var(--text-primary);
}


/* --- DYNAMIC CTA AREA --- */
.dynamic-cta-area {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.download-btn-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 500;
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 300px;
    position: relative;
    overflow: hidden;
}

.download-btn-wide:hover {
    transform: translateY(-2px);
    background-color: var(--btn-primary-hover-bg);
    color: var(--btn-primary-hover-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-btn-wide:hover svg,
.download-btn-wide:hover svg path {
    fill: var(--btn-primary-hover-text) !important;
}

/* Disabled State for Coming Soon */
.download-btn-wide.disabled {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

.status-subtitle {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 20px;
    /* Prevent jump */
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .platform-container {
        gap: 12px;
    }

    .platform-card {
        width: calc(50% - 12px);
        /* 2 per row */
        height: 120px;
    }
}

/* ===== DOWNLOADS PAGE - DARK MODE ===== */
[data-theme="dark"] .downloads-hero h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .downloads-hero p {
    color: var(--text-secondary);
}

[data-theme="dark"] .platform-card {
    background: rgba(22, 22, 24, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .platform-card:hover {
    background: rgba(30, 30, 36, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .platform-card.active {
    border-color: var(--brand-yellow);
    background: rgba(232, 201, 74, 0.08);
}

[data-theme="dark"] .platform-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .platform-icon img {
    filter: brightness(0.9);
}

[data-theme="dark"] .download-btn-wide.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary);
}

[data-theme="dark"] .status-subtitle {
    color: var(--text-secondary);
}