/* ============================================
   TradOpiax — App Download Page CSS
   Futuristic Fintech Design
   ============================================ */

.download-page {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    background: #08090f;
    color: #f0f2ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Gradients & Mesh */
.download-bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.download-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.download-orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1), transparent 70%);
    top: -150px;
    right: -100px;
}

.download-orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
}

.download-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Main Layout */
.download-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 10;
    flex: 1;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: #00e676;
    transform: translateX(-4px);
}

/* Split Grid Layout */
.download-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .download-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Left Column: Download Card */
.download-hero-card {
    background: rgba(15, 18, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 230, 118, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Brand info */
.download-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.download-brand-img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.download-brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, #00e676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-brand-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2px;
}

/* Metadata grid */
.apk-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

@media (max-width: 500px) {
    .apk-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.meta-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.meta-value.green {
    color: #00e676;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.2);
}

/* Download State Display */
.download-action-box {
    margin-bottom: 30px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    text-align: center;
}

.download-status-text {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

/* Progress bar container */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #00e676);
    border-radius: 10px;
    box-shadow: 0 0 12px #00e676;
    transition: width 0.1s linear;
}

/* Buttons */
.download-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-apk-download {
    background: linear-gradient(135deg, #00e676, #00c853);
    color: #07160a;
    font-weight: 800;
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 230, 118, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-apk-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 230, 118, 0.45);
}

.btn-apk-download:active {
    transform: translateY(0);
}

.btn-apk-download svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.download-alternative-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
    outline: none;
}

.download-alternative-link:hover {
    color: #00e5ff;
}

/* Right Column: Changelog Box */
.download-changelog-card {
    background: rgba(15, 18, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.changelog-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.changelog-list li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    position: relative;
    padding-left: 10px;
}

/* Install Guide Section */
.install-guide-section {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 50px;
}

.guide-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.guide-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 850px) {
    .guide-steps-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.guide-step-card {
    background: rgba(15, 18, 32, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guide-step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 230, 118, 0.15);
}

.step-num-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: #00e676;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
}

.guide-step-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.guide-step-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Step illustrations */
.step-illustration {
    width: 100%;
    max-width: 160px;
    height: 120px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Step 1 Drawing: Download animation */
.ill-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ill-download-arrow {
    font-size: 24px;
    color: #00e5ff;
    animation: bounceDown 1.5s infinite;
}

.ill-download-bar {
    width: 60px;
    height: 4px;
    background: #00e676;
    border-radius: 2px;
    box-shadow: 0 0 8px #00e676;
}

/* Step 2 Drawing: Toggle switch */
.ill-toggle-track {
    width: 44px;
    height: 24px;
    background: #00c853;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
    animation: togglePulse 2s infinite;
}

.ill-toggle-knob {
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 3px;
}

/* Step 3 Drawing: Phone install */
.ill-phone {
    width: 32px;
    height: 56px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    position: relative;
}

.ill-phone-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00e676;
    font-size: 16px;
    font-weight: 900;
}

/* Keyframe animations */
@keyframes bounceDown {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
}

@keyframes togglePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.95); }
}

/* Footer disclaimer styling */
.download-footer-disclaimer {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    line-height: 1.6;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
