/* Download Page Specific Premium Styles */

.dl-hero {
    padding: 140px 5% 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Background Glow for Hero */
.dl-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 400px;
    background: radial-gradient(ellipse at top, rgba(181, 140, 246, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.dl-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(181, 140, 246, 0.05);
    border: 1px solid rgba(181, 140, 246, 0.3);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(181, 140, 246, 0.1);
    backdrop-filter: blur(10px);
}

.dl-title {
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-bottom: 20px;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dl-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.dl-platform-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
}

.dl-platform-icons span {
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(100%);
}

.dl-platform-icons span:hover {
    opacity: 1;
    color: var(--text);
    transform: translateY(-5px) scale(1.1);
    filter: grayscale(0%);
    text-shadow: 0 0 15px currentColor;
}

/* Tabs */
.dl-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    transition: all 0.4s ease;
}

.dl-tabs-wrap.sticky {
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    padding: 15px 5%;
    background: rgba(8, 8, 8, 0.85);
}

.dl-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    overflow-x: auto;
    max-width: 100%;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.dl-tabs::-webkit-scrollbar {
    display: none;
}

.dl-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.dl-tab::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.dl-tab:hover::before {
    opacity: 1;
}

.dl-tab:hover {
    color: var(--text);
}

.dl-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
}

.dl-tab.active[data-platform="windows"] { color: #00a4ef; text-shadow: 0 0 10px rgba(0,164,239,0.3); }
.dl-tab.active[data-platform="macos"] { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.dl-tab.active[data-platform="linux"] { color: #fcc624; text-shadow: 0 0 10px rgba(252,198,36,0.3); }
.dl-tab.active[data-platform="ios"] { color: #007aff; text-shadow: 0 0 10px rgba(0,122,255,0.3); }
.dl-tab.active[data-platform="android"] { color: #3ddc84; text-shadow: 0 0 10px rgba(61,220,132,0.3); }

/* Panels */
.dl-panels-wrap {
    max-width: 1000px;
    margin: 60px auto 100px;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.dl-panel {
    display: none;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dl-panel.active {
    display: block;
}

@keyframes slideUpFade {
    0% { opacity: 0; transform: translateY(30px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.dl-panel-header {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(145deg, rgba(30,30,30,0.4), rgba(15,15,15,0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

.dl-platform-logo {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.2);
    position: relative;
}

.dl-platform-logo::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.win-logo { color: #00a4ef; filter: drop-shadow(0 0 15px rgba(0,164,239,0.3)); }
.mac-logo { color: #fff; filter: drop-shadow(0 0 15px rgba(255,255,255,0.2)); }
.linux-logo { color: #fcc624; filter: drop-shadow(0 0 15px rgba(252,198,36,0.3)); }
.ios-logo { color: #007aff; filter: drop-shadow(0 0 15px rgba(0,122,255,0.3)); }
.android-logo { color: #3ddc84; filter: drop-shadow(0 0 15px rgba(61,220,132,0.3)); }

.dl-platform-info h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.dl-meta {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dl-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.dl-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 15px 30px rgba(181, 140, 246, 0.3), inset 0 1px 1px rgba(255,255,255,0.4);
}

.dl-btn.primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.dl-btn.primary:hover::before {
    left: 150%;
}

.dl-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(181, 140, 246, 0.4), inset 0 1px 1px rgba(255,255,255,0.4);
}

.dl-btn.ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.dl-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.dl-btn.github {
    background: rgba(255, 255, 255, 0.05);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.dl-btn.github:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--secondary, #ff9900);
    color: var(--secondary, #ff9900);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 153, 0, 0.25);
}

.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: #FFF !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-github:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #ff9900 !important;
    color: #ff9900 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.2);
}

/* Sections */
.dl-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.dl-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Requirements Grid */
.dl-requirements {
    margin-bottom: 60px;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.req-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.req-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-color: rgba(255,255,255,0.1);
}

.req-label {
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.req-value {
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Steps */
.dl-steps-section {
    margin-bottom: 60px;
}

.dl-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding-top: 10px;
}

.dl-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 15px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, rgba(181, 140, 246, 0.1) 100%);
    z-index: -1;
}

.dl-step {
    display: flex;
    gap: 30px;
}

.step-num {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #080808;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 0 15px rgba(181, 140, 246, 0.4), inset 0 0 10px rgba(181, 140, 246, 0.2);
    position: relative;
}

.step-content {
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 25px 30px;
    border-radius: 20px;
    flex-grow: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.step-content:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.1);
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    margin-top: 0;
    display: flex;
    align-items: center;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.dl-substeps {
    color: var(--text-muted);
    margin-left: 20px;
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.dl-substeps li {
    margin-bottom: 8px;
}

/* Callouts */
.dl-callout {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.dl-callout svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.dl-callout.warning {
    background: linear-gradient(90deg, rgba(255, 171, 0, 0.1), rgba(255, 171, 0, 0.05));
    border: 1px solid rgba(255, 171, 0, 0.3);
    color: #ffd180;
    box-shadow: inset 4px 0 0 #ffab00;
}

.dl-callout.info {
    background: linear-gradient(90deg, rgba(0, 164, 239, 0.1), rgba(0, 164, 239, 0.05));
    border: 1px solid rgba(0, 164, 239, 0.3);
    color: #81d4fa;
    box-shadow: inset 4px 0 0 #00a4ef;
}

/* Code Blocks */
.code-block {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.code-header {
    background: #141414;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.copy-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    color: #e6e6e6;
    line-height: 1.5;
}

/* Linux Methods */
.linux-method-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.linux-tab {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.linux-tab:hover {
    background: rgba(255,255,255,0.08);
}

.linux-tab.active {
    background: rgba(181, 140, 246, 0.15);
    border-color: rgba(181, 140, 246, 0.4);
    color: var(--text);
    box-shadow: 0 0 15px rgba(181, 140, 246, 0.2);
}

.linux-method {
    display: none;
}

.linux-method.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* FAQ */
.dl-faq-section {
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    padding: 100px 5%;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.dl-faq-inner {
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

.faq-item summary {
    padding: 25px 30px;
    font-size: 1.15rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b58cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 30px 30px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
    animation: slideDownFade 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .dl-tabs-wrap {
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .dl-tabs-wrap::-webkit-scrollbar {
        display: none;
    }
    .dl-tabs {
        justify-content: flex-start;
        width: max-content;
        min-width: 100%;
    }
    .dl-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    .dl-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .dl-hero { padding: 90px 1rem 30px; }
    .dl-title { 
        font-size: clamp(2rem, 8vw, 3rem); 
        word-break: break-word;
    }
    .dl-subtitle {
        font-size: 0.95rem;
    }
    
    .dl-panel-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
    }

    .dl-platform-info h2 {
        font-size: 1.6rem;
        word-break: break-word;
    }
    
    .dl-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }
    
    .dl-steps::before {
        left: 18px;
    }
    
    .step-num {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-content {
        padding: 16px 18px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    
    .dl-step {
        gap: 12px;
    }
    
    .req-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .req-item {
        padding: 14px 18px;
    }
}
