/*
Theme Name: Ficzee Tema
Theme URI: https://ficzee.com/
Author: Ficzee Team
Author URI: https://ficzee.com/
Description: Ficzee Dijital Ajans için özel olarak hazırlanmış WordPress teması.
Version: 1.2
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-theme, responsive-layout, modern-design
Text Domain: ficzee
*/

/* ==========================================================================
   Temel Stiller
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
}
.hero-bg {
    background-size: cover;
    background-position: center;
}
.service-card:hover {
    transform: translateY(-5px);
}
.project-card:hover .project-overlay {
    opacity: 1;
}
input:focus, textarea:focus {
    outline: none;
    border-color: #5680E9;
}

/* ==========================================================================
   WordPress Admin Çubuğu Uyumluluk Düzeltmesi
   ========================================================================== */
body.admin-bar .ficzee-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .ficzee-header {
        top: 46px;
    }
}

/* ==========================================================================
   Dinamik Menü Link Animasyonları (Karanlık Mod Uyumlu)
   ========================================================================== */
.ficzee-header nav ul li a {
    position: relative;
    text-decoration: none;
    padding-bottom: 6px;
    color: #1f2937; /* Aydınlık Mod Rengi */
    transition: color 0.3s ease-in-out;
}
html.dark .ficzee-header nav ul li a {
    color: #d1d5db; /* Karanlık Mod Rengi */
}
.ficzee-header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #5680E9;
    transition: width 0.3s ease-in-out;
}
html.dark .ficzee-header nav ul li a::after {
    background-color: #84CEEB;
}
.ficzee-header nav ul li a:hover {
    color: #5680E9;
}
html.dark .ficzee-header nav ul li a:hover {
    color: #ffffff;
}
.ficzee-header nav ul li.current-menu-item > a {
     color: #5680E9;
}
html.dark .ficzee-header nav ul li.current-menu-item > a {
    color: #ffffff;
}
.ficzee-header nav ul li a:hover::after,
.ficzee-header nav ul li.current-menu-item > a::after {
    width: 100%;
}

/* ==========================================================================
   Genel Buton Animasyon Sistemi (.ficzee-btn)
   ========================================================================== */

/* Tüm animasyonlu butonlar için temel yapı ve geçişler */
.ficzee-btn {
    position: relative;
    overflow: hidden; /* İçerideki metinlerin kayarken görünmemesi için */
    -webkit-backface-visibility: hidden; /* Safari'de titreme sorununu önler */
    backface-visibility: hidden;
    transition: all 0.2s ease-in-out;
}

/* Tüm animasyonlu butonlar için ortak hover efekti: Havalanma ve şekil değiştirme */
.ficzee-btn:hover {
    transform: translateY(-2px);
    border-radius: 9999px; /* Kapsül şekli */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Metin kaydırma animasyonu için gereken span'ların temel stilleri */
.ficzee-btn .default-text,
.ficzee-btn .hover-text {
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ficzee-btn .hover-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(150%); /* Başlangıçta altta gizli */
}

/* Butonun üzerine gelince metinleri kaydır */
.ficzee-btn:hover .default-text {
    transform: translateY(-150%); /* Eski metni yukarı kaydır */
}
.ficzee-btn:hover .hover-text {
    transform: translateY(0); /* Yeni metni alttan ortaya getir */
}

/* ==========================================================================
   Proje Filtre Butonları Stilleri
   ========================================================================== */
.filter-btn {
    background-color: #e5e7eb;
    color: #374151;
    transition: all 0.2s ease-in-out;
}
.filter-btn:hover {
    background-color: #d1d5db;
}
html.dark .filter-btn {
    background-color: #374151;
    color: #d1d5db;
}
html.dark .filter-btn:hover {
    background-color: #4b5563;
}
.filter-btn.active {
    background-color: #8860D0;
    color: #ffffff;
}
html.dark .filter-btn.active {
    background-color: #8860D0;
    color: #ffffff;
}

/* ==========================================================================
   Blog Sayfa Numaralandırma (Pagination) Stilleri
   ========================================================================== */
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}
.pagination .page-numbers:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}
.pagination .page-numbers.current {
    background-color: #5680E9;
    color: #ffffff;
    border-color: #5680E9;
}
html.dark .pagination .page-numbers {
    color: #d1d5db;
    border-color: #4b5563;
}
html.dark .pagination .page-numbers:hover {
    background-color: #374151;
    color: #f9fafb;
    border-color: #6b7280;
}
html.dark .pagination .page-numbers.current {
    background-color: #8860D0;
    color: #ffffff;
    border-color: #8860D0;
}

/* ==========================================================================
   Sabit Header için İçerik Boşluğu
   ========================================================================== */
main.site-main {
    padding-top: 80px; 
}

/* ==========================================================================
   Hizmet Kartı - Zarif Vurgu Animasyonu
   ========================================================================== */

/* Animasyonun yumuşak olması için tüm elementlere geçiş efekti veriyoruz */
.service-card .icon-container,
.service-card .icon-container i {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Fare kartın üzerine geldiğinde olacaklar */
.service-card:hover .icon-container {
    /* İkon dairesini ana renge boyayıp hafifçe yukarı kaldırıyoruz */
    transform: translateY(-10px);
    background-color: #5680E9; /* primary renk */
    box-shadow: 0 15px 25px -5px rgba(86, 128, 233, 0.4); /* Vurgu gölgesi */
}

/* Koyu modda, dairenin arkaplanı ikincil renk olsun */
html.dark .service-card:hover .icon-container {
    background-color: #8860D0; /* secondary renk */
    box-shadow: 0 15px 25px -5px rgba(136, 96, 208, 0.4);
}

/* Arka plan renk değiştirdiği için, ikonun rengini de beyaza çeviriyoruz */
.service-card:hover .icon-container i {
    color: #ffffff !important;
    transform: scale(1.1); /* İkonu hafifçe büyütüyoruz */
}

/* ==========================================================================
   Hizmet Kartı - Detaylı Bilgi Link Animasyonu (Kesin Çözüm)
   ========================================================================== */

/* Animasyon için link etiketini doğrudan hedefliyoruz ve hazırlıyoruz. */
.service-card a {
    position: relative; /* Alt çizgi (::after) için bu gereklidir. */
    text-decoration: none;
    padding-bottom: 4px; /* Çizgi ile metin arasında boşluk yaratır */
}

/* Animasyonlu alt çizgiyi oluşturuyoruz */
.service-card a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #5680E9; /* primary renk */
    
    /* Animasyonun başlangıç durumu: Görünmez */
    transform: scaleX(0); 
    
    /* Animasyonun soldan sağa doğru başlamasını sağlar */
    transform-origin: left;
    
    /* Animasyonun hızını ve yumuşaklığını ayarlar */
    transition: transform 0.35s ease-in-out;
}

/* Koyu modda çizgi rengi */
html.dark .service-card a::after {
    background-color: #8860D0; /* secondary renk */
}

/* Fare linkin üzerine geldiğinde alt çizgi görünür olur */
.service-card a:hover::after {
    /* Genişliği %100'e çıkarak görünür hale gelir */
    transform: scaleX(1); 
}

/* Ok ikonu animasyonu */
.service-card a i {
    transition: transform 0.3s ease-in-out;
}

.service-card a:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Müşteri Yorumları Kart Animasyonu
   ========================================================================== */

.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Arka plandaki dekoratif tırnak ikonu */
.testimonial-card .quote-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem; /* İkonun boyutu */
    line-height: 1;
    color: #f3f4f6; /* Açık gri (Aydınlık mod) */
    z-index: 1; /* İçeriğin arkasında durması için */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html.dark .testimonial-card .quote-icon {
    color: #1f2937; /* Koyu gri (Karanlık mod) */
}

/* Kartın asıl içeriği (yorum, yazar vb.) */
.testimonial-card .card-content {
    position: relative;
    z-index: 2; /* Tırnak ikonunun üzerinde kalması için */
}

/* Fare kartın üzerine geldiğinde olacaklar */
.testimonial-card:hover {
    transform: translateY(-8px); /* Kartı yukarı kaldır */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.testimonial-card:hover .quote-icon {
    transform: scale(1.1) rotate(-6deg); /* Tırnak ikonunu büyüt ve döndür */
}

/* ==========================================================================
   İletişim Formu Yeni Stilleri
   ========================================================================== */

/* Her bir form grubuna boşluk vermek için */
.form-group {
    margin-bottom: 1rem;
}

/* Form etiketleri (Adınız, E-posta vb.) için temel stil */
.form-label {
    display: block;
    font-weight: 500;
    color: #374151; /* text-gray-700 */
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* text-sm */
}
html.dark .form-label {
    color: #d1d5db; /* dark:text-gray-300 */
}

/* Zorunlu alanları belirten kırmızı yıldız */
.form-label .required-star {
    color: #ef4444; /* text-red-500 */
    font-weight: bold;
    margin-left: 2px;
}

/* E-posta ve Telefon alanlarını yan yana getiren grid yapısı */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobil için alt alta */
    gap: 1.5rem; /* Aradaki boşluk */
}
/* Geniş ekranlarda (768px ve üzeri) iki sütunlu yapıya geçer */
@media (min-width: 768px) {
    .form-row-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Checkbox'ların gruplanması için */
.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem; /* Dikey ve yatay boşluklar */
    padding-top: 0.5rem;
}

/* Her bir checkbox ve etiketini içeren sarmalayıcı */
.form-checkbox-item {
    display: flex;
    align-items: center;
}

/* Checkbox'tan sonra gelen etiket için stil */
.form-checkbox-item label {
    margin-left: 0.5rem;
    font-weight: 500;
    color: #111827; /* text-gray-900 */
}
html.dark .form-checkbox-item label {
    color: #f3f4f6; /* dark:text-gray-200 */
}

/* ==========================================================================
   Fiyat Teklifi Formu Özel Stilleri
   ========================================================================== */

/* Formdaki her bir bölüme (fieldset) standart stil verir */
#ficzee-quote-form .form-section {
    border-top: 1px solid #e5e7eb; /* light:border-gray-200 */
    padding-top: 2rem;
}
html.dark #ficzee-quote-form .form-section {
    border-top-color: #374151; /* dark:border-gray-700 */
}

/* Form etiketlerine (label) genel stil */
#ficzee-quote-form .form-label {
    display: block;
    font-size: 1.125rem; /* text-lg */
    color: #1f2937; /* light:text-gray-800 */
    margin-bottom: 1rem;
}
html.dark #ficzee-quote-form .form-label {
    color: #f9fafb; /* dark:text-gray-50 */
}

/* Form input ve select alanlarına genel stil */
#ficzee-quote-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px; /* rounded-button */
    border: 1px solid #d1d5db; /* light:border-gray-300 */
    background-color: #ffffff; /* light:bg-white */
}
html.dark #ficzee-quote-form .form-input {
    background-color: #374151; /* dark:bg-gray-700 */
    border-color: #4b5563; /* dark:border-gray-600 */
    color: #f9fafb; /* dark:text-white */
}

/* --- Toggle Anahtar (Switch) Stilleri --- */

/* Toggle elemanlarını gruplayan alan */
.form-toggle-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* İki sütunlu yapı */
    gap: 1rem;
}
@media (max-width: 768px) {
    .form-toggle-group {
        grid-template-columns: 1fr; /* Mobilde tek sütun */
    }
}


/* Her bir toggle satırı için */
.form-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb; /* light:bg-gray-50 */
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease-in-out;
}
html.dark .form-toggle {
    background-color: #1f2937; /* dark:bg-gray-800 */
    border-color: #374151;
}

/* Asıl checkbox'ı gizle */
.form-toggle input[type="checkbox"] {
    display: none;
}

/* Toggle anahtarının dış çerçevesi */
.form-toggle .toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #d1d5db; /* light:bg-gray-300 */
    border-radius: 9999px;
    transition: background-color 0.2s;
    cursor: pointer;
}
html.dark .form-toggle .toggle-switch {
    background-color: #4b5563;
}

/* Toggle anahtarının içindeki yuvarlak */
.form-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: white;
    top: 3px;
    left: 4px;
    transition: transform 0.2s;
}

/* Checkbox seçili olduğunda anahtarın stilleri */
.form-toggle input:checked + .toggle-switch {
    background-color: #5680E9; /* primary color */
}

/* Checkbox seçili olduğunda yuvarlağın pozisyonu */
.form-toggle input:checked + .toggle-switch::after {
    transform: translateX(18px);
}

/* Checkbox devre dışı bırakıldığında stil */
.form-toggle input:disabled + .toggle-switch {
    background-color: #e5e7eb;
    cursor: not-allowed;
}
html.dark .form-toggle input:disabled + .toggle-switch {
     background-color: #374151;
}

/* --- Fiyat Özeti Kutusu --- */
#ficzee-quote-summary {
    position: sticky;
    top: 6rem; /* Header yüksekliğine göre ayarlanabilir */
}

#summary-items .summary-item {
    display: flex;
    justify-content: space-between;
    color: #4b5563; /* light:text-gray-600 */
    font-size: 0.875rem;
}
html.dark #summary-items .summary-item {
    color: #d1d5db; /* dark:text-gray-300 */
}