﻿/* ============================================
            -- NAVBAR --
============================================ */
/* Genel Sıfırlama */
.ay-site-header,
.ay-site-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Dış Kapsayıcı */
.ay-site-header {
    width: 100%;
    height: 90px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Max 1200px İç Kapsayıcı */
.ay-header-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: padding 0.3s ease;
}

/* 3 Eşit Kolon Yapısı */
.ay-header-col {
    flex: 1;
    display: flex;
    align-items: center;
}

    /* Sol Kolon: Sosyal Medya İkonları */
    .ay-header-col.ay-left {
        justify-content: center;
        gap: 12px;
    }

.ay-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .ay-social-icon.ay-facebook:hover {
        background-color: #1877F2;
        color: #ffffff;
        transform: translateY(-3px);
    }

    .ay-social-icon.ay-instagram:hover {
        background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        color: #ffffff;
        transform: translateY(-3px);
    }

    .ay-social-icon.ay-youtube:hover {
        background-color: #FF0000;
        color: #ffffff;
        transform: translateY(-3px);
    }

    .ay-social-icon.ay-linkedin:hover {
        background-color: #0A66C2;
        color: #ffffff;
        transform: translateY(-3px);
    }

/* Orta Kolon: Ana Logo */
.ay-header-col.ay-center {
    justify-content: center;
}

.ay-logo-link {
    display: inline-block;
    text-decoration: none;
}

.ay-main-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

    /* Masaüstünde varsayılan olarak scrolled logosu gizli */
    .ay-main-logo.ay-logo-scrolled {
        display: none;
    }

/* Sağ Kolon: Harici Site Logosu */
.ay-header-col.ay-right {
    justify-content: center;
}

.ay-external-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

    .ay-external-logo:hover {
        opacity: 0.8;
    }

/* Hamburger Menü Butonu */
.ay-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #ff0000;
    cursor: pointer;
    padding: 8px;
}

/* Masaüstü Navigasyon Barı */
.ay-main-navbar {
    width: 100%;
    background-color: #ffffff;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 999;
}

.ay-navbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ay-nav-menu {
    font-family: 'Caecilia-Roman', sans-serif;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.ay-nav-item {
    position: relative;
}

.ay-nav-link {
    display: block;
    padding: 15px 22px;
    color: #555555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

    /* Masaüstü Kırmızı Çizgi Efekti */
    .ay-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0%;
        height: 3px;
        background-color: #ff0000;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .ay-nav-link:hover {
        color: #000000;
    }

        /* Bağlantının üzerine gelindiğinde veya alt menüsünde gezinirken */
        .ay-nav-link:hover::after,
        .ay-nav-item.ay-has-dropdown:hover > .ay-nav-link::after {
            width: 100% !important;
        }

/* Alt menüde gezinirken ana menü yazısı */
.ay-nav-item.ay-has-dropdown:hover > .ay-nav-link {
    color: #000000 !important;
}

/* Dropdown */
.ay-nav-item.ay-has-dropdown {
    position: relative;
}

.ay-dropdown-icon {
    font-size: 11px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.ay-nav-item.ay-has-dropdown:hover .ay-dropdown-icon {
    transform: rotate(180deg);
}

.ay-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background-color: #ffffff;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.ay-nav-item.ay-has-dropdown:hover .ay-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ay-dropdown-item {
    position: relative;
    overflow: hidden;
}

/* Alt Menü Linki */
.ay-dropdown-link {
    display: block;
    padding: 11px 20px 11px 25px;
    color: #555555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

    /* Kırmızı Blok */
    .ay-dropdown-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 100%;
        background-color: #ff0000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    /* Alt Menü Hover */
    .ay-dropdown-link:hover {
        color: #000000;
        transform: translateX(6px);
    }

        .ay-dropdown-link:hover::before {
            transform: translateX(0);
        }

/* Mobil Kapatma Butonu */
.ay-mobile-close-btn {
    display: none;
}

/* Mobil Şeffaf Arka Plan */
.ay-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
}

    .ay-menu-overlay.ay-active {
        opacity: 1;
        visibility: visible;
    }


/* ============================================
            -- SOL MENU --
============================================ */

/* Sol Tarafta Sabit Blog Butonu */
.ay-fixed-button {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    width: 25px;
    padding: 15px 15px;
    background-color: #b22c37;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    border-radius: 0 15px 15px 0;
    isolation: isolate;
    overflow: hidden;
    transition: width 0.3s ease;
}

    /* Logo */
    .ay-fixed-button img {
        width: 20px;
        height: auto;
        display: block;
    }

    /* Dikey BLOG Yazısı */
    .ay-fixed-button span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 3px;
        color: #ffffff;
    }

    /* Hover */
    .ay-fixed-button:hover {
        width: 35px;
        color: #ffffff;
        text-decoration: none;
    }


/* ============================================
            -- FOOTER --
============================================ */

/* Ana Kapsayıcı */
.ay-foot-section {
    max-width: 100%;
    background-color: #b22c37;
}

.ay-foot-wrapper {
    width: 100%;
    margin: 0 auto;
}

.ay-foot-main {
    background-color: #b22c37;
    color: #f8f9fa;
    padding: 3rem;
    text-align: left;
    box-sizing: border-box;
}

.ay-foot-container {
    width: 100%;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

/* Sol ve Sağ Blok */
.ay-foot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

/* Sol Taraf */
.ay-foot-col-left {
    flex: 0 0 38%;
    max-width: 38%;
    box-sizing: border-box;
}

/* Sağ Taraf */
.ay-foot-col-right {
    flex: 1;
    max-width: 62%;
    box-sizing: border-box;
}

/* Sağ Menü Grubu */
.ay-foot-subrow {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 25px;
}

/* Menü Sütunları */
.ay-foot-col-menu {
    flex: 1;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    text-align: left;
}

/* Başlık ve Metinler */
.ay-foot-title {
    font-family: 'Caecilia-Heavy', sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0;
}

.ay-foot-main p {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.ay-foot-link {
    font-family: 'Caecilia-Roman', sans-serif;
    font-size: 0.9rem;
    color: #f8f9fa;
    text-decoration: none;
}

    .ay-foot-link:hover {
        color: #e2e6ea;
        text-decoration: underline;
    }

.ay-foot-icon {
    margin-right: 0.5rem;
}

/* Logo ve İletişim */
.ay-foot-iletisim-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Logo Kutusu */
.ay-foot-logo-box {
    flex-shrink: 0;
}

    .ay-foot-logo-box img {
        height: 110px;
        width: auto;
    }

/* İletişim Metinleri */
.ay-foot-info-box {
    flex-grow: 1;
}

/* Sosyal Medya */
.ay-foot-social-wrap {
    text-align: center;
}

.ay-foot-social-list {
    padding-left: 0;
    list-style: none;
    margin-top: 20px;
}

.ay-foot-social-item {
    display: inline-block;
    margin-right: 0.5rem;
}

.ay-foot-social-link {
    color: #f8f9fa;
    font-size: 23px;
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

/* Telif */
.ay-foot-copyright {
    text-align: center;
}

    .ay-foot-copyright p {
        margin-bottom: 0.5rem;
    }

    .ay-foot-copyright a {
        color: inherit;
        text-decoration: none;
    }


/* ============================================
            -- RESPONSIVE / MEDIA QUERIES --
============================================ */

/* NAVBAR - MOBİL / DAR EKRAN */
@media (max-width: 769px) {

    .ay-header-col.ay-left,
    .ay-header-col.ay-right {
        display: none !important;
    }

    /* Header Sticky */
    .ay-site-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        height: auto;
        min-height: 90px;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

        /* Sayfa En Üstte */
        .ay-site-header .ay-header-container {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 12px 20px;
            gap: 8px;
        }

    .ay-header-col.ay-center {
        flex: 0 0 auto;
        justify-content: center;
        width: 100%;
    }

    /* Mobil Logo */
    .ay-main-logo.ay-logo-default {
        display: none !important;
    }

    .ay-main-logo.ay-logo-scrolled {
        display: block !important;
        max-height: 48px;
    }

    .ay-mobile-menu-btn {
        display: block;
        margin: 0 auto;
    }

    /* Sayfa Aşağı Kaydırıldığında */
    .ay-site-header.ay-scrolled {
        min-height: 60px;
        height: 60px;
    }

        .ay-site-header.ay-scrolled .ay-header-container {
            height: 60px;
            min-height: 60px;
            padding-top: 0;
            padding-bottom: 0;
        }

        .ay-site-header.ay-scrolled .ay-header-col.ay-center {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            width: auto;
        }

        .ay-site-header.ay-scrolled .ay-main-logo.ay-logo-scrolled {
            max-height: 38px;
        }

        .ay-site-header.ay-scrolled .ay-mobile-menu-btn {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            margin: 0;
        }

    /* Mobil Alt Navbar */
    .ay-main-navbar {
        position: static;
        border: none;
        height: 0;
        box-shadow: none;
    }

    .ay-nav-link::after {
        display: none;
    }

    /* Mobil Menü Paneli */
    .ay-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1003;
        overflow-y: auto;
    }

        .ay-nav-menu.ay-active {
            right: 0;
        }

    .ay-nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .ay-nav-link {
        padding: 16px 20px;
        font-size: 16px;
    }

    /* Mobil Kapatma Butonu */
    .ay-mobile-close-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 24px;
        color: #ff0000;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Mobil Dropdown */
    .ay-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
        padding: 0;
    }

    .ay-nav-item.ay-has-dropdown.ay-open .ay-dropdown-icon {
        transform: rotate(180deg);
    }

    .ay-nav-item.ay-has-dropdown.ay-open .ay-dropdown-menu {
        display: block;
    }

    .ay-dropdown-link {
        padding: 12px 20px 12px 35px;
    }

    .ay-main-logo {
        transition: max-height 0.3s ease-in-out;
    }

    /* Hamburger geçişi */
    .ay-mobile-menu-btn {
        transition: transform 0.3s ease;
    }

    /* Logo ve menünün konum geçişi */
    .ay-site-header .ay-header-col.ay-center,
    .ay-site-header .ay-mobile-menu-btn {
        transition: all 0.3s ease;
    }

    .ay-site-header.ay-scrolled .ay-main-logo.ay-logo-scrolled {
        max-height: 38px;
    }
}


/* FOOTER - TABLET VE KÜÇÜK EKRANLAR */
@media (max-width: 1199px) {

    .ay-foot-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ay-foot-col-left {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
    }

    .ay-foot-col-right {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .ay-foot-subrow {
        justify-content: flex-start;
        gap: 25px;
        margin-top: 30px;
    }

    .ay-foot-col-menu {
        flex: 1;
        min-width: 0;
        text-align: left;
    }
}


/* FOOTER - MOBİL */
@media (max-width: 768px) {

    .ay-foot-main {
        padding: 2rem 1rem;
    }

    /* Logo ve İletişim Alt Alta */
    .ay-foot-iletisim-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    /* Menüleri Alt Alta Getir */
    .ay-foot-subrow {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .ay-foot-col-menu {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
}

.ayazweb {
    color: #929292 !important;
    text-decoration: none !important;
    transition: color 0.5s ease-in-out;
}

    .ayazweb:hover {
        color: #393939 !important;
        text-decoration: none !important;
    }
