/* ============================================
   MobilOkulum - Download Page Styles
   ============================================ */

.download-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: url('../images/app_bg.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    z-index: 1;
}

.download-hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.download-header {
    margin-bottom: 60px;
}

.download-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.download-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
}

.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-btn:hover {
    transform: translateY(-5px);
}

.store-btn img {
    height: 50px;
}

/* UI Showcase Section */
.app-ui-showcase {
    position: relative;
    margin-top: 60px;
    padding: 60px 0;
    width: 100%;
    overflow: visible;
}

.screens-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    perspective: 2000px;
    position: relative;
}

.phone-screen-container {
    width: 265px;
    height: auto;
    aspect-ratio: 9 / 19.5;
    background: #000;
    border: 8px solid #1e293b;
    border-radius: 42px;
    overflow: hidden;
    position: absolute;
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

/* Telefonun dış metalik kenar efekti */
.phone-screen-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 10;
}

.phone-screen-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Ölçeği bozarak kutuya sığdırır, kesilmeyi önler */
    display: block;
    border-radius: 34px;
    /* Çerçeveye uyumlu iç kavis */
}

/* Daha kibar ve gerçekçi çentik */
.dynamic-island {
    position: absolute;
    top: 7px;
    /* Daha da yukarı aldım */
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 16px;
    background: #000;
    border-radius: 20px;
    z-index: 25;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.dynamic-island::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #111;
    border-radius: 50%;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Mobile caption - sadece mobilde göster */
.mobile-caption {
    display: none;
}


/* 3D Layout - SADECE MASAÜSTÜ */
@media (min-width: 993px) {
    .screen-1 {
        transform: translateX(-400px) rotateY(35deg) scale(0.75);
        z-index: 1;
        opacity: 0.5;
        filter: blur(2px);
    }

    .screen-2 {
        transform: translateX(-220px) rotateY(25deg) scale(0.85);
        z-index: 3;
        opacity: 0.8;
        filter: blur(1px);
    }

    .screen-3 {
        transform: translateX(0) rotateY(0) scale(1.05);
        z-index: 10;
        opacity: 1;
        filter: none;
        box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7);
    }

    .screen-4 {
        transform: translateX(220px) rotateY(-25deg) scale(0.85);
        z-index: 3;
        opacity: 0.8;
        filter: blur(1px);
    }

    .screen-5 {
        transform: translateX(400px) rotateY(-35deg) scale(0.75);
        z-index: 1;
        opacity: 0.5;
        filter: blur(2px);
    }

    /* Interaction */
    .phone-screen-container:hover {
        transform: translateX(var(--hover-tx, 0)) translateY(-30px) scale(1.1) !important;
        z-index: 20;
        opacity: 1;
        filter: none;
        border-color: #3b82f6;
        cursor: pointer;
    }

    .screen-1:hover {
        --hover-tx: -400px;
    }

    .screen-2:hover {
        --hover-tx: -220px;
    }

    .screen-3:hover {
        --hover-tx: 0;
    }

    .screen-4:hover {
        --hover-tx: 220px;
    }

    .screen-5:hover {
        --hover-tx: 400px;
    }
}

/* Info Panels */
.info-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.info-card {
    padding: 35px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.info-card:hover {
    transform: translateY(-8px);
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(37, 99, 235, 0.2);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .screen-1 {
        transform: translateX(-320px) rotateY(35deg) scale(0.7);
    }

    .screen-5 {
        transform: translateX(320px) rotateY(-35deg) scale(0.7);
    }

    .screen-2 {
        transform: translateX(-180px) rotateY(25deg) scale(0.8);
    }

    .screen-4 {
        transform: translateX(180px) rotateY(-25deg) scale(0.8);
    }

    .screen-1:hover {
        --hover-tx: -320px;
    }

    .screen-5:hover {
        --hover-tx: 320px;
    }

    .screen-2:hover {
        --hover-tx: -180px;
    }

    .screen-4:hover {
        --hover-tx: 180px;
    }
}

@media (max-width: 992px) {
    .download-hero {
        padding: 60px 0 40px;
        overflow: hidden;
        /* Taşmaları gizle */
    }

    .download-header h1 {
        font-size: 2.5rem;
        padding: 0 15px;
        line-height: 1.2;
    }

    .download-header p {
        font-size: 1.1rem;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .app-ui-showcase {
        margin-top: 30px;
        padding: 0;
        width: 100vw;
        /* Tam genişlik */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .screens-wrapper {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 20px 20px 40px 20px;
        /* Alt padding scrollbar alanı için */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 20px;
        /* Soldan hizalama */
        width: 100%;
        min-height: auto;
        align-items: center;
        /* Absolute positioned elements reset */
        perspective: none;
    }

    /* Scrollbar'ı gizle */
    .screens-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Telefon Kartları - Mobile Özel Reset */
    .phone-screen-container,
    .screen-1,
    .screen-2,
    .screen-3,
    .screen-4,
    .screen-5 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        flex: 0 0 260px;
        /* Sabit Genişlik */
        width: 260px !important;
        height: auto !important;
        aspect-ratio: 9 / 19.5;
        margin: 0 !important;
        opacity: 1 !important;
        filter: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
        scroll-snap-align: center;
        /* Merkeze oturt */
        border-width: 6px;
        padding: 6px;
        animation: none !important;
    }

    /* Sadece mobilde aktif olan kart sırası (isteğe bağlı) */
    .screen-1 {
        order: 1;
    }

    .screen-2 {
        order: 2;
    }

    .screen-3 {
        order: 3;
    }

    .screen-4 {
        order: 4;
    }

    .screen-5 {
        order: 5;
    }

    .info-panels {
        margin-top: 40px;
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 20px;
    }

    .info-card {
        text-align: center !important;
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 480px) {
    .download-header h1 {
        font-size: 2rem;
    }

    /* Daha küçük ekranlar için telefon boyutu */
    .phone-screen-container,
    .screen-1,
    .screen-2,
    .screen-3,
    .screen-4,
    .screen-5 {
        flex: 0 0 220px;
        width: 220px !important;
        border-width: 4px;
        padding: 4px;
    }

    .dynamic-island {
        width: 50px;
        height: 14px;
        top: 8px;
    }
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateY(0) scale(1.05);
    }

    50% {
        transform: translateY(-15px) rotateY(0) scale(1.05);
    }
}

.screen-3 {
    animation: float 5s ease-in-out infinite;
}