/*
Theme Name: MarketOlur v0.0.1
Theme URI: https://webolur.com
Author: MadMax
Description: Manşet yönetimi, Tema Ayarları Paneli, Kayar Kategoriler ve Popup Başarı sistemi içeren profesyonel tema.
Version: 3.0
Text Domain: WebOlur

*/

/* Yazı Okunabilirliği ve Tipografi */
body {
    font-family: 'Poppins', sans-serif;
    color: #334155; /* Slate 700 */
    -webkit-font-smoothing: antialiased;
}

/* Modern Cam Efekti (Glassmorphism) */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Slider Başlık Animasyonu */
.swiper-slide-active h2 {
    animation: fadeInUp 0.8s ease forwards;
}

.swiper-slide-active p {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern Kartlar ve Gölgeler */
.shadow-premium {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 45px -10px rgba(0, 86, 179, 0.15);
}

/* Okunabilirlik Özelleştirmesi (Prose) */
.content-area p {
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    color: #475569;
}

/* Swiper Pagination Modernize */
.swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    width: 30px;
    background: #ff7e21 !important; /* Brand Orange */
}

/* Swiper Oklarını Görünür Yap ve İkonları Getir */
.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons; /* Swiper'ın kendi ikon fontunu zorla */
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
}

.swiper-button-prev, .swiper-button-next {
    display: flex !important; /* Gizli kalmasını engelle */
    align-items: center;
    justify-content: center;
}


/* --- İçerik Alanı Tipografi Düzenlemeleri --- */
.metin-okuma-alani {
    color: #475569; /* Slate 600 - Göz yormayan ana metin rengi */
}

/* h2: Ana Başlıklar */
.metin-okuma-alani h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 800;
    color: var(--brand-blue, #0056b3); /*functions.php'den gelen renk */
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    border-left: 5px solid var(--brand-orange, #ff7e21);
    padding-left: 15px;
}

/* h3: Alt Başlıklar */
.metin-okuma-alani h3 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #1e293b; /* Slate 800 */
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* h4: Küçük Başlıklar */
.metin-okuma-alani h4 {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* p: Paragraflar */
.metin-okuma-alani p {
    font-size: 1.05rem; /* 17px */
    line-height: 1.8; /* Satır arası ferahlık */
    margin-bottom: 1.5rem;
}

/* li: Liste Elemanları */
.metin-okuma-alani ul, .metin-okuma-alani ol {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.metin-okuma-alani li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    position: relative;
}

.metin-okuma-alani ul li::before {
    content: "•";
    color: var(--brand-orange, #ff7e21);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* blockquote: Alıntılar (Örn: Kurucu Mesajı) */
.metin-okuma-alani blockquote {
    background: #f8fafc; /* Çok açık gri mavi */
    border-left: 4px solid var(--brand-blue, #0056b3);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 1.5rem 1.5rem 0;
    position: relative;
}

.metin-okuma-alani blockquote p {
    font-style: italic;
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 0;
    line-height: 1.6;
}

.metin-okuma-alani blockquote::after {
    content: "\f6b0"; /* Remixicon tırnak işareti */
    font-family: 'remixicon';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 3rem;
    color: var(--brand-blue, #0056b3);
    opacity: 0.05;
}
/* Masaüstü: Alt menüyü tek sütun ve dikey yap */
.nav-menu ul li { position: relative; }

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px; /* Genişliği sabitledik */
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    
    /* SÜTUNLARI İPTAL EDEN KRİTİK KISIM */
    display: flex !important; 
    flex-direction: column !important; /* Her şeyi alt alta dizer */
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s all;
    z-index: 999;
}

/* Mouse ile üzerine gelince aç */
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menü linklerini düzelt */
.nav-menu .sub-menu li {
    width: 100%; /* Sütun falan kalmasın, satırı kaplasın */
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #334155;
    font-size: 14px;
    text-align: left; /* Metni sola yasla */
    white-space: nowrap; /* Yazı aşağı kaymasın */
}

.nav-menu .sub-menu li a:hover {
    background: #f8fbff;
    color: #0056b3;
}

/* Sayfalama Kapsayıcısı */
ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem; /* Tailwind: gap-4 */
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Numaralar (Linkler ve Aktif Sayfa) için Ortak Stil */
/* Not: .next ve .prev haricindekileri hedefliyoruz çünkü onlara PHP'de zaten stil verdik */
ul.page-numbers li > span.page-numbers,
ul.page-numbers li > a.page-numbers:not(.next):not(.prev) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;  /* Tailwind: w-12 */
    height: 3rem; /* Tailwind: h-12 */
    border-radius: 9999px; /* Tailwind: rounded-full */
    background-color: #ffffff; /* bg-white */
    color: #1e293b; /* text-joy-dark (Örn: slate-800) */
    font-weight: 900; /* font-black */
    font-size: 1.125rem; /* text-lg */
    text-decoration: none;
    
    /* Gölgelendirme (shadow-lg benzeri) */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #f8fafc; /* border-slate-50 */
    
    transition: all 0.3s ease;
}

/* Numaraların Hover Durumu */
ul.page-numbers li > a.page-numbers:not(.next):not(.prev):hover {
    background-color: #3b82f6; /* hover:bg-joy-blue (Mavinin kodunu buraya gir) */
    color: #ffffff; /* hover:text-white */
    transform: translateY(-2px); /* Hafif yukarı zıplama efekti */
}

/* Aktif Sayfa (Current) Durumu */
ul.page-numbers li > span.page-numbers.current {
    background-color: #3b82f6; /* bg-joy-blue */
    color: #ffffff;
    cursor: default;
    transform: scale(1.1); /* Aktif sayfa biraz daha büyük dursun */
}

/* İleri ve Geri Butonları için Düzenleme */
/* PHP tarafında içine zaten stil verdiğimiz için dışındaki <a href> etiketini nötrliyoruz */
ul.page-numbers li > a.next,
ul.page-numbers li > a.prev {
    display: block;
    text-decoration: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}


/* Fiyat Alanı Düzenlemesi */
.v3-price {
    display: flex;
    align-items: baseline; /* Hizalama */
    gap: 8px; /* Fiyatlar arası boşluk */
    flex-wrap: wrap;
}

/* Eski Fiyat (Üstü Çizili) */
.v3-price del {
    font-size: 0.85rem !important; /* Daha küçük */
    color: #9ca3af !important;      /* Soluk gri (Slate 400) */
    font-weight: 500 !important;
    text-decoration: line-through;
    opacity: 0.8;
}

/* Yeni Fiyat (İndirimli) */
.v3-price ins {
    font-size: 1.15rem !important;  /* Daha büyük */
    color: #ea580c !important;      /* Turuncu (Orange 600) */
    font-weight: 800 !important;
    text-decoration: none;
}
/* İndirim yoksa tek fiyat */
.v3-price > .amount {
     font-size: 1.15rem !important;
     color: #ea580c !important;
     font-weight: 800 !important;
}