:root { --bg-dark: #0b0e11; --val-red: #ff4655; --cs-orange: #f29b00; }
body { font-family: 'Segoe UI', sans-serif; margin: 0; color: white; background-color: var(--bg-dark); overflow-x: hidden; display: flex; flex-direction: column; min-height: 100vh; }

#site-logo { 
    position: absolute; top: 20px; left: 20px; width: 80px; height: 80px; aspect-ratio: 1 / 1; 
    z-index: 100; border-radius: 50%; object-fit: cover; cursor: pointer; transition: 0.3s; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); background-color: #0b0e11; 
}
#site-logo:hover { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 255, 255, 0.4); }

#bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-size: cover; background-position: center; background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('arka.jpg'); transition: background-image 0.4s ease-in-out, opacity 0.6s ease-in-out; opacity: 1; }
#bg-overlay.val-active { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('a.jpg'); opacity: 1; }
#bg-overlay.cs-active { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('b.webp'); opacity: 1; }
#bg-overlay.fade-out { opacity: 0; }

#home-page { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
.hero { text-align: center; margin-bottom: 30px; }

/* YENİ: ÇİFTLİ COTD (Günün Nişangahları) Tasarımı */
.cotd-container { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; width: 100%; }

.cotd-card { 
    flex: 1; min-width: 280px; max-width: 420px;
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: 16px; padding: 20px; 
    display: flex; align-items: center; justify-content: space-between; 
    box-sizing: border-box; box-shadow: 0 4px 30px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cotd-card.val:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 40px rgba(255, 70, 85, 0.35); border-color: rgba(255, 70, 85, 0.5); }
.cotd-card.cs:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 15px 40px rgba(242, 155, 0, 0.35); border-color: rgba(242, 155, 0, 0.5); }

.cotd-content { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cotd-content h2 { margin: 0; font-size: 20px; color: white; }
.cotd-content button { background: white; color: black; padding: 6px 15px; border-radius: 5px; font-weight: bold; border: none; cursor: pointer; transition: 0.2s; font-size: 13px;}
.cotd-content button:hover { background: #ddd; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2); }

.ch-preview-container-cotd { width: 120px; height: 80px; background: rgba(0,0,0,0.3); border-radius: 10px; overflow: hidden; display: flex; justify-content: center; align-items: center; border: inset 1px rgba(255,255,255,0.05); }
.ch-preview-container-cotd img { max-width: 90%; max-height: 90%; object-fit: contain; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); }
.cotd-card:hover .ch-preview-container-cotd img { transform: scale(1.25); filter: drop-shadow(0 0 12px rgba(255,255,255,0.5)); }

.game-selection { display: flex; gap: 40px; margin-bottom: 20px; }
.game-card { width: 250px; height: 350px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.3s; }
.game-card:hover { transform: translateY(-10px); }
.game-card.val:hover { border-color: var(--val-red); box-shadow: 0 0 20px var(--val-red); }
.game-card.cs:hover { border-color: var(--cs-orange); box-shadow: 0 0 20px var(--cs-orange); }

#game-page { flex: 1; padding: 40px; max-width: 1000px; margin: 0 auto; box-sizing: border-box; width: 100%; }
.top-bar { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.controls-bar { margin-bottom: 20px; width: 100%; }
#searchInput { padding: 12px; font-size: 16px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: white; transition: 0.3s; outline: none; }
#searchInput:focus { background: rgba(255,255,255,0.1); border-color: var(--val-red); }
#sortSelect { padding: 12px; font-size: 14px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: white; transition: 0.3s; outline: none; cursor: pointer; }
#sortSelect:focus { background: rgba(255,255,255,0.1); border-color: var(--val-red); }
#sortSelect option { background: #222; color: white; }
.add-form { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
input, select { padding: 10px; background: #222; border: 1px solid #444; color: white; border-radius: 5px; outline: none; }
input:focus, select:focus { border-color: #888; }
button { cursor: pointer; border-radius: 5px; border: none; padding: 10px 20px; font-weight: bold; transition: 0.2s; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.cross-card { background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); padding: 25px 20px; border-radius: 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.cross-card.val:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 15px 40px rgba(255, 70, 85, 0.35); border-color: rgba(255, 70, 85, 0.5); }
.cross-card.cs:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 15px 40px rgba(242, 155, 0, 0.35); border-color: rgba(242, 155, 0, 0.5); }
.ch-preview-container { width: 100%; height: 110px; background: rgba(0,0,0,0.3); border-radius: 10px; overflow: hidden; display: flex; justify-content: center; align-items: center; border: inset 1px rgba(255,255,255,0.05); }
.ch-preview-container img { max-width: 90%; max-height: 90%; object-fit: contain; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); filter: drop-shadow(0 0 5px rgba(255,255,255,0.1)); }
.cross-card:hover .ch-preview-container img { transform: scale(1.25); filter: drop-shadow(0 0 12px rgba(255,255,255,0.5)); }
.cross-stats { display: flex; justify-content: space-between; width: 100%; align-items: center; margin-top: 5px; }
.like-btn { background: transparent; border: none; color: white; font-size: 15px; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 0; outline: none; }
.like-btn svg { transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.like-btn:hover svg { transform: scale(1.2); }
.copy-count-badge { font-size: 13px; color: #ccc; display: flex; align-items: center; gap: 4px; font-weight: 500;}
.copy-btn { width: 100%; background: white; color: black; margin-top: 5px; font-weight: bold; border-radius: 8px;}
.copy-btn:hover { background: #ddd; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.2);}

.ad-banner, .ad-side { background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 8px; display: flex; justify-content: center; align-items: center; color: rgba(255, 255, 255, 0.4); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.ad-banner { width: 100%; max-width: 728px; height: 90px; margin: 10px auto; }
.ad-side { position: absolute; top: 50%; transform: translateY(-50%); width: 160px; height: 600px; z-index: 5; }
.ad-side-left { left: 20px; }
.ad-side-right { right: 20px; }

#auth-container { position: absolute; top: 20px; right: 20px; z-index: 100; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; justify-content: flex-end;}
#auth-btn, #logout-btn, #inbox-btn, #pending-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 10px 15px; font-size: 14px; backdrop-filter: blur(5px); }
#auth-btn:hover, #logout-btn:hover, #inbox-btn:hover, #pending-btn:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); justify-content: center; align-items: center; }
.modal-content { background: var(--bg-dark); padding: 30px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.2); text-align: center; width: 300px; display: flex; flex-direction: column; gap: 15px; box-shadow: 0 0 20px rgba(0,0,0,0.5); position: relative; backdrop-filter: blur(10px);}
.close { color: #aaa; position: absolute; top: 15px; right: 20px; font-size: 24px; font-weight: bold; cursor: pointer; line-height: 1; }
.close:hover { color: white; }
.toggle-link { color: var(--val-red); cursor: pointer; text-decoration: underline; font-weight: bold; }
#auth-submit-btn { background: white; color: black; margin-top: 10px; }
#auth-submit-btn:hover { background: #ddd; }
#verify-submit-btn { background: var(--val-red); color: white; }
#verify-submit-btn:hover { background: #d93d48; }

#site-footer { text-align: center; padding: 25px 20px; color: rgba(255, 255, 255, 0.5); font-size: 13px; width: 100%; background: rgba(0, 0, 0, 0.6); border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: auto; z-index: 10; position: relative; box-sizing: border-box; backdrop-filter: blur(5px); }
#site-footer p { margin: 10px 0; font-weight: bold; }
.footer-links { margin-top: 10px; }
.footer-links span { cursor: pointer; transition: 0.3s; margin: 0 8px; }
.footer-links span:hover { color: var(--val-red); }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.social-links a { color: rgba(255, 255, 255, 0.5); transition: 0.3s; display: flex; justify-content: center; align-items: center; }
.social-links a:hover { transform: translateY(-5px) scale(1.1); color: white;}

#toast-container { position: fixed; bottom: 150px; left: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; pointer-events: none;}
.toast { background: rgba(20, 20, 20, 0.95); color: white; padding: 15px 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); animation: slideInToast 3s ease-in-out forwards; pointer-events: all;}
.toast.success { border-left: 5px solid #4CAF50; }
.toast.error { border-left: 5px solid #F44336; }
.toast.info { border-left: 5px solid #2196F3; }
@keyframes slideInToast { 0% { transform: translateX(-120%); opacity: 0; } 10% { transform: translateX(0); opacity: 1; } 90% { transform: translateX(0); opacity: 1; } 100% { transform: translateX(-120%); opacity: 0; } }

#chat-fab { position: fixed; bottom: 50px; right: 30px; background: var(--val-red); color: white; border: none; border-radius: 50px; padding: 12px 22px; font-size: 15px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4); z-index: 999; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
#chat-fab:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 6px 20px rgba(255, 70, 85, 0.6); }

#lang-toggle { position: fixed; bottom: 105px; right: 30px; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 10px 15px; font-size: 14px; font-weight: bold; cursor: pointer; backdrop-filter: blur(5px); z-index: 999; transition: 0.3s; }
#lang-toggle:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px); }

.ticker-wrap { position: fixed; bottom: 0; left: 0; width: 100%; height: 35px; background: rgba(0, 0, 0, 0.85); border-top: 1px solid rgba(255,255,255,0.1); overflow: hidden; z-index: 9998; display: flex; align-items: center; backdrop-filter: blur(5px); }
.ticker-move { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.ticker-move:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; padding: 0 40px; font-size: 13px; color: #ddd; font-weight: 500; }
.ticker-item span { color: var(--val-red); font-weight: bold; }
.ticker-item span.cs { color: var(--cs-orange); }
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }

.msg-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; text-align: left; }
.msg-card h4 { margin: 0 0 5px 0; color: var(--val-red); display: flex; justify-content: space-between; align-items: center;}
.msg-card span { font-size: 12px; color: #888; font-weight: normal;}
.msg-card p { font-size: 14px; margin: 10px 0 0 0; line-height: 1.5; color: #eee; word-wrap: break-word;}
.msg-card button { background: transparent; color: #aaa; border: 1px solid #555; padding: 5px 15px; font-size: 12px; margin-top: 15px; width: auto; cursor:pointer;}
.msg-card button:hover { background: #ff4655; color: white; border-color: #ff4655;}

@media (max-width: 1100px) { .ad-side { display: none; } }
@media (max-width: 768px) {
    #site-logo { width: 55px; height: 55px; aspect-ratio: 1 / 1; top: 15px; left: 15px; } 
    #auth-container { top: 15px; right: 15px; gap: 10px; justify-content: flex-end;}
    #auth-btn, #logout-btn, #inbox-btn, #pending-btn { padding: 8px 10px; font-size: 12px; }
    .game-selection { flex-direction: column; gap: 25px; align-items: center; }
    .game-card { width: 100%; max-width: 280px; height: 280px; }
    .cotd-card { flex-direction: column; text-align: center; gap: 15px; }
    .cotd-content { align-items: center; }
    #game-page { padding: 20px; margin-top: 50px; }
    .top-bar { flex-direction: column; align-items: flex-start; gap: 15px; }
    .controls-bar { flex-direction: column; align-items: stretch; }
    #sortSelect { width: 100%; }
    .add-form { flex-direction: column; }
    .add-form input, .add-form select, .add-form button { width: 100%; box-sizing: border-box; }
    #toast-container { bottom: 180px; left: 20px; right: auto; }
    .toast { width: auto; font-size: 13px; }
    .ad-banner { height: 50px; font-size: 12px; margin: 20px auto; }
    #chat-fab { bottom: 45px; right: 20px; padding: 10px 15px; font-size: 13px; }
    #lang-toggle { bottom: 95px; right: 20px; padding: 8px 12px; font-size: 12px; }
}