@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #e31e24;
    /* İHD Kırmızısı */
    --primary-hover: #c4191f;
    --secondary-color: #4b5563;
    --dark-bg: #111827;
    --light-bg: #f9fafb;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --white: #ffffff;
    --border-color: #f3f4f6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --header-height: 100px;
    --top-bar-height: 40px;
    --glass-bg: rgba(255, 255, 255, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.konteyner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-bg);
    height: var(--top-bar-height);
    color: var(--white);
    font-size: 0.85rem;
    position: relative;
    z-index: 1010;
    display: block;
    /* Flex çakışmasını önlemek için block yaptık */
}

.top-bar .konteyner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #cbd5e1;
}

.top-bar .social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.top-bar .social-links a {
    color: #cbd5e1;
    transition: color 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.top-bar .social-links a:hover {
    color: var(--primary-color);
}

/* Header */
header {
    background-color: var(--white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

header .konteyner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

header .konteyner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 5;
}

/* Kırmızı Şerit: Sayfanın solundan logo merkezine kadar */
.logo::before {
    content: '';
    position: absolute;
    left: -5000px;
    /* Çok uzaktan gelsin */
    right: 50%;
    /* Logonun ortasına kadar */
    top: 50%;
    transform: translateY(-50%);
    height: 65px;
    /* Şerit yüksekliği */
    background: var(--primary-color);
    z-index: -1;
    border-radius: 0 40px 40px 0;
    /* Sağ ucu hafif oval olabilir */
}

.logo img {
    height: 90px;
    width: 90px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    background: var(--white);
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    padding: 2px;
}

header.scrolled .logo::before {
    height: 50px;
}

header.scrolled .logo img {
    height: 65px;
    width: 65px;
    border-width: 4px;
}

/* Footer Logo Özelleştirmesi */
.footer-logo::before {
    height: 50px;
    /* Footer için biraz daha ince şerit */
}

.footer-logo img {
    height: 70px;
    width: 70px;
    border-width: 4px;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 10px 0;
    position: relative;
}

.nav-link i {
    font-size: 0.75rem;
    margin-left: 8px;
    transition: transform 0.3s;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
    padding-bottom: 5px;
    /* Hover alanını genişletmek için */
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 10px);
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.8rem 0;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
    padding-left: 1.8rem;
}

/* Slider / Manşet */
.manset-alani {
    margin-top: 2rem;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 450px;
    background: #000;
    box-shadow: var(--card-shadow);
}

.manset-resim {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.manset-icerik {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    width: 100%;
    color: var(--white);
}

.manset-icerik h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Kartlar */
.icerik-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.kart {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.kart:hover {
    transform: translateY(-5px);
}

.kart-resim {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f1f5f9;
}

.kart-govde {
    padding: 1.5rem;
}

.kart-kategori {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.kart-baslik {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.kart-ozet {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-sutun h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-linkler li {
    margin-bottom: 0.75rem;
}

.footer-linkler a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-linkler a:hover {
    color: var(--white);
}

.alt-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Buttons */
.buton {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background-color: var(--primary-color);
    color: var(--white);
    transition: background 0.3s ease;
}

.buton:hover {
    background-color: var(--primary-hover);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.8rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Off-Canvas Menu */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 250px;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 2rem;
        z-index: 999;
        overflow-y: auto;
        display: flex;
    }

    .nav-menu.active {
        left: 0;
    }

    header.scrolled .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 0.5rem 0;
    }

    .nav-link { 
        padding-left: 0;
    }

    .has-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        display: none;
        width: 100%;
        background: transparent;
    }

    .has-dropdown.open-mobile .dropdown-menu {
        display: block;
        margin-top: 10px;
    }

    .has-dropdown:hover .dropdown-menu {
        /* Mobilde hover ile açılması yerine click ile açılıyor */
        display: none;
    }
    .has-dropdown.open-mobile:hover .dropdown-menu {
        display: block;
    }

    /* Top Bar Düzeltmeleri */
    .top-bar {
        height: auto;
        padding: 10px 0;
    }

    .top-bar .konteyner, .top-bar-info {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .social-links {
        margin-top: 5px;
        justify-content: center;
    }

    /* Orijinal Kurallar ve Yükseklik Daraltmaları */
    .icerik-izgara {
        grid-template-columns: 1fr;
    }

    .manset-alani {
        height: 350px;
    }

    .manset-icerik h2 {
        font-size: 1.5rem !important;
    }
    
    h1 {
        font-size: 1.8rem !important;
    }

    .kategori-ozeti {
        padding: 1.5rem !important;
    }

    .akordiyon-baslik {
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }

    .table-container {
        overflow-x: auto;
        max-width: 100%;
        display: block;
    }

    .logo::before {
        height: 35px;
    }

    header.scrolled .logo::before {
        height: 25px;
    }

    .header-actions .buton {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
}

/* Modern Fullscreen Search Overlay */
.fullscreen-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.fullscreen-search-form {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.fullscreen-search-overlay.active .fullscreen-search-form {
    transform: translateY(0);
    opacity: 1;
}

.fullscreen-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    padding: 20px 0;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.fullscreen-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fullscreen-search-form button {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
    padding-left: 20px;
}

.fullscreen-search-form button:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .fullscreen-search-form input {
        font-size: 2rem;
    }

    .search-close-btn {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}