/* ========================================
   Download Page Styles - Modern Theme
   Tüm Sayfalarla Uyumlu Tasarım
   ======================================== */

/* Body and Main Content Override - MUST BE FIRST - CRITICAL */
/* Body class approach (most reliable) */
body.download-page {
    background: linear-gradient(to bottom, #0f172a, #1e293b) !important;
    background-attachment: fixed !important;
    background-color: #0f172a !important;
    background-image: linear-gradient(to bottom, #0f172a, #1e293b) !important;
}

body.download-page .main-content {
    background: linear-gradient(to bottom, #0f172a, #1e293b) !important;
    background-attachment: fixed !important;
    background-color: #0f172a !important;
    background-image: linear-gradient(to bottom, #0f172a, #1e293b) !important;
    padding: 0 !important;
    min-height: 100vh !important;
}

/* Mobile'de fixed background sorun çıkarabilir */
@media (max-width: 768px) {
    body.download-page,
    body.download-page .main-content {
        background-attachment: scroll !important;
    }
}

/* Fallback with :has() for modern browsers */
body:has(.download-page-wrapper),
.main-content:has(.download-page-wrapper) {
    background: linear-gradient(to bottom, #0f172a, #1e293b) !important;
    background-color: #0f172a !important;
}

/* Font Ayarları - Diğer Sayfalarla Uyumlu */
.download-page-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    padding: 3rem 0 0 0 !important;
    margin-bottom: 0 !important;
    background: linear-gradient(to bottom, #0f172a, #1e293b) !important;
    background-attachment: fixed !important;
    background-color: #0f172a !important;
    min-height: calc(100vh - 200px) !important;
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* Container override */
.download-page-wrapper .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

.download-page-wrapper p,
.download-page-wrapper span,
.download-page-wrapper label,
.download-page-wrapper input,
.download-page-wrapper select,
.download-page-wrapper textarea,
.download-page-wrapper button,
.download-page-wrapper a,
.download-page-wrapper small,
.download-page-wrapper strong {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.download-page-wrapper h1,
.download-page-wrapper h2,
.download-page-wrapper h3,
.download-page-wrapper h4,
.download-page-wrapper h5,
.download-page-wrapper h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Icon'ları koru */
.download-page-wrapper i,
.download-page-wrapper .fas,
.download-page-wrapper .far,
.download-page-wrapper .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
}

/* Gradient Text */
.gradient-text-violet-fuchsia-cyan {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header - FAQ ve Store ile Uyumlu */
.download-page-wrapper .download-header {
    text-align: center;
    margin-bottom: 3rem;
}

.download-page-wrapper .download-header h1 {
    font-size: 2.5rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 0.5rem 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.download-page-wrapper .download-header h1 i {
    font-size: 2.5rem !important;
}

.download-page-wrapper .download-header p {
    font-size: 1.1rem !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Main Download Section */
.download-page-wrapper .download-main-section {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-radius: 1rem !important;
    padding: 3rem 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 1;
}

/* Download Buttons Container */
.download-page-wrapper .download-buttons-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
    flex-wrap: wrap !important;
}

/* Platform Download Buttons - Store Kartları ile Uyumlu */
.download-page-wrapper .download-platform-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    width: 220px !important;
    height: 220px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.download-page-wrapper .download-platform-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.download-page-wrapper .download-platform-btn:hover::before {
    left: 100%;
}

.download-page-wrapper .download-platform-btn:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.3) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.download-page-wrapper .download-windows {
    border-color: rgba(0, 120, 215, 0.3) !important;
}

.download-page-wrapper .download-windows:hover {
    border-color: rgba(0, 120, 215, 0.6) !important;
    box-shadow: 0 16px 48px rgba(0, 120, 215, 0.3) !important;
}

.download-page-wrapper .download-mac {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.download-page-wrapper .download-mac:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 16px 48px rgba(255, 255, 255, 0.2) !important;
}

.download-page-wrapper .platform-icon {
    width: 90px !important;
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(30, 41, 59, 0.6) !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.download-page-wrapper .download-platform-btn:hover .platform-icon {
    transform: scale(1.1) !important;
    background: rgba(30, 41, 59, 0.9) !important;
}

.download-page-wrapper .platform-icon i {
    font-size: 4rem !important;
    color: white !important;
}

.download-page-wrapper .download-windows .platform-icon i {
    color: #00a8f3 !important;
}

.download-page-wrapper .download-mac .platform-icon i {
    color: #ffffff !important;
}

.download-page-wrapper .platform-name {
    font-size: 1.25rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    color: white !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
}

/* Download Note */
.download-page-wrapper .download-note {
    text-align: center !important;
    margin-top: 1.5rem !important;
}

.download-page-wrapper .download-note p {
    font-size: 0.875rem !important;
    font-family: 'Inter', sans-serif !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
}

/* Info Card - Store Kartları ile Uyumlu */
.download-page-wrapper .download-info-card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.info-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.info-card-header h3 {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card-header h3 i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.info-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: #8b5cf6;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: white;
}

/* Features Card */
.download-page-wrapper .download-features-card {
    background: rgba(30, 41, 59, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.download-features-card h3 {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: white;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.download-features-card h3 i {
    color: #8b5cf6;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.feature-item i {
    color: #22c55e;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item span {
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

/* Download Unavailable */
.download-unavailable {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    color: #fca5a5;
    max-width: 600px;
    margin: 0 auto;
}

.download-unavailable i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: #ef4444;
}

.download-unavailable p {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin: 0;
    color: #fca5a5;
}

/* Responsive */
@media (max-width: 768px) {
    .download-page-wrapper {
        padding: 2rem 0 !important;
    }

    .download-page-wrapper .download-header h1 {
        font-size: 2rem !important;
        flex-direction: column !important;
    }

    .download-page-wrapper .download-main-section {
        padding: 2rem 1.5rem !important;
    }

    .download-page-wrapper .download-buttons-container {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .download-page-wrapper .download-platform-btn {
        width: 100% !important;
        max-width: 300px !important;
        height: 200px !important;
    }

    .download-page-wrapper .platform-icon {
        width: 80px !important;
        height: 80px !important;
    }

    .download-page-wrapper .platform-icon i {
        font-size: 3.5rem !important;
    }

    .download-page-wrapper .platform-name {
        font-size: 1.125rem !important;
    }

    .download-page-wrapper .info-row {
        grid-template-columns: 1fr !important;
    }

    .download-page-wrapper .features-grid {
        grid-template-columns: 1fr !important;
    }

    .download-page-wrapper .download-info-card,
    .download-page-wrapper .download-features-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .download-page-wrapper .download-header h1 {
        font-size: 1.75rem !important;
    }

    .download-page-wrapper .download-platform-btn {
        height: 180px !important;
        gap: 1rem !important;
    }

    .download-page-wrapper .platform-icon {
        width: 70px !important;
        height: 70px !important;
    }

    .download-page-wrapper .platform-icon i {
        font-size: 3rem !important;
    }

    .download-page-wrapper .platform-name {
        font-size: 1rem !important;
    }
}
