:root {
    --primary: #004a80;
    --primary-dark: #003359;
    --secondary: #ff8c00;
    --secondary-hover: #ffad42;
    --dark: #121212;
    --dark-card: #1e1e1e;
    --dark-transparent: rgba(30, 30, 30, 0.85);
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --success: #4caf50;
    --error: #f44336;

    /* Duyuru Renkleri */
    --ann-red: #d32f2f;
    --ann-blue: #1976d2;
    --ann-yellow: #fbc02d;
    --ann-green: #2e7d32;

    /* Geçişler */
    --transition-fast: 0.3s ease;
    --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Temel Ayarlar --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Yan taşmaları engelle */
}

/* --- Yardımcı Sınıflar & Animasyonlar --- */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Header & Navigasyon --- */
#top-fixed-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

#announcement-bar {
    display: none;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

header {
    background-color: rgba(0, 74, 128, 0.95);
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    width: 100%;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary);
}

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover,
nav a.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobil Menu Butonu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* --- Hero Bölümü --- */
.hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(18, 18, 18, 0.9) 85%, #121212 100%), url('https://images.unsplash.com/photo-1607513168936-6215097199fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh;
    /* Biraz daha yüksek */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    border-bottom: none;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(0, 74, 128, 0.8);
    font-weight: 800;
}

.server-status-pill {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 10px 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.server-status-pill:hover {
    background-color: rgba(76, 175, 80, 0.15);
    transform: scale(1.05);
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

/* Sürekli dikkat çekme animasyonu */
.clickable-pill {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.pill-badge {
    background: var(--success);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.server-status-pill:hover .pill-badge {
    background: #fff;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #4caf50;
}

.server-ip-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 50px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 2px solid var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.server-ip-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.server-ip-box:hover::before {
    left: 100%;
}

.server-ip-box:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
}

.ip-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 1px;
}

.ip-sub {
    font-size: 0.95rem;
    color: #ccc;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.copy-hint {
    font-size: 0.85rem;
    color: #ddd;
    opacity: 0.8;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- İçerik Genel --- */
.container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--secondary);
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 15px auto;
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-left-color: var(--secondary);
}

.card h3 {
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
}

.card i {
    color: var(--secondary);
    font-size: 1.2em;
}

/* Kod Blokları & Listeler */
code {
    background: #2a2a2a;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--secondary);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 1px solid #444;
}

.command-list li {
    margin-bottom: 12px;
    list-style: none;
    padding-left: 15px;
    border-left: 3px solid #333;
    transition: 0.2s;
    color: #ccc;
}

.command-list li:hover {
    border-left-color: var(--secondary);
    padding-left: 20px;
    color: #fff;
}

strong {
    color: #fff;
}

/* --- Haberler --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

.news-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary);
}

.news-img-wrapper {
    overflow: hidden;
    height: 200px;
    border-bottom: 3px solid var(--secondary);
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}

.news-text {
    font-size: 0.95rem;
    color: #ccc;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-tag {
    align-self: flex-start;
    background: rgba(0, 74, 128, 0.2);
    color: var(--secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.skeleton {
    background: linear-gradient(90deg, #222 25%, #2a2a2a 50%, #222 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 5px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Modals & Popups --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    /* Flex center */
}

.modal.active {
    display: flex;
}

/* Flex ile ortala */

.modal-content {
    background-color: var(--dark-card);
    margin: auto;
    padding: 0;
    border: 1px solid #444;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s var(--transition-bounce);
    position: relative;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
    border-radius: 19px 19px 0 0;
}

.close-btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
}

.player-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #333;
    transition: 0.2s;
    border-radius: 8px;
}

.player-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.player-head {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* --- Harita --- */
#harita {
    width: 100%;
    height: 100vh;
    position: relative;
    border-top: 5px solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.map-info-bar {
    background-color: #151515;
    color: #ccc;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    border-bottom: 1px solid #333;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
}

/* --- Footer & Back to Top --- */
footer {
    background: #080808;
    text-align: center;
    padding: 50px 20px;
    margin-top: 0;
    color: var(--text-muted);
    border-top: 1px solid #222;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(18, 18, 18, 0.8);
    color: var(--secondary);
    border: 1px solid rgba(255, 140, 0, 0.3);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 9500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

#back-to-top:hover {
    background-color: var(--secondary);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
}

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.toast {
    background: var(--dark-card);
    color: #fff;
    padding: 16px 24px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-left: 5px solid var(--secondary);
    animation: slideInRight 0.3s var(--transition-bounce), fadeOut 0.5s ease 2.5s forwards;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px;
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobilde Buton Düzenlemeleri */
    .server-status-pill {
        flex-direction: column;
        /* Alt alta al */
        gap: 8px;
        padding: 15px 25px;
        border-radius: 20px;
        /* Daha köşeli */
        width: 100%;
        max-width: 280px;
        /* Çok genişlemesin */
        text-align: center;
    }

    .pill-badge {
        width: 100%;
        justify-content: center;
    }

    .server-ip-box {
        padding: 20px;
        width: 100%;
        max-width: 90%;
        margin: 20px auto 0 auto;
        /* Ortala */
    }

    .ip-text {
        font-size: 1.4rem;
    }

    .map-info-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .container {
        margin: 40px auto;
        padding: 0 15px;
    }
}