/* ===================================
   FIDE ID Sorgulama - Ortak Stiller
   Tum sayfalarda kullanilacak
   =================================== */

/* --- CSS DEGISKENLERI --- */
:root {
    --color-primary: #dc2626;
    --color-primary-dark: #991b1b;
    --color-dark: #1e293b;
    --color-dark-lighter: #334155;
    --color-text: #333;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-bg-light: #f1f5f9;
    --color-border: #e2e8f0;
    --font-family: 'Poppins', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

/* --- GENEL BODY --- */
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--color-text);
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(100, 0, 0, 0.3)),
        url('bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* --- ACCENT RENK --- */
.accent-red {
    color: var(--color-primary);
}

/* --- STICKY NAVIGASYON --- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--color-primary);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    transition: var(--transition);
}

.nav-brand:hover {
    color: var(--color-primary);
}

.nav-brand-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(220, 38, 38, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

/* --- HAMBURGER MENU (MOBIL) --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    box-shadow: none;
}

/* --- ORTAK FOOTER --- */
.site-footer {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    border-top: 3px solid var(--color-primary);
    padding: 30px 20px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 15px auto;
    max-width: 400px;
}

/* --- SAYFA KONTEYNER (blog, haberler icin) --- */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 160px);
}

/* --- GLASSMORPHIC KUTU --- */
.glass-box {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
}

/* --- LOADING OVERLAY --- */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
}

.loading-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* --- SKELETON LOADING --- */
.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- ORTAK BUTON STILLERI --- */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.btn-dark {
    background: linear-gradient(135deg, var(--color-dark-lighter) 0%, var(--color-dark) 100%);
    color: white;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 41, 59, 0.3);
}

/* --- DIL DEGISTIRICI --- */
.lang-switcher-item {
    margin-left: 5px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.lang-flag svg {
    border-radius: 2px;
    vertical-align: middle;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

/* --- MOBIL RESPONSIVE --- */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .site-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 15px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        gap: 5px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    .nav-link.active::after {
        display: none;
    }

    .page-container {
        padding: 15px 10px;
    }

    .glass-box {
        padding: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
