/*

Tooplate 2142 Cloud Sync Stillerinin F.I.R.S.T Projesine Uyarlanmış Hali

*/

:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --dark-bg: #1c2833;
    --medium-bg: #212f3d;
    --light-bg: #2c3e50;
    --text-light: #ecf0f1;
    --text-medium: #bdc3c7;
    --text-dark: #95a5a6;
    --border-color: #34495e;
    --font-family: 'Inter', sans-serif;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) { width: 80px; height: 80px; left: 15%; animation-duration: 22s; }
.shape:nth-child(2) { width: 120px; height: 120px; left: 50%; animation-duration: 25s; bottom: 10%; }
.shape:nth-child(3) { width: 60px; height: 60px; left: 85%; animation-duration: 18s; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}


/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(28, 40, 51, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--text-light); }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a, .nav-links button {
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 6px;
    font-weight: 500;
}
.nav-links a:hover, .nav-links button:hover { color: var(--primary-color); }
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 700;
}
.lang-switcher {
    background: var(--light-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.4rem;
    cursor: pointer;
}

/* Dropdown */
.dropdown-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .dropdown-toggle {
        background: none;
        border: none;
        cursor: pointer;
        font-family: 'Inter', sans-serif; /* Fontu garantiye alalım */
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    /* Dropdown Menü (Açılır Kutu) */
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #333;
        min-width: 220px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.3);
        z-index: 1000;
        border-radius: 8px;
        flex-direction: column;
        padding: 10px 0;
        margin-top: 10px; /* Menü ile yazı arasına biraz boşluk */
    }

    .dropdown-menu a {
        color: #e0e0e0;
        padding: 12px 20px;
        text-decoration: none;
        display: block;
        text-align: left;
        transition: background 0.3s;
        font-size: 0.95em;
    }

    .dropdown-menu a:hover {
        background-color: #444;
        color: #fff;
    }

    .dropdown-wrapper.active .dropdown-menu {
        display: flex;
    }

    /* --- 2. MASAÜSTÜ ÖZEL AYARLAR (992px ve üzeri) --- */
    @media (min-width: 992px) {
        .dropdown-toggle {
            padding: 0; /* Masaüstünde ekstra boşluk olmasın, diğer linklerle hizalansın */
            margin: 0;
        }
    }

    /* --- 3. MOBİL ÖZEL AYARLAR (991px ve altı) --- */
    @media (max-width: 991px) {
        .dropdown-wrapper {
            display: block; /* Mobilde tam satır kaplasın */
            width: 100%;
            margin-bottom: 5px; /* Altındaki elemanla arasına mesafe */
        }
        
        .dropdown-toggle {
            width: 100%;
            /* KRİTİK KISIM BURASI: Mobildeki diğer linklerin padding'ini taklit ediyoruz */
            padding: 10px 20px; 
            /* Yazıyı sola, oku en sağa yasla */
            justify-content: space-between; 
            font-size: 16px; /* Mobilde font genelde biraz daha büyüktür */
        }

        .dropdown-menu {
            position: static; /* Mobilde üstüne binmesin, altına açılsın */
            width: 100%;
            background-color: rgba(255, 255, 255, 0.05); /* Arka planı biraz şeffaf yap */
            box-shadow: none;
            padding-left: 20px; /* Alt menü elemanları biraz daha içeriden başlasın */
            margin-top: 0;
        }

        .dropdown-menu a {
            padding: 10px 20px;
            color: #ccc;
        }
    }

/* Mobile Menu */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background-color: var(--text-light); margin: 5px 0; transition: all 0.3s; }
.mobile-nav { display: none; background: var(--medium-bg); padding: 1rem; }
.mobile-nav a { display: block; color: var(--text-light); padding: 0.75rem 1rem; text-decoration: none; }

/* Hero Section */
.hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 70px; /* Nav çubuğu yüksekliği kadar */
}
.hero-backgrounds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    border-radius: 1rem;
}
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-medium); margin-bottom: 2rem; }

/* CTA Button */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    border: none;
}
.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

.nav-links .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* General Section Styling */
section { padding: 6rem 2rem; }
.container, .features-container, .about-container, .pricing-header, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.features-header, .pricing-header { text-align: center; margin-bottom: 4rem; }
h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; }

/* Partner Cards Section */
.partner-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.partner-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.partner-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}
.partner-card img {
    height: 100px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}
.partner-card h4 { font-size: 1.1rem; }


/* About Section */
.about { background-color: var(--medium-bg); }
.about-container { display: flex; justify-content: center; }
.about-content { max-width: 800px; text-align: center; }
.about-text p { font-size: 1.1rem; color: var(--text-medium); margin-top: 1.5rem; }

/* Hakkında Sayfası - Misyon Kartı */
.mission-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    width: 100%;
    text-align: center;
}
.mission-card .about-text p {
    text-align: center;
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
}


/* News Cards Section */
.news-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.news-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-10px); box-shadow: var(--card-shadow); }
.news-card.popular { border: 2px solid var(--primary-color); }
.news-image { width: 100%; height: 200px; object-fit: cover; }
.news-card-title { font-size: 1.3rem; margin: 1.5rem 1.5rem 0.5rem 1.5rem; }
.news-card-date { font-size: 0.9rem; color: var(--text-dark); margin: 0 1.5rem 1rem 1.5rem; }
.news-card-desc { margin: 0 1.5rem 1.5rem 1.5rem; color: var(--text-medium); flex-grow: 1; }


/* Output Cards (Çıktılar Sayfası) */
.output-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .output-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
.output-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-light);
}
.output-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--card-shadow); 
}
.output-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.output-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.output-card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.output-card-desc {
    color: var(--text-medium);
    margin: 0;
    flex-grow: 1;
}
.output-card .cta-button { 
    display: block; 
    text-align: center; 
    width: 90%;
    margin: 0 auto 1.5rem auto;
}


/* Resource Cards (Kaynaklar Sayfası) */
.resource-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .resource-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
.resource-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.resource-card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--card-shadow); 
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    margin-bottom: 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.resource-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.resource-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.resource-card-desc {
    color: var(--text-medium);
}


/* Page Specific Styles */
.page-content {
    padding-bottom: 6rem;
}
.text-center {
    text-align: center;
}
.text-medium {
    color: var(--text-medium);
}
.font-semibold {
    font-weight: 600;
}
.text-2xl {
    font-size: 1.5rem; /* 24px */
}
.mb-4 {
    margin-bottom: 1rem;
}
.rounded-image {
    width: 100%;
    border-radius: 15px;
}

/* Two Column Layout (Game Page) */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}
@media (min-width: 768px) {
    .two-column-layout {
        grid-template-columns: 1fr 1fr;
    }
}
.two-column-layout img {
    width: 100%;
    border-radius: 15px;
}
.two-column-layout ul {
    list-style-position: inside;
    list-style-type: disc;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Page Simple Form */
.contact-page .contact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}
.contact-page .contact-form-simple {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}
.contact-form-simple .form-group {
    margin-bottom: 1.5rem;
}
.contact-form-simple label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}
.contact-form-simple input,
.contact-form-simple textarea {
    width: 100%;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: var(--font-family);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form-simple input:focus,
.contact-form-simple textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}
.contact-form-simple .submit-button-wrapper {
    text-align: center;
    margin-top: 2rem;
}
.contact-form-simple .alternative-contact {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-medium);
}
.contact-form-simple .alternative-contact a {
    color: var(--primary-color);
    text-decoration: none;
}
.contact-form-simple .alternative-contact a:hover {
    text-decoration: underline;
}


/* Footer */
.footer { background-color: var(--medium-bg); padding: 4rem 2rem; }
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-dark); max-width: 250px; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-column h4 { margin-bottom: 1rem; color: var(--text-light); }
.footer-column a { display: block; color: var(--text-medium); text-decoration: none; margin-bottom: 0.5rem; transition: color 0.3s; }
.footer-column a:hover { color: var(--primary-color); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    color: var(--text-dark);
}
.social-links a { color: var(--text-medium); text-decoration: none; margin-left: 1.5rem; }
.social-links a:hover { color: var(--primary-color); }

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
    .hero h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    section { padding: 4rem 1rem; }
    .footer-content, .footer-bottom { flex-direction: column; text-align: center; }
    .social-links { margin-top: 1rem; }
    .social-links a { margin: 0 0.75rem; }
}
/* Bayrak Görseli Ayarları */
.lang-flag {
    width: 24px;       /* Genişlik */
    height: auto;
    margin-right: 8px; /* Yazı ile bayrak arası boşluk */
    border-radius: 3px; /* Hafif yuvarlak köşe */
    vertical-align: middle;
}

/* Dil menüsünün içindeki linklerin hizası */
.lang-option {
    display: flex !important; /* Flex ile ikon ve yazıyı ortala */
    align-items: center;
}

/* Masaüstünde Dil Menüsünü Sağa Yasla (Taşmayı önlemek için) */
@media (min-width: 992px) {
    .lang-dropdown-wrapper .dropdown-menu {
        left: auto;
        right: 0; /* Menüyü sağ kenara yasla */
        min-width: 160px; /* Biraz daha dar olabilir */
    }
}

/* Mobilde Dil Menüsü Ayarları */
@media (max-width: 991px) {
    /* Mobilde bayrak biraz daha büyük olsun */
    .lang-flag {
        width: 28px; 
    }
    
    /* Seçili dil butonu mobilde tam genişlik */
    .current-lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 20px;
    }
}
/* --- HABER DETAY SAYFASI STİLLERİ --- */

/* Haber İçerik Alanı */
.news-detail-section {
    padding-top: 140px; /* Navigasyonun altında kalmasın */
    padding-bottom: 80px;
    max-width: 900px; /* Okuma kolaylığı için çok geniş olmasın */
    margin: 0 auto;
}

.news-header {
    margin-bottom: 2rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.news-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Ana Görsel (Featured Image) */
.news-featured-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Metin İçeriği */
.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 3rem;
}

.news-body p {
    margin-bottom: 1.5rem;
}

.news-body h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Galeri (Birden fazla fotoğraf için) */
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Tüm resimler aynı boyda dursun */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* Geri Dön Butonu */
.back-btn-wrapper {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link span {
    margin-right: 8px;
    font-size: 1.2rem;
}
.content-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-slider {
            position: relative;
            max-width: 1000px;
            margin: 20px auto 40px;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }
        .slides {
            display: flex;
            transition: transform 0.5s ease-in-out;
        }
        .slide {
            min-width: 100%;
        }
        .slide img {
            width: 100%;
            height: 500px;
            object-fit: cover;
            display: block;
        }
        .slider-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        .dot {
            width: 12px;
            height: 12px;
            background: rgba(255,255,255,0.4);
            border-radius: 50%;
            cursor: pointer;
            border: none;
        }
        .dot.active { background: var(--primary-color); }

        /* PDF İçeriği İçin Ek Listeleme Stili */
        .news-body ul {
            margin: 1.5rem 0;
            padding-left: 1.5rem;
            list-style-type: disc;
        }
        .news-body li {
            margin-bottom: 0.8rem;
        }
