/* --- DİNAMİK TEMA DEĞİŞKENLERİ --- */
:root {
    --bg-color: #1a1a24; 
    --glass-bg: rgba(30, 30, 40, 0.95);
    --text-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: #2f3542;
    --msg-yabanci-bg: #2f3542;
    --msg-yabanci-text: #ffffff;
    --chat-bg: rgba(30, 30, 40, 0.8);
    --topbar-bg: rgba(0, 0, 0, 0.4);
    --controls-bg: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-color: #e2e8f0; 
    --glass-bg: rgba(255, 255, 255, 0.98);
    --text-color: #2d3436;
    --border-color: rgba(0, 0, 0, 0.15);
    --input-bg: #ffffff;
    --msg-yabanci-bg: #dfe4ea;
    --msg-yabanci-text: #2d3436;
    --chat-bg: rgba(255, 255, 255, 0.8);
    --topbar-bg: rgba(255, 255, 255, 0.6);
    --controls-bg: rgba(255, 255, 255, 0.6);
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.logo-container:hover { transform: scale(1.05); }

.logo-togle {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(45deg, #1e90ff, #2ed573);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-tv {
    background-color: #ff4757;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 6px;
    margin-left: 5px;
    animation: pulse-tv 2s infinite;
}

@keyframes pulse-tv {
    0% { box-shadow: 0 0 5px rgba(255, 71, 87, 0.4); }
    50% { box-shadow: 0 0 15px rgba(255, 71, 87, 0.9); }
    100% { box-shadow: 0 0 5px rgba(255, 71, 87, 0.4); }
}

#ads-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
}

#ads-content-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.ads-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 55;
    background: rgba(255, 71, 87, 0.9);
    padding: 8px 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
}

#ad-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #111;
}

#ad-video-placeholder h2 {
    font-size: 32px;
    margin: 0;
    color: #fff;
}

#ad-video-placeholder p {
    color: #aaa;
    font-size: 18px;
}

#real-ad-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

#skip-ad-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 55;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: not-allowed;
}

#skip-ad-btn.active {
    background: #fff;
    color: #000;
    cursor: pointer;
}

* { box-sizing: border-box; }

.vip-btn {
    background: linear-gradient(45deg, #f1c40f, #e67e22);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: var(--text-color);
}

#login-page, .modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-overlay { background: rgba(0, 0, 0, 0.8); z-index: 10000; }
.modal-overlay[hidden], #chat-page[hidden], #vip-modal[hidden], #report-modal[hidden] { display: none !important; }

.login-box {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-box select, .login-box textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 15px;
    outline: none;
}

.start-btn {
    background: linear-gradient(45deg, #2ed573, #1e90ff);
    color: white;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.start-btn.secondary { background: #7f8c8d; }
.start-btn.danger { background: #ff4757; }

.theme-btn-login, .theme-btn-chat {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

#chat-page { display: flex; flex-direction: column; height: 100vh; width: 100%; }

.top-bar {
    flex: 0 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    background-color: var(--topbar-bg);
    border-bottom: 1px solid var(--border-color);
}

.top-actions { display: flex; align-items: center; gap: 15px; }

#vip-badge {
    background: #ffd32a;
    color: #000;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.video-container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    padding: 15px;
    gap: 15px;
    position: relative;
    background: #000;
}

.video-box {
    flex: 1;
    background: #111;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-box video { width: 100%; height: 100%; object-fit: cover; }
#my-video video { transform: scaleX(-1); }

.video-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
}

.report-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    display: none;
    z-index: 20;
}

#searching-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

#searching-overlay[hidden] { display: none !important; }

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #1e90ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.controls {
    flex: 0 0 35vh;
    display: flex;
    padding: 15px;
    gap: 15px;
    background-color: var(--controls-bg);
    border-top: 1px solid var(--border-color);
}

.chat-section {
    flex: 3;
    background-color: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-header {
    padding: 12px 15px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
}

#chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#chat-messages div {
    padding: 10px 15px;
    border-radius: 15px;
    width: fit-content;
    max-width: 80%;
    word-break: break-word;
}

.msg-sen { background: #1e90ff; color: white; align-self: flex-end; }
.msg-yabanci { background-color: var(--msg-yabanci-bg); color: var(--msg-yabanci-text); align-self: flex-start; }
.msg-sistem { color: #ff4757; font-weight: bold; font-size: 13px; align-self: center; }

.typing-indicator {
    font-size: 13px;
    color: #1e90ff;
    font-style: italic;
    padding: 0 15px 5px;
}

.input-area {
    display: flex;
    padding: 15px;
    gap: 10px;
}

.input-area input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-color);
}

.send-btn {
    padding: 10px 25px;
    background: #1e90ff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.action-buttons { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.next-btn, .end-btn { flex: 1; font-size: 20px; font-weight: bold; border: none; border-radius: 15px; cursor: pointer; color: white; }
.next-btn { background: linear-gradient(45deg, #ffa502, #ff7f50); }
.end-btn { background: #ff4757; }

.field-label { font-size: 12px; opacity: 0.7; text-align: left; display: block; margin-top: 10px; }
.vip-row { margin-top: 15px; display: flex; gap: 5px; }
.vip-row input { flex: 2; padding: 12px; border-radius: 10px; border: 1px solid var(--border-color); background-color: var(--input-bg); color: var(--text-color); }
.warning-line { color: #ff4757; font-size: 11px; font-weight: bold; margin-top: 10px; }
.vip-modal-box { width: 450px; }
.vip-modal-box h2 { color: #ffd32a; margin-top: 0; }
.info-panel { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 10px; text-align: left; margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.1); }
.info-panel.danger { border-color: #ff4757; color: #ff4757; }
.iban { color: #fff; font-family: monospace; letter-spacing: 1px; font-size: 13px; }
.danger-title { color: #ff4757; margin-top: 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 15px; }
.modal-actions .start-btn { flex: 1; margin-top: 0; }
