/**
 * Toroslar Belediyesi - Ana Stil Dosyası
 * WCAG 2.2 A Seviyesi Uyumlu
 * Glassmorphism Tasarım - Tek Ekran
 */
@import url('inline-utilities.css');

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors */
    --primary-blue: #1E3A5F;
    --primary-green: #2E7D32;
    --primary-orange: #E65100;
    
    /* Background & Surface */
    --bg-dark: #0a1628;
    --surface-glass: rgba(255, 255, 255, 0.08);
    --surface-glass-hover: rgba(255, 255, 255, 0.12);
    --surface-glass-strong: rgba(255, 255, 255, 0.15);
    --mega-menu-bg: rgba(15, 25, 45, 0.98);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Accent Colors */
    --accent-blue: #4FC3F7;
    --accent-green: #81C784;
    --accent-orange: #FFB74D;
    
    /* Glassmorphism */
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.15);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --header-height: 70px;
    --footer-height: 50px;
    --bottom-bar-height: 50px;
    --right-panel-width: 380px;
}

/* ==================== Theme Variations ==================== */
[data-theme="modern"] {
    --primary-blue: #0D47A1;
    --primary-green: #1B5E20;
    --accent-blue: #42A5F5;
    --accent-green: #66BB6A;
    --surface-glass: rgba(13, 71, 161, 0.15);
    --surface-glass-hover: rgba(13, 71, 161, 0.25);
    --mega-menu-bg: rgba(10, 40, 100, 0.98);
}

[data-theme="akdeniz"] {
    --primary-blue: #006064;
    --primary-green: #33691E;
    --accent-blue: #00ACC1;
    --accent-green: #7CB342;
    --surface-glass: rgba(0, 96, 100, 0.15);
    --surface-glass-hover: rgba(0, 96, 100, 0.25);
    --mega-menu-bg: rgba(0, 60, 65, 0.98);
}

[data-theme="dinamik"] {
    --primary-blue: #1565C0;
    --primary-green: #43A047;
    --accent-blue: #64B5F6;
    --accent-green: #81C784;
    --surface-glass: rgba(21, 101, 192, 0.15);
    --surface-glass-hover: rgba(21, 101, 192, 0.25);
    --mega-menu-bg: rgba(15, 70, 140, 0.98);
}

[data-theme="kontrast"] {
    --primary-blue: #000000;
    --primary-green: #1B5E20;
    --bg-dark: #000000;
    --text-primary: #FFFF00;
    --text-secondary: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.1);
    --surface-glass-hover: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 0, 0.3);
    --mega-menu-bg: rgba(0, 0, 0, 0.98);
    --accent-green: #FFFF00;
}

/* ==================== Reset & Base ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==================== Slider Background ==================== */
.slider-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -2;
}

.slider-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 22, 40, 0.85) 0%,
        rgba(30, 58, 95, 0.7) 50%,
        rgba(46, 125, 50, 0.6) 100%
    );
    z-index: 1;
}

.slider-bg.active {
    opacity: 1;
}

/* ==================== Header ==================== */
.header {
    position: relative;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem;
    margin: 8px 8px 0 8px;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

/* Header'ın mega menü için parent olması lazım */
.header .main-nav {
    position: static;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header-left a {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 0.5rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width var(--transition-normal);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text-primary);
    background: var(--surface-glass-hover);
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 60%;
}

.main-nav a.active {
    color: var(--text-primary);
    background: var(--surface-glass-strong);
}

.main-nav a.active::after {
    width: 60%;
    background: var(--accent-blue);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    display: block;
}

.nav-dropdown > a:hover {
    color: var(--text-primary);
    background: var(--surface-glass-hover);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0.75rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.nav-dropdown-menu a:hover {
    background: var(--surface-glass-hover);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

/* ==================== Mega Menu ==================== */
.nav-mega {
    position: static;
}

.nav-mega .mega-menu {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    flex-wrap: nowrap;
    justify-content: center;
}

.nav-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-group {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 160px;
}

.mega-menu-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.mega-menu-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-group ul li {
    margin-bottom: 0.1rem;
}

.mega-menu-group ul li a {
    display: block;
    padding: 0.4rem 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-group ul li a:hover {
    background: var(--surface-glass-hover);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface-glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.theme-btn:hover {
    background: var(--surface-glass-hover);
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(20, 30, 50, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.theme-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.theme-dropdown button:hover,
.theme-dropdown button.active {
    background: var(--surface-glass-hover);
    color: var(--text-primary);
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Accessibility Buttons */
.accessibility-btns {
    display: flex;
    gap: 0.25rem;
}

.accessibility-btns button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.accessibility-btns button:hover,
.accessibility-btns button:focus {
    background: var(--surface-glass-hover);
    transform: scale(1.05);
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
    display: flex;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

/* Search Wrapper - Positioned above bottom bar */
.search-wrapper {
    position: fixed;
    bottom: calc(var(--bottom-bar-height) + var(--footer-height) + 30px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: flex;
    justify-content: center;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 1rem;
    width: 56px;
    height: 56px;
    max-width: 500px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.search-container:hover,
.search-container.has-value {
    width: 400px;
    height: auto;
    padding: 0.75rem 1.5rem;
    cursor: default;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    overflow: hidden;
    width: 0;
    opacity: 0;
    margin: 0;
    transition: all var(--transition-normal);
}

.search-container:hover .search-input,
.search-container.has-value .search-input {
    width: 200px;
    opacity: 1;
    margin: 0 1rem;
}

.search-input input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border: none;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    width: 0;
    padding: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.search-container:hover .search-btn,
.search-container.has-value .search-btn {
    opacity: 1;
    width: auto;
    padding: 0.5rem 1.5rem;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    gap: 0.75rem;
    margin-top: 3rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-glass);
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.slider-dot:hover,
.slider-dot:focus {
    background: var(--surface-glass-hover);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--accent-green);
    border-color: var(--accent-green);
    transform: scale(1.3);
}

/* ==================== Right Panel ==================== */
.right-panel {
    position: absolute;
    right: 2rem;
    top: 2rem;
    bottom: 2rem;
    width: var(--right-panel-width);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

/* Atatürk Card */
.ataturk-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.ataturk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #E30A17, #FFFFFF);
}

.ataturk-card .quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.ataturk-card .author {
    font-weight: 600;
    color: var(--accent-orange);
    text-align: right;
}

/* Contact Card */
.contact-card {
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cozum-masasi {
    text-align: center;
}

.cozum-masasi h4 {
    margin-bottom: 0.5rem;
}

.cozum-masasi .phone-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.contact-card > h4:not(:first-child) {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.talep-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.talep-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== Bottom Bar ==================== */
.bottom-bar-wrapper {
    position: relative;
    z-index: 100;
}

.quick-access-panel {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.quick-access-panel.open {
    max-height: 300px;
    padding: 0 0 1rem 0;
}

.quick-access-panel .inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.6) 70%, rgba(46, 125, 50, 0.6) 100%);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.quick-access-btn:hover {
    background: var(--surface-glass-hover);
    transform: translateY(-2px);
}

.bottom-bar {
    height: var(--bottom-bar-height);
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin: 0 8px 8px 8px;
    padding: 0;
}

.bottom-bar-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bottom-bar-section.ticker-section {
    flex: 1;
    overflow: hidden;
    gap: 0.5rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.bottom-bar-section.ticker-left {
    justify-content: flex-end;
}

.bottom-bar-section.ticker-right {
    justify-content: flex-start;
}

.quick-access-toggle {
    cursor: pointer;
    padding: 0 1.5rem;
    transition: all var(--transition-normal);
    user-select: none;
    background: var(--surface-glass-hover);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.quick-access-toggle:hover {
    background: var(--surface-glass-hover);
}

.quick-access-toggle .arrow {
    display: inline-block;
    transition: transform var(--transition-normal);
}

.quick-access-toggle.open .arrow {
    transform: rotate(180deg);
}

/* Ticker */
.ticker-label {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-label.duyuru {
    background: rgba(230, 81, 0, 0.3);
    color: var(--accent-orange);
}

.ticker-label.haber {
    background: rgba(79, 195, 247, 0.3);
    color: var(--accent-blue);
}

.ticker-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    max-width: 400px;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    animation: blink 1s infinite;
}

.cursor.duyuru {
    background: var(--accent-orange);
}

.cursor.haber {
    background: var(--accent-blue);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ==================== Footer ==================== */
.footer {
    position: relative;
    z-index: 100;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.footer-left {
    color: var(--text-muted);
}

.footer-center {
    display: flex;
    gap: 1.5rem;
}

.footer-center a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-center a:hover {
    color: var(--text-primary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-right a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-right a:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.edevlet-btn {
    background: linear-gradient(135deg, #E30A17, #B71C1C);
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
}

.edevlet-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: var(--shadow-sm);
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
    :root {
        --right-panel-width: 320px;
    }
}

@media (max-width: 992px) {
    .center-area {
        padding-right: 0;
    }

    .site-title {
        font-size: 1.2rem;
    }
}

/* ==================== HAMBURGER (mobil) ==================== */
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary, #fff);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.aktif span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.aktif span:nth-child(2) { opacity: 0; }
.menu-toggle.aktif span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
}
.nav-overlay.aktif { display: block; }

/* ==================== MOBİL & TABLET UYUM (≤992px) ==================== */
@media (max-width: 992px) {
    /* Tek-ekran mantığı kalksın, dikey scroll'a aç */
    body { overflow-y: auto; height: auto; }

    /* HEADER */
    .header {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 10px 14px;
        gap: 8px;
    }
    .header-left { flex: 1; min-width: 0; gap: 10px; }
    .logo { height: 38px !important; }
    .site-title { font-size: 0.95rem !important; line-height: 1.2; white-space: normal; }
    .header-right {
        order: 3;
        width: 100%;
        justify-content: center !important;
        gap: 8px;
    }
    .header-right > * { font-size: 0.85rem !important; }
    .menu-toggle { display: flex; }

    /* NAV: full-screen drawer, yarı şeffaf, ortalı */
    .main-nav {
        display: none;
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, rgba(30, 58, 95, 0.55), rgba(46, 125, 50, 0.55));
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        gap: 0;
        padding: 70px 0 30px;
        overflow-y: auto;
        z-index: 9999;
        text-align: center;
    }
    .main-nav.aktif { display: flex; }
    .main-nav-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.12);
        color: #fff;
        font-size: 24px;
        line-height: 1;
        border-radius: 8px;
        cursor: pointer;
    }
    .main-nav > a, .main-nav > .nav-dropdown > a {
        padding: 14px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem !important;
        color: #fff !important;
        background: transparent !important;
        border-radius: 0 !important;
        width: 100%;
        display: block;
        text-align: center;
    }
    .main-nav a::after { display: none !important; }
    .nav-dropdown { width: 100%; position: static !important; }
    .nav-dropdown-menu, .mega-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(0,0,0,0.25) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        display: block !important;
    }
    .nav-dropdown.aktif .nav-dropdown-menu,
    .nav-dropdown.aktif .mega-menu { max-height: 1500px; padding: 8px 0 !important; }
    .mega-menu-group {
        padding: 8px 20px !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100% !important;
        text-align: center !important;
    }
    .mega-menu-group ul { padding: 0 !important; margin: 4px 0 !important; list-style: none !important; }
    .mega-menu-group ul li { display: block !important; width: 100% !important; text-align: center !important; }
    .mega-menu-title {
        color: var(--accent-green, #81C784) !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        padding: 10px 0 6px !important;
        text-align: center !important;
    }
    .mega-menu li a, .nav-dropdown-menu a, .mega-menu-group ul li a {
        padding: 10px 16px !important;
        color: #fff !important;
        font-size: 0.9rem !important;
        white-space: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* MAIN: dikey stack — sıralama: Atatürk → Çözüm → Center → Arama */
    .main-content {
        flex-direction: column !important;
        padding: 1rem !important;
        height: auto !important;
        overflow: visible !important;
    }
    .center-area {
        width: 100% !important;
        padding-right: 0 !important;
        overflow: visible !important;
        order: 2;
        display: flex;
        flex-direction: column;
    }
    .right-panel {
        display: flex !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        overflow: visible !important;
        order: 1;
    }
    .ataturk-card, .contact-card { width: 100% !important; }
    .ataturk-card .quote { font-size: 0.85rem !important; }

    /* SEARCH WRAPPER en altta — relative ki dropdown wrapper'a göre konumlasın */
    .search-wrapper {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        margin: 1rem 0 0 !important;
        order: 3;
        z-index: 1200;
    }
    .main-content { overflow: visible !important; }
    .search-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0.6rem 0.75rem !important;
        cursor: pointer;
        gap: 8px;
    }
    .search-input {
        width: auto !important;
        opacity: 1 !important;
        flex: 1 !important;
        min-width: 0 !important;
        margin: 0 0.5rem !important;
        overflow: visible !important;
    }
    .search-input input { width: 100%; font-size: 0.9rem; }
    .search-btn {
        opacity: 1 !important;
        width: auto !important;
        min-width: 70px !important;
        padding: 0.55rem 1rem !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        overflow: visible !important;
    }

    /* BOTTOM BAR — dikey stack, sıra: Hızlı Erişim → Haber → Duyuru */
    .bottom-bar-wrapper { position: static !important; }
    .bottom-bar {
        flex-direction: column;
        height: auto;
        padding: 8px 12px;
        gap: 8px;
        overflow: visible;
    }
    .bottom-bar-section { width: 100%; min-width: 0; }
    .ticker-section {
        min-height: 4.5em; /* ~3 satır rezerv (zıplama olmasın) */
        align-items: flex-start;
    }
    .ticker-text {
        max-width: none;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }
    .ticker-left  { order: 2; }
    .quick-access-toggle { order: 1; justify-content: center; padding: 10px; background: rgba(255,255,255,0.15); border-radius: 8px; }
    .ticker-right { order: 3; }
    .ticker-section { padding: 6px 10px; }
    .quick-access-panel {
        position: static !important;
        transform: none !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        order: 0;
        width: 100%;
    }
    .quick-access-panel.aktif { max-height: 600px; padding: 1rem 0; }
    .quick-access-panel .inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 1rem; }

    /* FOOTER */
    .footer {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.75rem;
        text-align: center;
    }
    .footer-center { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 0.85rem; }
    .footer-right { justify-content: center; }

    /* Talep modal mobile fullscreen */
    .talep-modal { width: 100% !important; max-width: 100% !important; max-height: 100vh !important; border-radius: 0 !important; }
}

/* ==================== Focus Styles (Accessibility) ==================== */
*:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Ticker Link Styles ==================== */
.ticker-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ticker-link:hover {
    opacity: 0.85;
}

.ticker-link:hover .ticker-text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ticker-link:focus {
    outline: none;
}

.ticker-link:focus-visible .ticker-text {
    text-decoration: underline;
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 2px;
}
