/* ========== APP PAGE STYLES ========== */
.app-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.app-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--secondary-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow-dark);
    border: 1px solid var(--border-light);
    min-height: 600px;
}

/* ========== LEFT SIDE (APP PROMO) ========== */
.app-left {
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.app-promo {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-promo h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.2;
}

.app-promo > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* ========== APP FEATURES ========== */
.app-features {
    margin-bottom: 30px;
}

.app-features .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.app-features .feature-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: var(--text-primary);
    opacity: 0.9;
    flex-shrink: 0;
}

.app-features .feature-icon svg {
    width: 100%;
    height: 100%;
}

/* ========== PHONE MOCKUP ========== */
.app-phone-mockup {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex: 1;
}

.phone-frame {
    width: 180px;
    height: 320px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 20px 15px;
    box-shadow: 
        0 0 30px rgba(0,0,0,0.5),
        inset 0 2px 10px rgba(255,255,255,0.1);
    border: 3px solid #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    padding: 20px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    margin-right: 10px;
}

.app-logo span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.mock-games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.game-tile {
    background: linear-gradient(135deg, var(--tertiary-bg), var(--secondary-bg));
    border-radius: 8px;
    height: 60px;
    position: relative;
    border: 1px solid var(--border-light);
}

.game-tile::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 4px;
    opacity: 0.6;
}

/* ========== MOBILE EXCLUSIVE ========== */
.mobile-exclusive {
    margin-top: auto;
}

.exclusive-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-text {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.badge-bonus {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* ========== RIGHT SIDE (DOWNLOAD) ========== */
.app-right {
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-container {
    width: 100%;
    max-width: 400px;
}

.download-header {
    text-align: center;
    margin-bottom: 40px;
}

.download-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.download-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========== DOWNLOAD BUTTONS ========== */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-bg);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.download-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-label {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1;
}

.btn-store {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.ios-btn:hover .btn-icon {
    color: #007AFF;
}

.android-btn:hover .btn-icon {
    color: #34A853;
}

/* ========== QR SECTION ========== */
.qr-section {
    margin-bottom: 40px;
}

.qr-container {
    display: flex;
    align-items: center;
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
}

.qr-code {
    width: 80px;
    height: 80px;
    background: var(--text-primary);
    border-radius: 8px;
    padding: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

.qr-pattern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}

.qr-square {
    background: var(--primary-bg);
    border-radius: 1px;
}

.qr-square:nth-child(odd) {
    background: var(--primary-bg);
}

.qr-square:nth-child(even) {
    background: transparent;
}

.qr-text span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.qr-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ========== APP STATS ========== */
.app-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background: var(--primary-bg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== COMPATIBILITY ========== */
.app-compatibility {
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-light);
}

.app-compatibility h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-align: center;
}

.requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-item {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.req-item:last-child {
    border-bottom: none;
}

.req-item strong {
    color: var(--text-primary);
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 768px) {
    .app-wrapper {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .app-left {
        padding: 40px 30px;
        order: 2;
    }
    
    .app-right {
        padding: 40px 30px;
        order: 1;
    }
    
    .app-promo h2 {
        font-size: 24px;
    }
    
    .download-header h1 {
        font-size: 24px;
    }
    
    .phone-frame {
        width: 140px;
        height: 250px;
        padding: 15px 10px;
    }
    
    .app-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media screen and (max-width: 480px) {
    .app-container {
        padding: 15px;
    }
    
    .app-left,
    .app-right {
        padding: 30px 20px;
    }
    
    .download-buttons {
        gap: 10px;
    }
    
    .download-btn {
        padding: 12px 15px;
    }
    
    .qr-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .qr-code {
        margin-right: 0;
    }
}

@media screen and (max-width: 375px) {
    .phone-frame {
        width: 120px;
        height: 200px;
    }
    
    .app-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 15px 5px;
    }
    
    .stat-number {
        font-size: 16px;
    }
}