/* =========================================
   Download Page Styles
   ========================================= */

.download-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.download-header {
    text-align: center;
    margin-bottom: 60px;
}

.download-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin: 10px 0 20px;
}

.download-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Download Content */
.download-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Download List */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.item-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-main);
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.item-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.item-desc {
    color: var(--text-body);
    font-size: 0.95rem;
}

.item-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.btn-download {
    background: var(--primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.btn-download:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1.05);
}

.link-notes {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-notes:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* QR Code Card (Mobile) */
.download-qr-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 700px;
    margin: 0 auto;
}

.qr-code-box {
    text-align: center;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #000;
    margin-bottom: 15px;
}

.qr-code-box span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.app-store-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.app-store-info p {
    color: var(--text-body);
    margin-bottom: 30px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #000;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.store-btn.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.store-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-group {
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .item-meta {
        justify-content: center;
    }

    .item-action {
        width: 100%;
    }

    .download-qr-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }

    .btn-group {
        justify-content: center;
    }
}

/* Mobile Devices (max 768px) */
@media (max-width: 768px) {
    .download-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .download-header {
        margin-bottom: 40px;
    }

    .download-header h1 {
        font-size: 2rem;
    }

    .download-header p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .platform-tabs {
        gap: 10px;
        padding: 0 10px;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 6px;
    }

    .tab-btn i {
        font-size: 1.1rem;
    }

    .download-content-wrapper {
        max-width: 100%;
    }

    .download-list {
        gap: 16px;
    }

    .download-item {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        text-align: center;
    }

    .item-icon {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }

    .item-info {
        width: 100%;
    }

    .item-info h3 {
        font-size: 1.15rem;
    }

    .item-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.8rem;
    }

    .item-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .btn-download,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .release-notes {
        padding: 20px;
    }

    .release-notes h3 {
        font-size: 1.15rem;
    }

    .release-notes ul li {
        font-size: 0.9rem;
    }

    .download-qr-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .qr-code-placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .qr-info h3 {
        font-size: 1.15rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .download-header h1 {
        font-size: 1.75rem;
    }

    .platform-tabs {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .download-item {
        padding: 16px;
        gap: 16px;
    }

    .item-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .item-info h3 {
        font-size: 1.05rem;
    }

    .release-notes {
        padding: 16px;
    }

    .qr-code-placeholder {
        width: 120px;
        height: 120px;
    }
}
