/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Genel Ayarlar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #f8f9fa, #eef1f5);
    color: #333;
    line-height: 1.6;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(138, 21, 56, 0.9);
    backdrop-filter: blur(10px);
    color: white;

    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

/* Navbar hover animasyonu */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #fbba00;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero --- */
.hero {
    height: 500px;
    background:
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?q=80&w=2000') center/cover no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

/* --- Buton --- */
.btn {
    margin-top: 25px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;

    background: linear-gradient(45deg, #fbba00, #ffcc33);
    color: black;

    box-shadow: 0 5px 15px rgba(251,186,0,0.4);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(251,186,0,0.6);
}

/* --- Başlık --- */
h2 {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 2.4rem;
    font-weight: 700;
    color: #8A1538;
}

/* --- Grup Kartları --- */
.group-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 8% 60px;
}

/* Kart tasarımı */
.group-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);

    padding: 25px;
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;

    border: 1px solid rgba(255,255,255,0.4);
}

.group-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.group-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

/* --- Takımlar --- */
.group-card ul {
    list-style: none;
}

.group-card li {
    display: flex;
    align-items: center;
    padding: 10px 0;

    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
}

.group-card li:hover {
    transform: translateX(5px);
}

/* Flag icon uyumu */
.group-card span.fi {
    width: 30px;
    height: 20px;
    margin-right: 12px;
    border-radius: 3px;
}

/* --- Footer --- */
footer {
    background: linear-gradient(45deg, #111, #222);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

/* Sayfayı yan yana 3 sütuna böler */
.layout-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
}

/* Orta içerik alanı (Senin ana kodun) */
.main-content {
    flex: 1;
    max-width: 1200px; /* İçeriğin çok yayılmasını önler */
    min-width: 0;
}

/* Yanlardaki boşluk ve reklam alanları */
.side-column {
    width: 160px; /* Standart dikey reklam genişliği */
    min-width: 160px;
    display: flex;
    flex-direction: column;
}



/* Vikipedi Tablo Düzenlemesi */
.viki-kadro table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
}
.viki-kadro th {
    background-color: var(--primary);
    color: white;
    padding: 10px;
    text-align: left;
}
.viki-kadro td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.viki-kadro tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* Vikipedi'deki gereksiz bazı link görsellerini gizle */
.viki-kadro .shorturl, .viki-kadro .metadata { display: none; }

/* Reklam kutusunun görseli */
.ad-placeholder {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    height: 600px; /* Uzun reklam boyutu */
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 80px; /* Sayfa kaysa da reklam yukarıda asılı kalır */
    color: #999;
    font-weight: bold;
}

/* Mobilde reklamları gizle, sayfayı daraltma */
@media (max-width: 1400px) {
    .side-column {
        display: none;
    }
}