/*
Theme Name: WebOlur Nova v0.0.1
Theme URI: https://webolur.com
Author: Furkan Tunahan
Author URI: https://furkantunahan.com
Description: Manşet yönetimi, Tema Ayarları Paneli, Kayar Kategoriler ve Popup Başarı sistemi içeren profesyonel tema.
Version: v.0.0.1
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;
}

/* Webolur Pro Reading Area Styles */

.prose {
    max-width: 100%;
    color: #4b5563; /* slate-600 */
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Başlıklar: İtalik ve Black vuruşu */
.prose h1, .prose h2, .prose h3, .prose h4 {
    color: #2d3436; /* joy-dark */
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.025em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.prose h2 { font-size: 1.75rem; border-left: 6px solid #FF8E9E; padding-left: 15px; } /* joy-pink */
.prose h3 { font-size: 1.5rem; color: #6FB2FF; } /* joy-blue */

/* Paragraflar ve Vurgular */
.prose p {
    margin-bottom: 1.25em;
}

.prose strong {
    color: #2d3436;
    font-weight: 800;
}

/* Listeler: Renkli ikonlar */
.prose ul {
    list-style: none;
    padding-left: 0;
}

.prose ul li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.75em;
}

.prose ul li::before {
    content: "\eb7d"; /* remixicon ri-checkbox-blank-circle-fill */
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    color: #FF8E9E; /* joy-pink */
    font-size: 0.6em;
    top: 50%;
    transform: translateY(-50%);
}

/* Alıntılar (Blockquote) */
.prose blockquote {
    background: #FFFBF5; /* joy-bg */
    border-left: 5px solid #6FB2FF; /* joy-blue */
    padding: 1.5rem;
    font-style: italic;
    border-radius: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.prose blockquote p {
    margin-bottom: 0;
    color: #2d3436;
    font-weight: 600;
}

/* Linkler */
.prose a {
    color: #6FB2FF;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid rgba(111, 178, 255, 0.2);
    transition: all 0.3s ease;
}

.prose a:hover {
    color: #FF8E9E;
    border-bottom-color: #FF8E9E;
}

/* Görseller */
.prose img {
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 2rem 0;
}


/* Mobil Panel Link Düzeni */
#mobile-panel #mobile-menu-list li {
    position: relative;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

#mobile-panel #mobile-menu-list li a {
    display: block;
    padding: 12px 50px 12px 0; /* Sağdan ok için yer bırakıyoruz */
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.3s;
}

/* Alt Menü (Sub-menu) Modernizasyonu */
#mobile-panel .sub-menu {
    display: none !important;
    background: #f8fafc !important; /* Hafif gri arka plan */
    border-radius: 1rem;
    margin-bottom: 10px;
    padding: 5px 15px !important;
    list-style: none !important;
}

/* Aktifken göster */
#mobile-panel .menu-item-has-children.acik-menu > .sub-menu {
    display: block !important;
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alt menü linkleri biraz daha ince ve sade */
#mobile-panel .sub-menu li a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #64748b !important;
    padding: 8px 0 !important;
}

/* Ok Butonu Efekti */
.dropdown-toggle:active {
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
}