:root {
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --primary: #FF4B4B;
    --primary-glow: rgba(255, 75, 75, 0.4);
    --success: #2CD67B;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow: hidden; display: flex; justify-content: center;}

/* Ekran Yönetimi */
.screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 10; }
.screen.active { opacity: 1; pointer-events: all; }

/* --- LOBİ TASARIMI --- */
#lobbyScreen { align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at top, #2a1b1b, var(--bg-dark)); }
.brand { text-align: center; margin-bottom: 40px; }
.brand h1 { font-size: 36px; font-weight: 700; }
.brand span { color: var(--primary); }
.brand p { color: var(--text-muted); font-size: 14px; margin-top: 5px; }

.lobby-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 25px; border-radius: 20px; width: 100%; max-width: 350px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.lobby-card h2 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }
.lobby-divider { margin: 20px 0; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 2px; }

.input-code { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 15px; border-radius: 12px; font-size: 22px; text-align: center; letter-spacing: 5px; font-weight: 700; margin-bottom: 15px; outline: none; transition: border 0.3s; }
.input-code:focus { border-color: var(--primary); }

.btn { width: 100%; padding: 15px; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; color: white; cursor: pointer; transition: transform 0.1s, box-shadow 0.3s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); box-shadow: 0 4px 15px var(--primary-glow); }
.btn-success { background: var(--success); box-shadow: 0 4px 15px rgba(44, 214, 123, 0.3); }

/* --- UYGULAMA (KART) EKRANI --- */
.app-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
.logo-small { font-size: 20px; font-weight: 700; }
.logo-small span { color: var(--primary); }
.room-badge { background: rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 1px; }

.category-tabs { display: flex; justify-content: center; gap: 10px; padding: 0 20px 10px; }
.tab-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--text-muted); padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.tab-btn.active { background: white; color: black; border-color: white; font-weight: 600; }

.card-container { flex: 1; position: relative; display: flex; justify-content: center; align-items: center; margin: 10px 20px; perspective: 1000px; }

.swipe-card { position: absolute; width: 100%; max-width: 380px; height: 100%; max-height: 550px; background: var(--card-bg); border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); display: flex; flex-direction: column; padding: 25px; transition: transform 0.3s ease; user-select: none; border: 1px solid rgba(255,255,255,0.05); }
.swipe-card .emoji { font-size: 100px; text-align: center; margin: auto 0; filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3)); }
.swipe-card h3 { font-size: 28px; font-weight: 700; margin-bottom: 5px; }
.swipe-card p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(255,255,255,0.08); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }

.action-buttons { display: flex; justify-content: center; gap: 25px; padding: 20px; margin-bottom: 20px; }
.action-btn { width: 70px; height: 70px; border-radius: 50%; border: none; font-size: 28px; cursor: pointer; display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: transform 0.2s; background: var(--card-bg); }
.action-btn:active { transform: scale(0.9); }
.btn-reject { color: #ff4458; border: 2px solid rgba(255, 68, 88, 0.2); }
.btn-accept { color: var(--success); border: 2px solid rgba(44, 214, 123, 0.2); }

/* --- EŞLEŞME EKRANI --- */
.match-overlay { background: rgba(0,0,0,0.9); z-index: 100; justify-content: center; align-items: center; text-align: center; padding: 30px; backdrop-filter: blur(15px); }
.match-title { color: var(--success); font-size: 28px; margin-bottom: 20px; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.match-emoji { font-size: 120px; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.match-text { font-size: 18px; margin-bottom: 40px; color: white; }

@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }