/* ==========================================
   SUHUT ANAYURT - BASE CSS
   Değişkenler, Reset ve Temel Stiller
   ========================================== */

/* ==========================================
   CSS DEĞİŞKENLERİ
   ========================================== */
:root {
    --primary-color: #c41e3a;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #a01829;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* ==========================================
   RESET & GENEL TANIMLAMALAR
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
}

/* ==========================================
   CONTAINER
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   TİPOGRAFİ
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 15px;
}

strong {
    font-weight: 600;
}

/* ==========================================
   YARDIMCI SINIFLAR
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================
   ÜST BAR (TOP BAR)
   ========================================== */
.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-date svg {
    width: 16px;
    height: 16px;
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.top-social a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.top-social svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   HEADER (ÜST BAŞLIK)
   ========================================== */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Gazete Masthead Stili */
.newspaper-masthead .masthead-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.newspaper-masthead .masthead-title {
    font-family: 'Playfair Display', 'Times New Roman', 'Georgia', serif;
    font-size: 52px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    letter-spacing: -1px;
}

.newspaper-masthead .masthead-primary {
    color: #000000;
}

.newspaper-masthead .masthead-secondary {
    color: #000000;
}

.newspaper-masthead .masthead-slogan {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    color: #666;
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: none;
}

/* Eski logo stilleri (fallback) */
.logo-text {
    display: flex;
    gap: 8px;
}

.logo-primary {
    color: var(--primary-color);
}

.logo-secondary {
    color: var(--secondary-color);
}

.header-ad {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.ad-header-banner {
    width: 728px;
    height: 140px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #999;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 5px;
}

/* ==========================================
   NAVİGASYON MENÜSÜ
   ========================================== */
.nav-menu {
    background: var(--primary-color);
    position: relative;
}

.nav-menu .container {
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu li a:hover,
.nav-menu li a.active,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    background: var(--hover-color);
    color: var(--white);
}

/* Alt Menü / Dropdown */
.nav-menu li {
    position: relative;
}

.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--secondary-color);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 0 0 5px 5px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu li:hover > .sub-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.nav-menu li .sub-menu li {
    width: 100%;
}

.nav-menu li .sub-menu li a {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.nav-menu li .sub-menu li:last-child a {
    border-bottom: none;
    border-radius: 0 0 5px 5px;
}

.nav-menu li .sub-menu li a:hover {
    background: var(--primary-color);
    padding-left: 25px;
}

/* Alt menü ok işareti */
.nav-menu li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

/* 2. seviye alt menü (sağa açılır) */
.nav-menu li .sub-menu li .sub-menu {
    top: 0;
    left: 100%;
    border-radius: 5px;
}

.nav-menu li .sub-menu li.menu-item-has-children > a::after {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid currentColor;
    border-right: none;
    margin-left: auto;
    margin-right: 0;
}

/* Ekstra Menü Butonları */
.nav-menu .menu-extra-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.nav-menu .menu-extra-btn {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.nav-menu .menu-extra-btn:hover {
    background: var(--hover-color);
}

.nav-menu .menu-extra-btn.highlight {
    background: #ffc107;
    color: #000;
}

.nav-menu .menu-extra-btn.highlight:hover {
    background: #ffca2c;
}

.nav-menu .menu-extra-btn.special {
    background: #ff6b35;
    color: #fff;
}

.nav-menu .menu-extra-btn.special:hover {
    background: #ff8555;
}

/* ==========================================
   FOOTER (ALT BİLGİ)
   ========================================== */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.footer-social a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE - BASE
   ========================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        flex-direction: column;
    }
    
    .nav-menu ul {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu.active ul {
        display: flex;
    }
    
    .nav-menu li a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Mobilde sub-menu */
    .nav-menu li .sub-menu {
        position: static;
        min-width: auto;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        opacity: 1;
        transform: none;
        display: none;
    }
    
    .nav-menu li.menu-item-has-children.open > .sub-menu {
        display: flex;
    }
    
    .nav-menu li .sub-menu li a {
        padding-left: 30px;
    }
    
    .nav-menu li .sub-menu li .sub-menu li a {
        padding-left: 45px;
    }
    
    /* Mobilde ekstra butonlar */
    .nav-menu .menu-extra-buttons {
        width: 100%;
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active .menu-extra-buttons {
        display: flex;
    }
    
    .nav-menu .menu-extra-btn {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .newspaper-masthead .masthead-title {
        font-size: 36px;
    }
    
    .newspaper-masthead .masthead-slogan {
        font-size: 10px;
    }
    
    .header-ad {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    .newspaper-masthead .masthead-title {
        font-size: 28px;
    }
    
    .newspaper-masthead .masthead-slogan {
        font-size: 9px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}
