:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --panel-bg: rgba(255, 255, 255, 0.04);
    --panel-border: rgba(255, 255, 255, 0.08);
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

/* SIFIRLAMA VE DÜZEN */
* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px;
    position: relative;
}

/* NAV LINK & HEADER */
.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
    align-self: center;
}

.nav-back:hover {
    color: var(--text-main);
}

.app-header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 6px;
    background: linear-gradient(to right, #c084fc, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MASAÜSTÜ ANA LAYOUT */
.main-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: auto 0;
    gap: 20px;
}

.side-slot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
}

/* MASAÜSTÜ ARAÇ KART PANELİ */
.app-container {
    width: 680px;
    max-width: 100%;
    flex-shrink: 0;
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 2;
}

/* KUSURSUZ MERKEZLENMİŞ DROPZONE (YENİ) */
.drop-zone {
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    padding: 36px 20px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    background: rgba(15, 23, 42, 0.4);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: #c084fc;
    background: rgba(139, 92, 246, 0.08);
    transform: translateY(-2px);
}

.icon-upload {
    width: 56px;
    height: 56px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem;
    color: #c084fc;
    margin: 0 auto 12px auto !important;
}

.drop-title {
    font-size: 0.98rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 4px;
}

.drop-info {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 8px;
}

/* KONTROL PANELİ & ELEMANLAR */
.control-panel {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.control-panel.hidden {
    display: none;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-clear {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-list-container {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.file-preview-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.option-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.opt-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.opt-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.btn-primary {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* BILLBOARD'LAR (MASAÜSTÜ) */
.billboard-container {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.billboard-frame {
    width: 100%;
    height: 480px;
    background: #090d16;
    border: 10px solid #111827;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.25);
    position: relative;
    overflow: hidden;
}

.billboard-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.billboard-track {
    display: flex;
    width: 200%;
    height: 100%;
    animation: slideAd 10s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

@keyframes slideAd {
    0%, 45% { transform: translateX(0%); }
    50%, 95% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.billboard-slide { width: 50%; height: 100%; flex-shrink: 0; }

.ad-content {
    width: 100%;
    height: 100%;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ad-purple { background: linear-gradient(180deg, #2e1065 0%, #4c1d95 100%); color: white; }
.ad-dark { background: linear-gradient(180deg, #111827 0%, #1f2937 100%); color: white; }
.ad-neon { background: linear-gradient(180deg, #581c87 0%, #0f172a 100%); color: white; }

.ad-brand { font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; opacity: 0.75; margin-bottom: 12px; }
.ad-content h4 { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.ad-content p { font-size: 0.9rem; opacity: 0.85; }

.billboard-stand {
    width: 32px;
    height: 60px;
    background: linear-gradient(to right, #1f2937, #111827, #1f2937);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* DİL SEÇİCİ */
.lang-selector-wrapper {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: rgba(30, 27, 75, 0.9) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    padding: 8px 14px;
    border-radius: 20px;
    z-index: 99999 !important;
}

.lang-icon { color: var(--accent-color); font-size: 0.9rem; }
.lang-dropdown { background: transparent; border: none; color: var(--text-main); font-size: 0.85rem; font-weight: 600; outline: none; }
.lang-dropdown option { background: #0f172a; color: #ffffff; }

/* ===================================================
   MOBİL İÇİN DÜZEN (1. REKLAM ÜST, ARAÇ ORTA, 2. REKLAM ALT)
=================================================== */
@media (max-width: 1024px) {
    body {
        padding: 16px 12px !important;
    }

    .main-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 16px !important;
        margin: 0 auto !important;
    }

    /* 1. REKLAM: ÜSTTE */
    .side-slot:first-of-type {
        order: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        display: flex !important;
    }

    /* ARAÇ KUTUSU: ORTADA */
    .app-container, .portal-container, .about-container {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 14px !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. REKLAM: EN ALTTA */
    .side-slot:last-of-type {
        order: 3 !important;
        width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        display: flex !important;
    }

    /* MOBİL BANT REKLAMLAR */
    .billboard-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
    }

    .billboard-frame {
        width: 100% !important;
        height: 80px !important;
        border-width: 3px !important;
        border-radius: 14px !important;
    }

    .billboard-stand {
        display: none !important;
    }

    .ad-content {
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 8px 14px !important;
    }

    .ad-brand { margin-bottom: 0 !important; font-size: 0.68rem !important; }
    .ad-content h4 { font-size: 0.95rem !important; margin-bottom: 0 !important; }
    .ad-content p { font-size: 0.75rem !important; }

    /* TYPOGRAPHY VE BUTONLAR */
    .brand-title { font-size: 1.5rem !important; }
    .brand-subtitle { font-size: 0.85rem !important; }

    .drop-zone {
        padding: 24px 12px !important;
    }

    .icon-upload {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }

    .option-selector {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .lang-selector-wrapper {
        bottom: 12px !important;
        right: 12px !important;
        padding: 6px 10px !important;
    }

    .lang-dropdown {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 380px) {
    .option-selector {
        grid-template-columns: 1fr !important;
    }
}