/* ========================================
   MAGISAN WEBSITE CSS STYLES
   ======================================== */

/* Google Fonts - Sitenin kullandığı fontlar */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Roboto:wght@300;400;500;700&family=Baloo+2:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&display=swap');

/* CSS Değişkenleri - Renkler ve fontlar için merkezi tanımlar */
:root {
    --primary-color: #9B2335; /* Bordo kırmızı - daha canlı ana renk */
    --secondary-color: #5D4037; /* Kahverengi */
    --accent-color: #F9A825; /* Altın sarısı - canlı vurgu rengi */
    --dark-color: #0F2557; /* Tüm site için ana mavi */
    --light-color: #F0F4FF; /* Açık mavi */
    --body-bg: #F0F4FF; /* Açık mavi arka plan */
    --hero-bg: #0F2557; /* Tüm site için ana mavi */
    --hero-border: #3B82F6; /* Parlak mavi - modern border rengi */
    --magisan-highlight: #3B82F6; /* Magisan vurgusu için mavi renk */
    
    /* Font ailesi değişkenleri */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Genel Sayfa Stilleri */
body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: #333;
    background-color: var(--body-bg);
}

/* Başlık Stilleri */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
}

/* ========================================
   HEADER VE NAVBAR STİLLERİ
   ======================================== */
header {
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    background-color: var(--dark-color);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 800;
    letter-spacing: 1px;
}

/* Menü Link Stilleri */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95); /* Daha parlak beyaz */
    font-weight: 600; /* Daha kalın font */
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Metin gölgesi ekleyerek okunabilirliği artırıyorum */
    letter-spacing: 0.5px; /* Harfler arası mesafeyi artırıyorum */
    font-family: var(--heading-font);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color); /* Altın sarısı - menü öğeleri için vurgu rengi */
}

/* Masaüstü Menü Görünümü */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        justify-content: flex-end;
    }
    
    .navbar-toggler {
        display: none;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-item {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .navbar-nav .nav-link {
        position: relative;
    }
    
    /* Menü altı çizgi animasyonu */
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background-color: var(--accent-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }
}

/* Mobil Menü Görünümü */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark-color);
        padding: 15px;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    
    .navbar-toggler {
        border-color: var(--accent-color);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(249, 168, 37, 0.5);
    }
}

/* ========================================
   HERO SECTION (ANA SAYFA ÜST BÖLÜM)
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--hero-bg), var(--hero-border)) !important;
    position: relative;
    border-bottom: 4px solid var(--hero-border);
    color: #fff;
    padding: 80px 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Sağ taraf resim alanı - arka plan resim geçişi */
.hero-image-placeholder {
    height: 400px;
    width: 800px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
}

.hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image-placeholder::before {
    display: none;
}

/* Ana sayfa başlığı için özel font ve stil */
.hero h1 {
    font-family: 'Merriweather', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    margin-bottom: 24px;
}

/* ========================================
   ÜRÜN KARTLARI STİLLERİ
   ======================================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-bottom: 3px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px); /* Kartı yukarı hareket ettir */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-title {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-weight: 700;
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Testimonial Kartları */
.testimonials .card {
    border-radius: 10px;
}

/* ========================================
   FOOTER STİLLERİ
   ======================================== */
footer {
    background-color: var(--dark-color);
    border-top: 4px solid var(--accent-color);
}

footer h5 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: 0.5px;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Footer sosyal medya ikonları */
.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Sosyal medya ikonları için hover efekti - renk değişikliği yok */
.social-icons a:hover i {
    transform: scale(1.2);
}

/* ========================================
   RESPONSIVE TASARIM AYARLARI
   ======================================== */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero img {
        margin-top: 30px;
    }
    
    .about-preview {
        text-align: center;
    }
    
    .about-preview img {
        margin-bottom: 20px;
    }
    
    .carousel-item {
        height: 300px;
    }
}

/* ========================================
   ÜRÜNLER SAYFASI STİLLERİ
   ======================================== */
.product-category {
    padding: 80px 0;
}

.product-category h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Başlık altı çizgi */
.product-category h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
}

.product-item {
    margin-bottom: 40px;
}

/* Ürün Kategorileri Filtreleme */
.product-filter {
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.category-btn {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    background: none;
    border: none;
    padding: 10px 5px;
    cursor: pointer;
    position: relative;
    font-family: var(--heading-font);
}

/* Kategori buton altı çizgi animasyonu */
.category-btn::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-btn:hover {
    color: var(--primary-color);
}

.category-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.category-btn.active::after {
    transform: scaleX(1);
}

/* Mobil için kategori butonları */
@media (max-width: 768px) {
    .category-buttons {
        gap: 20px;
    }

    .category-btn {
        font-size: 1rem;
        padding: 8px 4px;
    }
}

/* ========================================
   İLETİŞİM SAYFASI STİLLERİ
   ======================================== */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.contact-form h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
}

.contact-info h3, .contact-info h5 {
    font-family: var(--heading-font);
    font-weight: 700;
}

/* Harita konteyner stilini ekle */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.map-container iframe {
    display: block;
}

/* Yol tarifi butonu için stil */
.btn-outline-primary {
    border-color: #1E3A8A;
    color: #1E3A8A;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #1E3A8A;
    color: white;
}

/* İletişim sayfası için özel stil */
.contact-info .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E3A8A;
}

.contact-info .contact-item:hover .icon-box {
    background-color: #1E3A8A;
    color: white;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f4ff;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #1E3A8A;
    transform: translateY(-3px);
}

.social-icons a:hover i {
    color: white !important;
}

/* Animasyonlar */
.btn {
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Özel Butonlar */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #7D1C2D; /* Biraz daha koyu bordo */
    border-color: #7D1C2D;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light {
    font-weight: 600;
    border-width: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-color: var(--accent-color);
}

/* Magisan vurgusu için özel stil */
.magisan-highlight {
    color: var(--magisan-highlight);
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Baloo 2', cursive;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--magisan-highlight);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Page Header - Diğer sayfalardaki başlık bölümü */
.page-header {
    padding: 80px 0;
    background: var(--dark-color);
    color: #fff;
    border-bottom: 4px solid var(--hero-border);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
    font-weight: 500;
} 

/* Ürün detay sayfası stilleri */
.category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #1E3A8A;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Dil seçenekleri için stiller */
.language-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.language-switcher {
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 3px;
}

.language-switcher:hover {
    color: #1E3A8A;
    background-color: rgba(30, 58, 138, 0.1);
}

.language-switcher.active {
    color: #fff;
    background-color: #1E3A8A;
}

/* SEO için sayfa yükleme göstergesi */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(30, 58, 138, 0.2);
    border-top-color: #1E3A8A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Magisan vurgu rengi */
.magisan-highlight {
    color: #3B82F6;
    font-weight: 700;
}

/* Ana menü iyileştirmeleri */
.navbar {
    background-color: #1E3A8A;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    padding: 0.25rem 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 1rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Breadcrumb iyileştirmeleri */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Sayfa başlığı iyileştirmeleri */
.page-header {
    background: linear-gradient(135deg, var(--hero-bg), var(--hero-border));
    color: white;
    border-bottom: 4px solid var(--hero-border);
}

.page-header h1 {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Mobil cihazlar için iyileştirmeler */
@media (max-width: 767.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .language-options {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Print medya sorgusu */
@media print {
    .navbar,
    .footer,
    .cta-section,
    .social-media,
    .map-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background-color: #fff;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .contact-info h2,
    .departments h2 {
        font-size: 18pt;
        margin-bottom: 1cm;
    }
    
    .contact-item {
        margin-bottom: 0.5cm;
    }
}

/* Yapısal veri işaretlemesi için stil iyileştirmeleri */
.contact-info .contact-item .icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
}

.contact-info .contact-item .icon-box i {
    font-size: 1.25rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #1E3A8A;
}

.social-icons a:hover i {
    color: #fff !important;
}

/* ========================================
   GENEL BUTON STİLLERİ
   ======================================== */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-text {
    flex-grow: 1;
}

.card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ========================================
   ERİŞİLEBİLİRLİK İYİLEŞTİRMELERİ
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus iyileştirmeleri */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #1E3A8A;
    outline-offset: 2px;
} 

/* ========================================
   MAGISAN VURGUSU STİLLERİ
   ======================================== */
.magisan-highlight {
    color: var(--magisan-highlight);
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.5px;
    font-size: 1.1em;
    display: inline-block;
    padding: 0 2px;
} 

/* ========================================
   ÜRÜN DETAY SAYFASI STİLLERİ
   ======================================== */

/* Ürün resim container'ı */
.product-image-container {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: none;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background: none;
}

/* ========================================
   RESPONSIVE ÜRÜN DETAY AYARLARI
   ======================================== */
/* Mobil için resim boyutları */
@media (max-width: 768px) {
    .product-image-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .product-image-container img {
        min-height: 300px;
        max-height: 500px;
    }
}

/* Tablet için resim boyutları */
@media (min-width: 769px) and (max-width: 1024px) {
    .product-image-container img {
        min-height: 350px;
        max-height: 600px;
    }
}

/* Büyük ekranlar için resim boyutları */
@media (min-width: 1025px) {
    .product-image-container img {
        min-height: 500px;
        max-height: 900px;
    }
} 

/* Ürün kartı detay butonu (ana sayfa) */
.card .btn-outline-primary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.card .btn-outline-primary:hover, .card .btn-outline-primary:focus {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(155,35,53,0.10);
}

/* Ürünlerimiz sayfasındaki butonlar için de aynı stil */
.btn-outline-primary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(155,35,53,0.10);
} 

 