/* ============================================
   İndirmeler Sayfası - Modern Tasarım
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #f97316;
    --primary-blue: #0066CC;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fafafa;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   Animasyonlu Arka Plan
   ============================================ */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    top: -15%;
    left: -15%;
    animation-delay: 0s;
}

.orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.2) 0%, transparent 70%);
    bottom: -15%;
    right: -15%;
    animation-delay: 8s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 16s;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.grid-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 204, 0.08) 0%, transparent 50%);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(40px, -40px) scale(1.15);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

/* ============================================
   Ana Container
   ============================================ */

.downloads-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* ============================================
   Header
   ============================================ */

.downloads-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-divider {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(30, 41, 59, 0.3);
}

.header-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.375rem;
    text-shadow: none;
}

.header-subtitle {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
}

/* ============================================
   Download Sections
   ============================================ */

.downloads-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.download-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.download-section:nth-child(1) { animation-delay: 0.1s; }
.download-section:nth-child(2) { animation-delay: 0.2s; }
.download-section:nth-child(3) { animation-delay: 0.3s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(0, 102, 204, 0.1));
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.section-icon svg {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.section-info {
    flex: 1;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.section-desc {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 400;
}

/* ============================================
   Download List (Satır Şeklinde)
   ============================================ */

.download-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.download-row:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 102, 204, 0.3);
}

.row-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.row-icon svg {
    width: 18px;
    height: 18px;
}

.row-icon.android {
    background: linear-gradient(135deg, #3ddc84, #2ba968);
    color: #ffffff;
}

.row-icon.ios {
    background: linear-gradient(135deg, #000000, #434343);
    color: #ffffff;
}

.row-icon.windows {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: #ffffff;
}

.row-icon.alpemix {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
}

.row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.row-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.row-qr {
    flex-shrink: 0;
}

.row-qr img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.qr-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.qr-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.qr-btn svg {
    width: 14px;
    height: 14px;
}

.row-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #0066CC;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.row-btn:hover {
    background: #0052a3;
}

.row-btn svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   QR Modal
   ============================================ */

.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.qr-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.25s ease-out;
}

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

.qr-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qr-modal-close:hover {
    background: #e2e8f0;
}

.qr-modal-close svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.qr-modal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

.qr-modal-image {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.qr-modal-image img {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-modal-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

/* ============================================
   Support Section
   ============================================ */

.support-section {
    margin-top: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.4s;
    animation-fill-mode: both;
}

.support-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.support-card .support-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.support-card .support-icon svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.support-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.support-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.support-btn.phone {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.support-btn.phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.support-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.support-btn.whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.support-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Footer
   ============================================ */

.downloads-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    animation: fadeInUp 0.6s ease-out 0.5s;
    animation-fill-mode: both;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    backdrop-filter: blur(10px);
    color: #1e293b;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-sm);
}

.back-btn:hover {
    background: #f8fafc;
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.footer-info p {
    margin: 0;
}

.version {
    padding: 0.25rem 0.75rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* ============================================
   Animasyonlar
   ============================================ */

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

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

/* ============================================
   Responsive Tasarım
   ============================================ */

@media (max-width: 768px) {
    .downloads-wrapper {
        padding: 1.5rem 1rem;
    }

    .header-title {
        font-size: 1.75rem;
    }

    .header-subtitle {
        font-size: 0.9375rem;
    }

    .header-logos {
        gap: 0.75rem;
    }

    .header-logo {
        height: 32px;
    }

    .logo-divider {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .section-desc {
        font-size: 0.75rem;
    }

    .download-row {
        padding: 0.625rem 0.75rem;
    }

    .row-icon {
        width: 32px;
        height: 32px;
    }

    .row-icon svg {
        width: 16px;
        height: 16px;
    }

    .row-title {
        font-size: 0.8125rem;
    }

    .row-qr img {
        width: 40px;
        height: 40px;
    }

    .row-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .row-btn svg {
        width: 12px;
        height: 12px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .back-btn {
        width: 100%;
        justify-content: center;
    }

    .support-links {
        flex-direction: column;
        width: 100%;
    }

    .support-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .downloads-wrapper {
        padding: 1rem 0.75rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-subtitle {
        font-size: 0.875rem;
    }

    .section-header {
        padding: 0;
    }

    .section-icon {
        width: 36px;
        height: 36px;
    }

    .section-icon svg {
        width: 18px;
        height: 18px;
    }

    .row-btn span {
        display: none;
    }

    .row-btn {
        padding: 0.5rem;
    }
}

/* ============================================
   Platform Specific Hover Effects
   ============================================ */

.download-row.android:hover .row-icon {
    transform: scale(1.05);
}

.download-row.ios:hover .row-icon {
    transform: scale(1.05);
}

.download-row.windows:hover .row-icon {
    transform: scale(1.05);
}

.download-row.alpemix:hover .row-icon {
    transform: scale(1.05);
}

/* ============================================
   Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.download-btn:focus,
.back-btn:focus,
.support-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}
