/* =========================================
   1. GOOGLE FONTLARI
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&display=swap');

/* =========================================
   2. RENKLER VE TEMEL AYARLAR
========================================= */
:root {
    --primary-blue: #0284c7;
    --text-dark: #334155;
    --light-bg: #f8fafc;

    /* Medikal Footer Renkleri */
    --footer-bg: #1e293b;
    --footer-text: #cbd5e1;
    --footer-accent: #38bdf8;
    --footer-border: #334155;
    --footer-social-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px;
}

/* Ortak El Yazısı Özelliği */
.el-yazisi-font {
    font-family: 'Caveat', cursive !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-decoration: none !important;
}

/* =========================================
   3. NAVBAR (ÜST MENÜ)
========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 15px 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-logo-alani {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.navbar-facestetik-img {
    width: 60px;
    /* Boyut büyütüldü */
    height: 60px;
    /* Boyut büyütüldü */
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.navbar-facestetik-img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

.logo.el-yazisi-font {
    font-size: 36px !important;
    color: var(--primary-blue) !important;
    transition: opacity 0.3s ease;
}

.logo.el-yazisi-font:hover {
    opacity: 0.8;
}

.nav-icerik {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0 auto;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.social-icons a {
    color: var(--text-dark);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.mobil-menu-btn {
    display: none;
}

/* =========================================
   4. FOOTER (ALT BİLGİ ALANI)
========================================= */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--footer-accent);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-list li i {
    color: var(--footer-accent);
    font-size: 14px;
    margin-right: 12px;
    margin-top: 4px;
}

.footer-list a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-list a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--footer-border);
    margin: 0;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 0;
}

.footer-brand {
    flex: 1;
    text-align: center;
}

.footer-facestetik-img {
    width: 80px;
    /* Boyut 55px'ten 80px'e çıkarıldı */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    /* Ortalamanın kusursuz çalışması için eklendi */
}

.footer-facestetik-img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

.footer-brand h2 {
    margin-bottom: 5px !important;
}

.footer-brand h2 a.el-yazisi-font {
    font-size: 42px !important;
    color: #ffffff !important;
    transition: color 0.3s ease;
    white-space: nowrap !important;
    display: inline-block;
}

.footer-brand h2 a.el-yazisi-font:hover {
    color: var(--primary-blue) !important;
}

.footer-brand p {
    color: var(--footer-accent);
    font-size: 14px;
}

.footer-contact {
    flex: 2;
    border-left: 1px solid var(--footer-border);
    border-right: 1px solid var(--footer-border);
    padding: 0 40px;
    margin: 0 40px;
}

.footer-contact h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact li i {
    color: var(--footer-accent);
    font-size: 16px;
    margin-right: 15px;
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.footer-socials {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.footer-socials a {
    background-color: var(--footer-social-bg);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--footer-accent);
    color: var(--footer-social-bg);
    transform: translateY(-3px);
}

/* Telif Hakkı (Copyright) Bölümü */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* =========================================
   YOUTUBE TARZI VİDEO POPUP (MODAL) STİLLERİ
========================================= */
.video-modal-overlay {
    display: none;
    /* Başlangıçta gizli */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    /* Şık yarı saydam arka plan */
    backdrop-filter: blur(4px);
    /* Arka planı hafifçe bulanıklaştırır */
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

/* YouTube popup boyutu için ideal genişlik */
.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 750px;
    /* Tam ekran olmasını engeller, ideal pencere boyutu */
    background: #000000;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* Videonun taşmasını ve dikeyde ekranı kaplamasını engelleyen ayar */
.video-modal-content video {
    width: 100%;
    max-height: 75vh;
    /* Ekran yüksekliğinin en fazla %75'ini kaplar */
    display: block;
    outline: none;
    border-radius: 16px;
}

/* Belirgin, Yuvarlak Kapatma (X) Butonu */
.video-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.2s ease;
    user-select: none;
}

.video-close-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    transform: scale(1.1);
}

/* =========================================
   YENİ RESİMLİ KART TASARIMLARI
========================================= */
.resimli-kart {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 220px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Yukarı kayma efekti */
.resimli-kart:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* Üzerindeki Siyah Karartma Katmanı (Yazının Okunması İçin Şart) */
.resimli-kart::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45); /* %45 siyah transparan */
    transition: background 0.3s ease;
    z-index: 1;
}

/* Üzerine gelince karartma biraz açılsın ve resim aydınlansın */
.resimli-kart:hover::before {
    background: rgba(0, 0, 0, 0.2); 
}

/* Kart Üzerindeki Yazı Stilleri */
.resimli-kart span, 
.resimli-kart h3 {
    position: relative;
    z-index: 2; /* Yazıyı karartmanın üstüne alır */
    color: #ffffff !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); /* Yazıya ekstra gölge verip patlamasını sağlar */
    letter-spacing: 0.5px;
}

/* =========================================
   5. MOBİL UYUM (RESPONSIVE) KODLARI
========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .navbar-logo-alani {
        gap: 10px;
    }

    .navbar-facestetik-img {
        width: 45px;
        height: 45px;
    }

    .logo.el-yazisi-font {
        font-size: 30px !important;
    }

    .mobil-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 26px;
        color: var(--text-dark);
        cursor: pointer;
    }

    .nav-icerik {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-icerik.aktif {
        max-height: 400px;
        padding-bottom: 20px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        margin: 0;
        text-align: center;
        gap: 0;
    }

    .nav-menu a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 18px;
    }

    .social-icons {
        margin-top: 15px;
        justify-content: center;
    }

    .footer-inner {
        padding: 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-middle {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-facestetik-img {
        width: 60px;
        margin-bottom: 10px;
    }

    .footer-brand h2 a.el-yazisi-font {
        font-size: 38px !important;
    }

    .footer-contact {
        border: none;
        padding: 0;
        margin: 0;
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}