﻿/* ═══════════════════════════════════════════
   download.css — Download page
   ═══════════════════════════════════════════ */

html, body {
    /*background: var(--bg);*/
}

.download-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.page-header {
    margin-bottom: 130px;
}

/* ── Download buttons ── */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 170px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    min-width: 235px;
}

.download-btn-windows {
    background: #4d5b7c;
    color: #ffffff;
}

.download-btn-windows:hover {
    background: rgba(77,91,124,0.9);
    color: #ffffff;
}

.download-btn-mac {
    background: var(--text-primary);
    color: #ffffff;
}

.download-btn-mac:hover {
    /*background: rgba(49,56,73,0.97);*/
    background: var(--text-primary);
    color: #ffffff;
}

.download-btn-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    margin-right: 8px;
}

.download-btn-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-btn-platform {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ── Mac dropdown wrapper ── */
.mac-wrapper {
    position: relative;
}

.mac-trigger {
    width: 100%;
    cursor: pointer;
    border: none;
    transition: border-radius 0.15s;
}

.mac-chevron {
    margin-left: auto;
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hover desktop */
.mac-wrapper:hover .mac-trigger,
.mac-wrapper.open .mac-trigger {
    border-radius: 12px 12px 0 0;
}

.mac-wrapper:hover .mac-chevron,
.mac-wrapper.open .mac-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown */
.mac-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--text-primary);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 100;
}

.mac-wrapper:hover .mac-dropdown,
.mac-wrapper.open .mac-dropdown {
    display: block;
}

/* Options */
.mac-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s;
}

    .mac-option:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

.mac-option-chip {
    margin: -8px 0 -8px auto;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(100, 220, 150, 0.2);
    color: #7ee8a8;
    white-space: nowrap;
}

/* ── Steps ── */
.download-steps {
    margin-bottom: 5rem;
}

.steps-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.step-card {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    margin-top: 0.75rem;
}

.step-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--text-secondary);
}

.step-connector {
    display: flex;
    align-items: center;
    color: #d1d5db;
    font-size: 1rem;
    padding: 0 0.5rem;
    flex-shrink: 0;
    align-self: center;
}

/* ── Responsive ── */
@media (max-width: 800px) {

    .steps-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .step-connector {
        transform: rotate(90deg);
        margin-bottom: 10px;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
  
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn, .mac-wrapper {
        width: 100%;
        max-width: 300px;
    }

    .mac-chevron {
        margin-left: auto;
    }    
}
