/* Genel Stil Ayarları */
body {
    font-family: 'Nunito', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* ===== NAVBAR SEARCH ===== */
.navbar-search {
    position: relative;
}

.navbar-search .search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 34px;
    min-height: 34px;
    transition: width 0.35s ease;
}

.navbar-search .search-wrapper.search-active {
    width: 180px;
    max-width: 180px;
}

.navbar-search .form-control {
    width: 0;
    padding: 0;
    border: 0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8fafc;
    opacity: 0;
    pointer-events: none;
}

.navbar-search .search-wrapper.search-active .form-control {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: 2px solid #e5e7eb;
    opacity: 1;
    pointer-events: auto;
}

.navbar-search .search-wrapper.search-active .form-control:focus {
    width: 100%;
    border-color: #0A2463;
    box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.12);
    background: white;
}

.navbar-search .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient, linear-gradient(135deg, #0A2463 0%, #1E4D8C 100%));
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    font-size: 11px;
}

.navbar-search .search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 350px;
    max-height: 450px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    display: none;
    margin-top: 10px;
}

.search-results-dropdown.show {
    display: block;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #6b7280;
}

.search-section {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.search-section:last-of-type {
    border-bottom: none;
}

.search-section-title {
    padding: 8px 15px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-section-title i {
    margin-right: 8px;
    color: #0A2463;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: #f8fafc;
    color: #0A2463;
}

.search-result-item .result-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.search-result-item .result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-item .result-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 18px;
}

.search-result-item .result-info {
    flex: 1;
    min-width: 0;
}

.search-result-item .result-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-item .result-meta {
    display: block;
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 30px;
    text-align: center;
    color: #6b7280;
}

.search-no-results i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.search-view-all {
    padding: 12px 15px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.search-view-all a {
    color: #0A2463;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.search-view-all a:hover {
    text-decoration: underline;
}

.search-error {
    padding: 20px;
    text-align: center;
    color: #dc2626;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1055;
    display: none;
}

.search-overlay.show {
    display: block;
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 14px;
    font-weight: 600;
}

.language-switcher .lang-item {
    color: #6b7280;
    text-decoration: none;
    padding: 5px 8px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.language-switcher .lang-item:hover {
    color: #0A2463;
}

.language-switcher .lang-item.active {
    color: #111827;
    font-weight: 800;
}

.language-switcher .lang-separator {
    color: #d1d5db;
    font-weight: 400;
}

.language-switcher .lang-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.language-switcher .lang-flag-emoji {
    font-size: 18px;
    line-height: 1;
}

/* Yardımcı sınıflar */
.text-gradient {
    background: linear-gradient(135deg, #0A2463 0%, #1E4D8C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #0A2463 0%, #1E4D8C 100%);
}

.shadow-sm-hover:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-brand .navbar-logo {
        max-height: 38px;
    }
    
    .navbar-search {
        margin: 15px 0;
        width: 100%;
    }
    
    .navbar-search .search-wrapper {
        width: 42px;
    }

    .navbar-search .search-wrapper.search-active {
        width: 100%;
    }
    
    .search-results-dropdown {
        min-width: 100%;
        position: fixed;
        left: 15px;
        right: 15px;
        top: auto;
        margin-top: 5px;
    }
    
    .language-switcher {
        margin: 15px 0;
        justify-content: center;
    }
    
    /* Slogan Banner Responsive */
    .slogan-banner-text {
        font-size: 16px !important;
        letter-spacing: 6px !important;
        padding: 0 15px;
    }
}

/* ===== SLOGAN BANNER SECTION ===== */
.slogan-banner-section {
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.slogan-banner-text {
    font-family: 'Nunito', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-spacing: 5px;
}

/* Typography normalization: keep overall weight near normal */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

strong, b {
    font-weight: 600;
}

/* Override heavy theme headings to medium weight */
.hero-caption-modern .slide-title,
.hero-caption-modern .slide-description,
.hero-caption-modern .slide-kicker,
.premium-stats-section h2,
.premium-stats-section p,
.premium-features-section h2,
.premium-features-section p,
.certifications-section h2,
.certifications-section p,
.product-showcase-3d h2,
.product-showcase-3d p,
.testimonials-premium h2,
.testimonials-premium p,
.partners-section h2,
.partners-section p,
.blog-timeline h2,
.blog-timeline p,
.premium-cta-section .cta-title,
.premium-cta-section .cta-subtitle,
.premium-category-card .premium-category-title,
.ultra-product-card .ultra-product-title,
.feature-premium-title,
.feature-premium-text,
.certification-title,
.certification-text,
.testimonial-card-premium .testimonial-text,
.testimonial-card-premium .testimonial-author,
.testimonial-card-premium .testimonial-position {
    font-weight: 600 !important;
}

@media (max-width: 576px) {
    .slogan-banner-text {
        font-size: 14px !important;
        letter-spacing: 4px !important;
    }
}
