/* =========================================
   VEZİRHAN BETON - NİHAİ MASTER CSS (VİTRİN + İÇ SAYFALAR)
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800;900&display=swap');

:root {
    --lacivert: #020817; /* Gece mavisi, tam premium */
    --mavi: #005bb5;     
    --acik-mavi: #0ea5e9;
    --metin: #334155;    
    --acik-gri: #f8fafc; 
    --gecis: all 0.3s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: var(--metin);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .stat-number, .btn-holografik {
    font-family: 'Montserrat', sans-serif;
}

/* --- ORTAK ANİMASYONLAR --- */
@keyframes asagidanGel {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- BUTONLAR --- */
.btn-holografik {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mavi);
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--gecis);
    border-radius: 6px;
}

.btn-holografik:hover {
    background: #004285;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 91, 181, 0.25);
}

.btn-nav { padding: 10px 24px; font-size: 13px; letter-spacing: 1px; border-radius: 50px; }
.btn-hero { padding: 16px 36px; font-size: 14px; letter-spacing: 1.5px; }
.btn-cta { padding: 20px 48px; font-size: 1.1rem; letter-spacing: 1.5px; margin-top: 15px; }

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    min-height: 90px;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 45px; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.02); }

nav ul { list-style: none; display: flex; gap: 35px; align-items: center; }
nav a:not(.btn-holografik) {
    text-decoration: none; color: var(--lacivert); font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 5px; transition: color 0.3s;
}
nav a:not(.btn-holografik):hover { color: var(--mavi); }
nav a:not(.btn-holografik):hover::after { width: 100%; }

/* --- ANA SAYFA HERO SECTION --- */
.hero {
    min-height: 85vh;
    background-color: var(--lacivert);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 90px;
}

.hero-bg-blur {
    position: absolute;
    inset: -8%;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(9px) brightness(0.62);
    transform: scale(1.04);
    z-index: 0;
}

.hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 8, 23, 0.58), rgba(2, 8, 23, 0.34));
    z-index: 2;
}

.hero > .container {
    position: relative;
    z-index: 3;
    display: block;
}

.hero-icerik {
    max-width: 800px;
    animation: asagidanGel 1s ease forwards;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.75);
}
.badge {
    display: inline-block; background: rgba(255, 255, 255, 0.1); border-left: 3px solid var(--acik-mavi);
    color: #fff; padding: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; color: #ffffff; font-weight: 900; letter-spacing: -1px; }
.hero h1 span { color: var(--acik-mavi); }
.hero p { font-size: 1.15rem; color: #f1f5f9; margin-bottom: 40px; max-width: 650px; line-height: 1.8; font-weight: 500; }

/* --- İÇ SAYFALAR ORTAK HERO STANDARDI --- */
.ic-sayfa-hero {
    height: 45vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 90px;
    border-bottom: 4px solid var(--mavi);
    position: relative;
    overflow: hidden;
    background: var(--lacivert);
}

.ic-sayfa-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ic-sayfa-hero-media::before {
    content: "";
    position: absolute;
    inset: -8%;
    background-image: var(--inner-hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.45);
    transform: scale(1.07);
}

.ic-sayfa-hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.ic-sayfa-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(2, 8, 23, 0.78), rgba(2, 8, 23, 0.42));
}
.ic-sayfa-hero-icerik { position: relative; z-index: 2; animation: asagidanGel 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; text-shadow: 0 3px 14px rgba(0,0,0,0.7); }
.ic-sayfa-hero-icerik span { color: var(--acik-mavi); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; font-size: 0.85rem; display: block; margin-bottom: 15px; }
.ic-sayfa-hero-icerik h1 { color: white; font-size: 3.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 0; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* --- İSTATİSTİK BARI --- */
.stats-wrapper {
    position: relative; max-width: 1000px; margin: -50px auto 0; background: #fff;
    border-radius: 12px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    display: grid; grid-template-columns: repeat(3, 1fr); z-index: 10;
}
.stat-box { padding: 40px 20px; text-align: center; border-right: 1px solid #f1f5f9; }
.stat-box:last-child { border-right: none; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--lacivert); display: block; line-height: 1; margin-bottom: 8px; }
.stat-text { font-size: 0.8rem; color: #64748b; text-transform: uppercase; font-weight: 700; letter-spacing: 1px;}

/* --- ÜRÜNLER KARTLARI --- */
.products-section { padding: 100px 0; background-color: var(--acik-gri); }
.products-container { display: block; }
.tesisler-container { display: block; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle { color: var(--mavi); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 12px; display: block; margin-bottom: 10px; }
.section-title { font-size: 2.4rem; color: var(--lacivert); font-weight: 800; letter-spacing: -0.5px; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.02); transition: var(--gecis); border: 1px solid rgba(0,0,0,0.04); }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0, 40, 85, 0.1); border-color: transparent; }
.product-card h3 { font-size: 1.3rem; color: var(--lacivert); margin: 15px 0 10px; font-weight: 800; }
.product-card p { color: #64748b; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.card-image-wrapper {
    width: 100%;
    height: 210px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #e2e8f0;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.product-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
}
.products-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 28px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
}

/* Ana sayfa: ürün grid altı — kısa metin + sade buton */
.products-catalog-footer {
    margin-top: 44px;
    padding-top: 32px;
    border-top: 1px solid #e8edf3;
    text-align: center;
}
.products-catalog-hint {
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
    font-weight: 400;
}
.btn-products-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 26px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    color: #fff !important;
    background-color: var(--mavi);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(2, 8, 23, 0.06);
}
.btn-products-list:hover {
    background-color: #004a99;
    box-shadow: 0 4px 14px rgba(0, 91, 181, 0.2);
}
.btn-products-list:active {
    background-color: #003d7a;
}
.btn-products-list:focus-visible {
    outline: 2px solid var(--acik-mavi);
    outline-offset: 3px;
}
@media (max-width: 480px) {
    .btn-products-list {
        width: 100%;
        max-width: 320px;
    }
}

.card-link { display: inline-flex; align-items: center; color: var(--lacivert); font-weight: 700; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--gecis); }
.card-link:hover { color: var(--mavi); }
.card-link::after { content: '→'; margin-left: 6px; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(4px); }

/* --- TESİSLER LİSTESİ --- */
.tesis-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.tesis-list-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: var(--gecis);
}
.tesis-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
.tesis-list-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.tesis-list-visual {
    width: 100%;
    height: 190px;
    background: #cbd5e1;
    overflow: hidden;
}
.tesis-list-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tesis-list-visual-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}
.tesis-list-body { padding: 18px 18px 20px; }
.tesis-list-subtitle {
    display: inline-flex;
    color: var(--mavi);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.76rem;
    margin-bottom: 10px;
}
.tesis-list-body h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--lacivert);
    margin-bottom: 10px;
    font-weight: 800;
}
.tesis-list-body p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 14px;
}
.tesis-list-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.tesis-list-stat-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
}
.tesis-list-stat-item strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
}
.tesis-list-stat-item span {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tesis-list-link-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mavi);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}
.tesis-list-link-text::after {
    content: '→';
    transition: transform 0.2s ease;
}
.tesis-list-card:hover .tesis-list-link-text::after {
    transform: translateX(3px);
}

/* --- TESİS DETAY KARTI & EDİTÖR --- */
.tesis-kart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.05); margin-bottom: 50px; transition: var(--gecis); align-items: stretch; }
.tesis-kart:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
.tesis-kart.ters .tesis-yazi { order: 2; }
.tesis-kart.ters .tesis-gorsel { order: 1; }
.tesis-yazi { padding: 60px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.tesis-gorsel { min-height: 400px; position: relative; overflow: hidden; background: #0f172a; min-width: 0; }
.tesis-gorsel-bg {
    position: absolute;
    inset: -8%;
    background-image: var(--tesis-image);
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.7);
    transform: scale(1.08);
}
.tesis-gorsel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.tesis-galeri-thumbs {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    z-index: 2;
}
.tesis-thumb-btn {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.6);
    padding: 0;
}
.tesis-thumb-btn.aktif { border-color: #0ea5e9; }
.tesis-thumb-btn img {
    width: 100%;
    height: 48px;
    object-fit: cover;
    display: block;
}

.editor-icerik { font-size: 1.05rem; line-height: 1.8; margin-bottom: 30px; }
.editor-icerik p { margin-bottom: 15px; }
.editor-icerik ul { padding-left: 0; margin-top: 15px; margin-bottom: 20px; list-style-type: none; }
.editor-icerik li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.editor-icerik li::before { content: '■'; color: var(--mavi); font-size: 0.8em; position: absolute; left: 0; top: 6px; }
.editor-icerik strong, .editor-icerik b { font-weight: 800; }
.tema-koyu .editor-icerik { color: #cbd5e1; }
.tema-koyu .editor-icerik strong { color: #fff; }
.tema-acik .editor-icerik { color: #475569; }
.tema-acik .editor-icerik strong { color: var(--lacivert); }

.tesis-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 10px; }
.tesis-stat-item { min-width: 0; }
.tesis-stat-deger { font-size: 1.6rem; display: block; font-weight: 900; line-height: 1.2; }
.tesis-stat-etiket { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; display: block; margin-top: 4px; }
.tema-koyu .tesis-stat-deger { color: #fff; }
.tema-koyu .tesis-stat-etiket { color: #94a3b8; }
.tema-acik .tesis-stat-deger { color: var(--lacivert); }
.tema-acik .tesis-stat-etiket { color: #64748b; }

/* --- MASTER CTA (KAPANIŞ) --- */
.master-cta { padding: 100px 20px; background: var(--lacivert); text-align: center; border-top: 4px solid var(--mavi); }
.cta-content { max-width: 800px; margin: 0 auto; }
.cta-content h2 { font-size: 3rem; color: #fff; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; }
.cta-content h2 .cta-blue { color: var(--acik-mavi); }
.cta-content h2 .cta-white { color: #ffffff; }
.cta-content p { color: #94a3b8; font-size: 1.15rem; margin-bottom: 35px; }

/* =========================================
   MOBİL UYUM (GERÇEK RESPONSIVE TASARIM)
========================================= */

@media (max-width: 992px) {
    .stats-wrapper, .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .tesis-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    /* Header & Menü */
    header { padding: 10px 0; position: relative; min-height: auto; }
    .container { flex-direction: column; gap: 10px; padding: 0 16px; }
    .logo img { height: 38px; }
    nav { width: 100%; }
    nav ul {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px 10px;
        align-items: center;
    }
    nav ul li { text-align: center; }
    nav a:not(.btn-holografik) {
        display: block;
        font-size: 10px;
        letter-spacing: 0.6px;
        padding: 4px 2px;
    }
    .btn-nav {
        grid-column: 1 / -1;
        justify-self: center;
        padding: 8px 16px;
        margin-top: 4px;
        font-size: 11px;
    }
    
    /* Ana Sayfa Hero (mobilde temiz ve premium görünüm) */
    .hero {
        min-height: 64vh;
        padding: 28px 20px 18px;
        text-align: left;
        align-items: flex-end;
    }
    .hero-bg-blur {
        display: none;
    }
    .hero-visual {
        object-fit: cover;
        object-position: center 35%;
    }
    .hero-overlay {
        background: linear-gradient(to top, rgba(2, 8, 23, 0.82) 0%, rgba(2, 8, 23, 0.52) 45%, rgba(2, 8, 23, 0.25) 100%);
    }
    .hero-icerik {
        max-width: 100%;
        padding: 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }
    .badge { margin: 0 0 10px; font-size: 10px; }
    .hero h1 { font-size: 2rem; letter-spacing: -0.2px; margin-bottom: 10px; line-height: 1.12; }
    .hero p { font-size: 0.95rem; margin-bottom: 14px; line-height: 1.55; max-width: 96%; }
    .btn-hero { padding: 11px 18px; font-size: 11px; letter-spacing: 1px; }

    /* İç Sayfalar Ortak Hero Mobil */
    .ic-sayfa-hero { height: auto; min-height: 250px; padding: 130px 20px 60px; }
    .ic-sayfa-hero-media::before { filter: blur(10px) brightness(0.5); }
    .ic-sayfa-hero::after { background: linear-gradient(to top, rgba(2, 8, 23, 0.82), rgba(2, 8, 23, 0.4)); }
    .ic-sayfa-hero-icerik h1 { font-size: 2.2rem; line-height: 1.2; }
    
    /* İstatistikler */
    .stats-wrapper { grid-template-columns: 1fr; margin: 20px 20px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
    .stat-box { border-right: none; border-bottom: 1px solid #f1f5f9; padding: 25px 20px; }
    .stat-box:last-child { border-bottom: none; }
    
    /* Ürünler */
    .products-section { padding: 60px 0; }
    .products-grid { grid-template-columns: 1fr; padding: 0 20px; }
    .section-title { font-size: 1.8rem; }
    .card-image-wrapper { height: 200px; }

    /* Tesisler */
    .tesis-list-grid { grid-template-columns: 1fr; gap: 18px; padding: 0 20px; }
    .tesis-list-visual { height: 210px; }
    .tesis-list-stats { grid-template-columns: 1fr; }
    .tesis-kart, .tesis-kart.ters { grid-template-columns: 1fr !important; }
    .tesis-kart .tesis-gorsel, .tesis-kart.ters .tesis-gorsel { min-height: 280px; order: 1; }
    .tesis-kart .tesis-yazi, .tesis-kart.ters .tesis-yazi { padding: 40px 25px; order: 2; }
    .tesis-galeri-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    
    /* Kapanış (CTA) */
    .master-cta { padding: 60px 20px; }
    .cta-content h2 { font-size: 2rem; }
    .cta-content p { font-size: 1rem; }
    
    /* Footer */
    footer .container { flex-direction: column; text-align: center; gap: 22px; }
    footer h4 { margin-bottom: 12px !important; }
    footer p, footer li, footer a { font-size: 0.9rem !important; line-height: 1.6; }
}

@media (max-width: 420px) {
    nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    nav a:not(.btn-holografik) { font-size: 10px; }
    .btn-nav { padding: 8px 14px; }
    .hero h1 { font-size: 1.7rem; }
    .ic-sayfa-hero-icerik h1 { font-size: 1.9rem; }
}