/* ============================================================
   Download Page Styles
   Applies on top of main.css
   ============================================================ */

/* === Download Hero === */
.dl-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a192f 60%, #112240 100%);
    padding: 80px 0 70px;
    position: relative;
    overflow: hidden;
}
.dl-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 104, 160, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.dl-hero-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7899b8;
    margin-bottom: 20px;
    font-weight: 400;
}
.dl-hero-title {
    font-size: 52px;
    font-weight: 100;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}
.dl-hero-desc {
    font-size: 16px;
    color: #a0b4c8;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
    font-weight: 300;
}
.dl-hero-platforms {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.dl-hero-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.05);
}
.dl-hero-platform-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}
.dl-hero-platform-btn i { font-size: 15px; }

/* === Sticky Platform Tabs === */
.platform-tabs-wrapper {
    position: sticky;
    top: var(--header-height);
    z-index: 900;
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.platform-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.platform-tabs::-webkit-scrollbar { display: none; }
.platform-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    height: 52px;
    font-size: 14px;
    color: var(--text-gray);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-weight: 400;
}
.platform-tab i { font-size: 16px; }
.platform-tab:hover { color: var(--brand-blue); }
.platform-tab.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
    font-weight: 500;
}

/* === Platform Section === */
.platform-section {
    padding: 64px 0;
    border-bottom: 1px solid #f0f0f0;
}
.platform-section:last-of-type { border-bottom: none; }

.platform-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.platform-header-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}
.platform-header h2 {
    font-size: 26px;
    font-weight: 300;
    color: #111;
    margin-bottom: 4px;
}
.platform-header p {
    font-size: 14px;
    color: var(--text-light-gray);
}

/* === Primary Client Card (Featured) === */
.client-card-primary {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.client-card-primary:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.client-card-primary-info {
    flex: 1;
    padding: 36px 40px;
}
.client-card-primary-visual {
    flex: 0 0 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    min-height: 260px;
}
.client-visual-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    border-radius: 50%;
}
.windows-bg { background: linear-gradient(135deg, #0078d4, #005fa3); color: #fff; }
.macos-bg { background: linear-gradient(135deg, #6c6c6c, #333); color: #fff; }
.android-bg { background: linear-gradient(135deg, #3ddc84, #2ea468); color: #fff; }
.ios-bg { background: linear-gradient(135deg, #555, #111); color: #fff; }
.linux-bg { background: linear-gradient(135deg, #f7b731, #e67e22); color: #fff; }

/* === Secondary Client Cards Grid === */
.client-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.client-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 28px 28px 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}
.client-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}
.client-card-archived {
    background: #fafafa;
    border-color: #e9e9e9;
}
.client-card-archived:hover { transform: none; }

.client-card h4 {
    font-size: 18px;
    font-weight: 400;
    color: #111;
    margin-bottom: 10px;
}
.client-card-primary-info h3 {
    font-size: 26px;
    font-weight: 300;
    color: #111;
    margin-bottom: 12px;
}

/* === Badges === */
.client-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #fff;
}
.badge-primary {
    background: linear-gradient(135deg, #10b981, #059669);
}
.badge-beginner {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.badge-archived {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* === Client Description === */
.client-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

/* === Feature Chips === */
.feature-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-light);
    border: 1px solid #dde1e7;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
}

/* === Download Buttons === */
.client-download-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Primary download button with pulse animation */
@keyframes btn-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(25, 57, 99, 0.45); }
    70%  { box-shadow: 0 0 0 14px rgba(25, 57, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 57, 99, 0); }
}
.btn-download-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-blue);
    color: #fff;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    animation: btn-pulse 2.2s infinite;
}
.btn-download-primary:hover {
    background: var(--brand-blue-hover);
    animation: none;
    box-shadow: 0 4px 16px rgba(25, 57, 99, 0.4);
}

.btn-download-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--brand-blue);
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid var(--brand-blue);
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-download-secondary:hover {
    background: var(--brand-blue);
    color: #fff;
}
.btn-archived {
    color: #888;
    border-color: #ccc;
    animation: none;
}
.btn-archived:hover {
    background: #888;
    border-color: #888;
    color: #fff;
}

/* === System Requirements === */
.sys-req {
    font-size: 12px;
    color: var(--text-light-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* === GitHub Link === */
.github-link {
    font-size: 13px;
}
.github-link a {
    color: var(--text-light-gray);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.github-link a:hover { color: var(--brand-blue); }
.github-link-deleted {
    color: #bbb;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* === iOS Special Section === */
.ios-notice {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border: 1px solid #c7d7f5;
    padding: 20px 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ios-notice-icon {
    font-size: 24px;
    color: var(--brand-blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.ios-notice h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--brand-blue);
    margin-bottom: 6px;
}
.ios-notice p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.ios-client-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 16px;
    transition: box-shadow 0.25s;
}
.ios-client-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ios-client-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #555, #111);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    flex-shrink: 0;
}
.ios-client-info { flex: 1; }
.ios-client-info h4 {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 4px;
}
.ios-client-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}
.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    color: #fff;
    padding: 9px 18px;
    font-size: 13px;
    border-radius: 0;
    transition: background 0.2s;
}
.btn-appstore:hover { background: #222; }

/* Apple ID Tutorial */
.apple-id-tutorial {
    background: var(--bg-light);
    border: 1px solid #dde1e7;
    padding: 32px 36px;
    margin-top: 40px;
}
.apple-id-tutorial h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 8px;
}
.apple-id-tutorial .tutorial-label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light-gray);
    margin-bottom: 20px;
    display: block;
}
.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.tutorial-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.tutorial-step-num {
    width: 30px;
    height: 30px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tutorial-step-text h5 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}
.tutorial-step-text p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* === Linux CLI Code Block === */
.linux-cli {
    background: #0d1117;
    padding: 28px 32px;
    margin: 28px 0;
    position: relative;
    overflow-x: auto;
}
.linux-cli-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.linux-cli-header span {
    font-size: 12px;
    color: #7d8590;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.linux-cli-dots {
    display: flex;
    gap: 5px;
    margin-right: 12px;
}
.linux-cli-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #ffbd2e; }
.dot-green { background: #28ca41; }

.linux-cli code {
    font-family: 'SF Mono', 'Consolas', 'Fira Code', monospace;
    font-size: 13.5px;
    color: #e6edf3;
    display: block;
    line-height: 1.8;
}
.linux-cli code .cmd-prompt { color: #3fb950; }
.linux-cli code .cmd-comment { color: #8b949e; }
.linux-cli code .cmd-flag { color: #79c0ff; }
.linux-cli-copy {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #aaa;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.linux-cli-copy:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* === Android Architecture Guide === */
.arch-guide {
    background: #fff8e1;
    border: 1px solid #fdd835;
    border-left: 4px solid #f9a825;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #5f4000;
    line-height: 1.7;
}
.arch-guide strong { font-weight: 500; }

/* === Quick Start Section === */
.quick-start {
    background: var(--bg-dark);
    padding: 80px 0;
}
.quick-start-header {
    text-align: center;
    margin-bottom: 56px;
}
.quick-start-header .section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7899b8;
    margin-bottom: 16px;
    display: block;
}
.quick-start-header h2 {
    font-size: 36px;
    font-weight: 100;
    color: #fff;
    margin-bottom: 12px;
}
.quick-start-header p {
    font-size: 16px;
    color: #a0b4c8;
    font-weight: 300;
}
.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.quick-start-step {
    background: rgba(255,255,255,0.04);
    padding: 48px 40px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
}
.quick-start-step:hover { background: rgba(255,255,255,0.07); }
.step-num {
    font-size: 64px;
    font-weight: 100;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -4px;
}
.step-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}
.quick-start-step h3 {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 12px;
}
.quick-start-step p {
    font-size: 14px;
    color: #a0b4c8;
    line-height: 1.7;
    font-weight: 300;
}
.step-connector {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(255,255,255,0.2);
    z-index: 2;
}

/* === FAQ Section === */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.faq-header {
    margin-bottom: 48px;
}
.faq-header .section-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light-gray);
    margin-bottom: 16px;
    display: block;
}
.faq-header h2 {
    font-size: 36px;
    font-weight: 100;
    color: #111;
    margin-bottom: 8px;
}
.faq-header p {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 300;
}

.faq-list { max-width: 860px; }
.faq-item {
    border-bottom: 1px solid #dde1e7;
    overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid #dde1e7; }
.faq-item summary {
    padding: 22px 8px 22px 0;
    font-size: 15px;
    font-weight: 400;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    gap: 16px;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-light-gray);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--brand-blue);
}
.faq-item[open] summary { color: var(--brand-blue); }
.faq-answer {
    padding: 0 8px 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    font-weight: 300;
}
.faq-answer p + p { margin-top: 12px; }
.faq-answer a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* === Download Stats Banner === */
.stats-banner {
    background: var(--brand-blue-light);
    padding: 48px 0;
}
.stats-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}
.stats-banner .stat-item {
    text-align: center;
}
.stats-banner .stat-num {
    font-size: 40px;
    font-weight: 100;
    letter-spacing: -1px;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
}
.stats-banner .stat-label {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Responsive Styles
   ============================================================ */
@media (max-width: 1024px) {
    .client-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-start-steps { grid-template-columns: 1fr; gap: 12px; }
    .step-connector { display: none; }
}

@media (max-width: 900px) {
    .dl-hero-title { font-size: 38px; }
    .client-card-primary { flex-direction: column; }
    .client-card-primary-visual {
        min-height: 160px;
        flex: none;
    }
    .platform-tabs-wrapper { top: 0; }
    .platform-tab { padding: 0 16px; font-size: 13px; }
    .platform-tab span { display: none; }
    .platform-tab { gap: 0; }
    .tutorial-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .dl-hero { padding: 50px 0 48px; }
    .dl-hero-title { font-size: 30px; }
    .dl-hero-platforms { gap: 8px; }
    .dl-hero-platform-btn { padding: 8px 16px; font-size: 13px; }
    .client-cards-grid { grid-template-columns: 1fr; }
    .client-card-primary-info { padding: 24px 20px; }
    .client-download-btns { flex-direction: column; }
    .btn-download-primary,
    .btn-download-secondary { width: 100%; justify-content: center; }
    .quick-start { padding: 56px 0; }
    .quick-start-step { padding: 32px 24px; }
    .faq-section { padding: 56px 0; }
    .ios-client-card { flex-direction: column; }
    .stats-inner { gap: 24px; }
    .stats-banner .stat-num { font-size: 30px; }
    .platform-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .apple-id-tutorial { padding: 24px 20px; }
    .linux-cli { padding: 20px 16px; }
}
