/* =====================================================
   EREN TRANSFORMER — Custom CSS (Bootstrap 5 Override)
   =====================================================
   Bu dosya, proje genelindeki tüm custom stilleri barındırır.
   Bootstrap 5 üzerine yazılmıştır. Inline style'lar buraya taşınmıştır.
   ===================================================== */

/* ===== CSS VARIABLES ===== */
:root {
    --eren-red: #D32F2F;
    --eren-dark: #1a1a1a;
    --eren-red-hover: #b71c1c;
    --header-h: 85px;
    --drop-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.auto-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 12px;
}
.tracking-wider { letter-spacing: 0.1em; }
.rounded-5 { border-radius: 2.5rem !important; }
.x-small { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }

/* Hover lift effect */
.hover-lift { transition: all 0.3s ease; }
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* ===== PAGE WRAPPER ===== */
html, body { height: auto !important; overflow: visible !important; }
.page-wrapper, .page-content { overflow: visible !important; }
.content { flex-grow: 1; }

/* Article images */
.article-content img, .page-content-inner img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


/* ============================================================
   HEADER
   ============================================================ */

/* Kaydırınca küçülen header efekti */
.header-scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

/* Kırmızı Logo Kutusu */
.eren-logo-box {
    position: absolute; top: 0; left: 50px;
    background: var(--eren-red);
    width: 200px; height: 115px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(211,47,47,0.25);
    z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-scrolled .eren-logo-box {
    height: 95px; width: 180px; left: 40px;
}
.eren-logo-box img {
    max-width: 100%; max-height: 65px; object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}
.header-scrolled .eren-logo-box img { max-height: 50px; }

/* DESKTOP NAV */
.eren-navbar-wrap {
    margin-left: 280px;
    display: flex; align-items: center; justify-content: space-between;
    width: calc(100% - 310px); height: 100%;
}
.eren-nav {
    display: flex; list-style: none; margin: 0; padding: 0; gap: 5px;
}
.eren-nav > li > a {
    color: var(--eren-dark); font-weight: 600; font-size: 14px;
    padding: 0 12px; line-height: var(--header-h);
    text-decoration: none; display: flex; align-items: center; gap: 6px;
    white-space: nowrap; transition: all 0.4s ease;
}
.header-scrolled .eren-nav > li > a { line-height: 70px; }
.eren-nav > li:hover > a { color: var(--eren-red); }

/* DROPDOWN */
.dropdown-toggle::after { display: none !important; }
.dropdown-menu {
    border: none; border-top: 4px solid var(--eren-red);
    box-shadow: var(--drop-shadow); border-radius: 0 0 12px 12px;
    padding: 10px 0; min-width: 250px;
}
.dropdown-menu.lang-menu { min-width: 140px; }
@media (min-width: 992px) {
    .eren-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
.dropdown-item {
    font-size: 14px; font-weight: 500; padding: 10px 22px; transition: 0.2s;
}
.dropdown-item:hover {
    background: #f8f9fa; color: var(--eren-red); padding-left: 28px;
}

/* SAĞ AKSİYONLAR */
.eren-right { display: flex; align-items: center; gap: 14px; }
.eren-icon {
    font-size: 22px; color: var(--eren-dark); text-decoration: none; transition: 0.2s;
}
.eren-icon:hover { color: var(--eren-red); transform: translateY(-2px); }

/* BAYRAKLAR */
.lang-flag {
    width: 22px; height: 15px; display: inline-block; border-radius: 2px;
    margin-right: 6px; vertical-align: middle; object-fit: cover;
}
.lang-flag.css-flag { background-size: cover; }
.flag-tr.css-flag { background-image: url('https://flagcdn.com/w20/tr.png'); }
.flag-en.css-flag { background-image: url('https://flagcdn.com/w20/gb.png'); }
.flag-fr.css-flag { background-image: url('https://flagcdn.com/w20/fr.png'); }
.flag-de.css-flag { background-image: url('https://flagcdn.com/w20/de.png'); }

/* OFFCANVAS MOBİL */
.eren-offcanvas { width: 340px !important; }
.eren-mobile-list .accordion-button {
    font-weight: 600; padding: 15px 20px; background-color: transparent;
    border-bottom: 1px solid #eee;
}
.eren-mobile-list .accordion-button:not(.collapsed) {
    color: var(--eren-red); background: #f8f9fa;
}
.eren-mobile-list .accordion-button:focus { box-shadow: none; }
.eren-submenu-link {
    background: #fcfcfc !important; font-size: 13.5px !important;
    padding: 10px 45px !important; color: #666 !important;
    border: 0 !important; display: block; text-decoration: none;
}
.eren-submenu-link:hover {
    background: #f8f9fa !important; color: var(--eren-red) !important;
}
.social-mobile-icon {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}
.social-mobile-icon:hover {
    transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Accordion İkon ve Dönme Animasyonu */
.accordion-button::after { display: none !important; }
.accordion-button > i { transition: transform 0.3s ease; }
.accordion-button:not(.collapsed) > i { transform: rotate(180deg); }

/* R&D Link */
.eren-rnd-link {
    font-weight: 600; padding: 15px 20px; border-bottom: 1px solid #eee;
    cursor: pointer; color: var(--eren-dark); text-decoration: none; display: block;
}
.eren-rnd-link:hover { background: #f8f9fa; color: var(--eren-red); }

/* Seçili dil */
.lang-btn.active {
    background-color: var(--eren-red) !important;
    color: white !important;
    border-color: var(--eren-red) !important;
}

/* RESPONSIVE HEADER */
@media (max-width: 1200px) {
    .eren-logo-box { width: 160px; height: 100px; left: 20px; }
    .eren-navbar-wrap { margin-left: 200px; width: calc(100% - 220px); }
}
@media (max-width: 991.98px) {
    .eren-header { height: 75px; }
    .eren-logo-box { width: 140px; height: 95px; left: 15px; padding: 12px; }
    .eren-logo-box img { max-height: 45px; }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer-global { background-color: #bb2121 !important; }

/* Evrensel İletişim Pill Yapısı */
.contact-pill {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none; transition: 0.3s;
    font-size: 0.85rem; font-weight: 500;
}
.contact-pill i { font-size: 1.2rem; opacity: 0.7; }
.contact-pill:hover { opacity: 0.8; transform: translateY(-2px); }

/* Sosyal Medya */
.social-glass {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.social-glass:hover { background: #fff; color: #bb2121; transform: scale(1.1); }

/* Menü Linkleri */
.footer-global-links li { margin-bottom: 7px; }
.footer-global-links a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.8rem; transition: 0.2s;
}
.footer-global-links a:hover { color: #fff; padding-left: 3px; }


/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
#scrollToTop {
    transition: all 0.3s ease;
    bottom: 30px; right: 30px; border: none;
}
#scrollToTop.footer-active {
    background-color: #fff !important;
    color: #bb2121 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
#scrollToTop.footer-active i { color: #bb2121 !important; }


/* ============================================================
   PAGE TITLE / BANNER SECTION (Genel)
   ============================================================ */
.page-title-section {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-title-section::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.page-title-section .auto-container { position: relative; z-index: 1; }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-form-card { border-color: rgba(0,0,0,0.05) !important; }
.contact-form-card .form-control:focus {
    border-color: var(--eren-red) !important;
    box-shadow: 0 5px 15px rgba(211,47,47,0.1) !important;
}
.info-pill-item:hover { border-color: var(--eren-red) !important; }
.map-section iframe { width: 100% !important; height: 100% !important; border: none; }


/* ============================================================
   SEARCH PAGE
   ============================================================ */

/* Page Banner */
.search-page-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 70px 0 50px;
    position: relative; overflow: hidden;
}
.search-page-banner::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0;
    width: 40%;
    background: linear-gradient(135deg, transparent, rgba(211,47,47,0.12));
}
.search-page-banner h1 {
    color: white; font-size: clamp(22px, 4vw, 36px);
    font-weight: 700; margin-bottom: 8px;
}
.search-page-banner .breadcrumb-wrap {
    display: flex; gap: 8px; align-items: center;
    font-size: 14px; color: rgba(255,255,255,0.5);
    margin-top: 10px; list-style: none; padding: 0;
}
.search-page-banner .breadcrumb-wrap a {
    color: rgba(255,255,255,0.6); text-decoration: none;
}
.search-page-banner .breadcrumb-wrap a:hover { color: var(--eren-red); }
.search-page-banner .breadcrumb-wrap li::before { content: '/'; opacity: 0.4; }
.search-page-banner .breadcrumb-wrap li:first-child::before { display: none; }

/* Search Input */
.search-input-wrap {
    background: white; border-radius: 0;
    padding: 24px 0; border-bottom: 1px solid #eee;
}
.search-input-wrap form {
    display: flex; align-items: center; max-width: 760px;
    border: 2px solid var(--eren-red); overflow: hidden; background: white;
}
.search-input-wrap input[type="text"] {
    flex: 1; border: none; outline: none;
    padding: 14px 20px; font-size: 16px; color: #333;
}
.search-input-wrap button {
    background: var(--eren-red); color: white; border: none;
    padding: 0 26px; height: 52px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
    display: flex; align-items: center; gap: 8px;
}
.search-input-wrap button:hover { background: var(--eren-red-hover); }

/* Results */
.search-result-section {
    padding: 50px 0 80px; background: #f9f9f9; min-height: 400px;
}
.result-count {
    font-size: 14px; color: #888; margin-bottom: 24px;
    border-bottom: 1px solid #eee; padding-bottom: 14px;
}
.result-count strong { color: var(--eren-red); }
.search-category-title {
    color: var(--eren-red);
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.result-card {
    background: white; padding: 24px 28px; margin-bottom: 12px;
    border-left: 4px solid transparent; transition: all 0.2s ease;
    text-decoration: none; display: block; color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.result-card:hover {
    border-left-color: var(--eren-red);
    box-shadow: 0 4px 20px rgba(211,47,47,0.1);
    transform: translateX(4px); color: inherit; text-decoration: none;
}
.result-card .result-title {
    font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px;
}
.result-card:hover .result-title { color: var(--eren-red); }
.result-card .result-url {
    font-size: 12px; color: var(--eren-red); margin-bottom: 8px; font-weight: 500;
}
.result-card .result-summary { font-size: 14px; color: #666; line-height: 1.7; }
.result-card mark {
    background: #ffeb3b; padding: 1px 3px;
    border-radius: 2px; font-weight: 700; color: #333;
}

/* No Result */
.no-result-box { text-align: center; padding: 80px 20px; }
.no-result-box i { font-size: 60px; color: #ddd; margin-bottom: 20px; }
.no-result-box h3 { font-size: 22px; font-weight: 600; color: #555; }
.no-result-box p { color: #999; font-size: 15px; }
