:root {
    --bg-dark: #0f172a;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

.hidden { display: none !important; }
.glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animasyonlu Arkaplan (Orbs) */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.2); }
}

/* Ana Düzen */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

header h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Grid Düzeni */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    transition: all 0.5s ease;
}

/* Glassmorphism Kartlar */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.card-action {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card:hover .card-action {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    color: white;
}

/* Modül Detay Görünümü */
#module-view {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    margin-top: 20px;
    min-height: 500px;
    animation: fadeIn 0.5s ease-out;
}

#module-view.hidden {
    display: none;
}

#back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

#back-btn:hover {
    color: var(--text-main);
}

/* Modül İçerik Ortak */
.module-header { margin-bottom: 30px; border-bottom: 1px solid var(--card-border); padding-bottom: 20px; }
.module-header h2 { font-size: 2.2rem; color: var(--primary); }
.module-header p { color: var(--text-muted); margin-top: 5px; }

/* Demo İçerik (Eski alanlar için) */
.demo-content { text-align: center; padding: 50px 20px; animation: fadeInUp 0.5s ease-out; }

/* Tahmin Oyunu Stilleri */
.predictor-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; animation: fadeIn 0.5s ease-out; }
.match-card { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 20px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; }
.team { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 30%; }
.team-logo { width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.score-inputs { display: flex; align-items: center; gap: 15px; }
.score-inputs input { width: 50px; height: 50px; background: var(--bg-dark); border: 1px solid var(--card-border); color: white; text-align: center; font-size: 1.5rem; border-radius: 12px; font-weight: bold; }
.score-inputs input:focus { outline: none; border-color: var(--primary); }
.submit-btn { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 12px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 20px; transition: background 0.3s; }
.submit-btn:hover { background: var(--secondary); }
.leaderboard { background: rgba(0,0,0,0.2); border-radius: 16px; padding: 20px; height: fit-content; }
.leaderboard h3 { margin-bottom: 15px; color: var(--accent); }
.rank-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.rank-item:last-child { border: none; }

/* Canlı Oda Stilleri */
.live-layout { display: flex; flex-direction: column; height: 500px; animation: fadeIn 0.5s ease-out; }
.live-scoreboard { background: linear-gradient(to right, var(--primary), var(--secondary)); border-radius: 16px; padding: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-weight: bold; font-size: 1.5rem; }
.chat-box { flex: 1; background: rgba(0,0,0,0.2); border-radius: 16px; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message { display: flex; gap: 10px; }
.message.self { flex-direction: row-reverse; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card-border); display: flex; align-items: center; justify-content: center; }
.msg-content { background: rgba(255,255,255,0.05); padding: 12px 16px; border-radius: 0 16px 16px 16px; max-width: 70%; line-height: 1.4; }
.message.self .msg-content { background: var(--primary); border-radius: 16px 0 16px 16px; }
.msg-name { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 5px; }
.message.self .msg-name { text-align: right; color: rgba(255,255,255,0.8); }
.chat-input { display: flex; gap: 10px; margin-top: 20px; }
.chat-input input { flex: 1; padding: 15px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(0,0,0,0.2); color: white; font-size: 1rem; }
.chat-input button { padding: 0 25px; background: var(--accent); border: none; border-radius: 12px; color: white; font-weight: bold; cursor: pointer; transition: opacity 0.3s; }
.chat-input button:hover { opacity: 0.8; }
@media (max-width: 768px) {
    .predictor-layout { grid-template-columns: 1fr; }
}

/* Müzik Çalar Stilleri */
.player-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; animation: fadeIn 0.5s ease-out; }
.now-playing { background: rgba(0,0,0,0.2); border-radius: 20px; padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.disk { font-size: 5rem; margin-bottom: 20px; animation: spin 10s linear infinite; animation-play-state: paused; }
.disk.playing { animation-play-state: running; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; margin: 25px 0; overflow: hidden; }
.progress { width: 30%; height: 100%; background: var(--primary); border-radius: 10px; transition: width 0.1s linear; }
.controls { display: flex; gap: 20px; align-items: center; }
.controls button { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.controls button:hover { color: var(--primary); }
.play-btn { width: 60px; height: 60px; background: var(--primary) !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem !important; }
.play-btn:hover { background: var(--secondary) !important; color: white !important; }
.track-list { display: flex; flex-direction: column; gap: 10px; }
.track { background: rgba(0,0,0,0.1); padding: 15px 20px; border-radius: 12px; display: flex; justify-content: space-between; cursor: pointer; transition: background 0.3s; }
.track:hover { background: rgba(255,255,255,0.05); }
.track.active { background: var(--primary); font-weight: bold; }

/* Deplasman Stilleri */
.away-layout { display: flex; gap: 30px; animation: fadeIn 0.5s ease-out; }
.map-placeholder { flex: 1; background: rgba(0,0,0,0.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--text-muted); border: 2px dashed var(--card-border); min-height: 400px; }
.rides-list { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.ride-card { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 16px; border: 1px solid var(--card-border); transition: transform 0.3s; }
.ride-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.ride-header { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--accent); font-weight: bold; }
.ride-details { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; color: var(--text-muted); }

/* Arşiv Stilleri */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; animation: fadeIn 0.5s ease-out; }
.archive-item { background: rgba(0,0,0,0.2); border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; transition: transform 0.3s; }
.archive-item:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.archive-item img { width: 100%; height: 200px; object-fit: cover; display: block; opacity: 0.8; transition: opacity 0.3s; }
.archive-item:hover img { opacity: 1; }
.archive-caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 15px; background: linear-gradient(transparent, rgba(0,0,0,0.9)); font-size: 0.9rem; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Animasyon Tanımları */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    header h1 { font-size: 3rem; }
    .modules-grid { grid-template-columns: 1fr; }
    .player-layout { grid-template-columns: 1fr; }
    .away-layout { flex-direction: column; }
}

/* Üyelik / Giriş Stilleri */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.auth-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.auth-header p { color: #94a3b8; font-size: 0.9rem; margin-bottom: 30px; }

.auth-tabs { display: flex; gap: 10px; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.auth-tabs button {
    flex: 1;
    background: none; border: none; color: #94a3b8;
    padding: 10px; cursor: pointer; font-family: inherit; font-weight: 600;
    transition: color 0.3s;
}
.auth-tabs button.active { color: var(--accent); position: relative; }
.auth-tabs button.active::after {
    content: ''; position: absolute; bottom: -16px; left: 0; width: 100%; height: 2px;
    background: var(--accent);
}

.input-group { margin-bottom: 15px; text-align: left; }
.input-group input, .input-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.input-group input:focus, .input-group select:focus { border-color: var(--primary); }
.input-group select option { background: #0f172a; color: white; }

.primary-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}
.primary-btn:hover { background: #3d5afe; transform: translateY(-2px); }

.error-msg { color: #ef4444; font-size: 0.85rem; margin-top: 15px; }

/* Dashboard Header Profili */
.user-profile {
    position: absolute;
    top: 20px; right: 20px;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

.team-tag {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
}

.logout-icon {
    background: none; border: none; cursor: pointer; font-size: 1.1rem;
    padding: 0; display: flex; align-items: center;
    opacity: 0.7; transition: opacity 0.3s;
}
.logout-icon:hover { opacity: 1; }
