/*
Theme Name: ESTweb Pro Theme
Theme URI: https://www.estweb.com.tr
Author: ESTweb
Description: Tailwind CSS ve Modern JS ile güçlendirilmiş, yüksek performanslı freelance dijital çözüm teması.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: estweb-theme
*/

/* =========================================
   1. GENEL AYARLAR VE LOGO
   ========================================= */
.logo-sharp {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.15));
}

/* =========================================
   2. FOOTER DAKTİLO EFEKTİ (HIZ AYARI BURADA)
   ========================================= */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid #818cf8;
    white-space: nowrap;
    margin: 0;
    box-sizing: border-box;
    /* GÜNCELLEME: 5s yerine 10s yapıldı (Daha yavaş ve sakin) */
    animation: typing 10s steps(30, end) infinite, blink-caret .75s step-end infinite;
}

@keyframes typing { 
    0% { width: 0; } 
    40% { width: 100%; } 
    80% { width: 100%; } 
    90% { width: 0; } 
    100% { width: 0; } 
}

@keyframes blink-caret { 
    from, to { border-color: transparent } 
    50% { border-color: #818cf8 } 
}

/* Accordion (SSS) Ok İşareti Gizleme */
details > summary { 
    list-style: none; 
}
details > summary::-webkit-details-marker { 
    display: none; 
}

/* =========================================
   3. KART GEÇİŞ SİSTEMİ (Code Cards)
   ========================================= */
.code-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0; 
    transform: translateY(20px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.code-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
    pointer-events: auto;
}

/* =========================================
   4. KART İÇİ DAKTİLO EFEKTİ
   ========================================= */
.typing-line {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
}

.active .typing-line {
    animation: line-reveal 1s steps(30, end) forwards;
}

/* Gecikmeler */
.active .delay-1 { animation-delay: 0.2s; }
.active .delay-2 { animation-delay: 0.6s; }
.active .delay-3 { animation-delay: 1.0s; }
.active .delay-4 { animation-delay: 1.4s; }
.active .delay-5 { animation-delay: 1.8s; }

@keyframes line-reveal {
    from { width: 0; }
    to { width: 100%; }
}

/* =========================================
   5. CUSTOM CURSOR (Mouse İmleci)
   ========================================= */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #818cf8;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #818cf8;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(129, 140, 248, 0.1);
    border-color: #a5b4fc;
}

/* =========================================
   6. PORTFOLYO EFEKTLERİ
   ========================================= */
.portfolio-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
    pointer-events: none;
    z-index: 20;
}

.portfolio-card:hover .portfolio-preview {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================================
   7. RIPPLE (Dalga) BUTON EFEKTİ
   ========================================= */
.ripple-button {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =========================================
   8. HİZMET KARTLARI (Service Icons)
   ========================================= */
.service-icon {
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg) scale(1.1);
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.service-card:hover .service-icon::before {
    opacity: 1;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* =========================================
   9. SCROLL REVEAL (Aşağı İnme Efekti)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }
/* =========================================
   10. BLOG DETAY SAYFASI (Gutenberg Stilleri)
   ========================================= */

/* Paragraflar */
.entry-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e1; /* slate-300 */
    font-weight: 300;
}

/* Başlıklar (H2, H3...) */
.entry-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}
/* Başlığın soluna o pembe çizgiyi koyar */
.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: linear-gradient(to bottom, #ec4899, #818cf8);
    border-radius: 2px;
}

.entry-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Listeler (Pembe Ok Efekti) */
.entry-content ul {
    margin-bottom: 2rem;
    list-style: none; /* Varsayılan noktaları kaldır */
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #94a3b8; /* slate-400 */
}

/* Listenin başına pembe ok koy */
.entry-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ec4899; /* pink-500 */
    font-weight: bold;
}

.entry-content ul li strong {
    color: #e2e8f0; /* slate-200 */
    font-weight: 700;
}

/* Alıntı Kutusu (Blockquote) */
.entry-content blockquote {
    background: rgba(30, 27, 75, 0.5); /* Koyu lacivert arka plan */
    border-left: 4px solid #818cf8; /* Sol taraf indigo çizgi */
    border-radius: 0 1rem 1rem 0;
    padding: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #e2e8f0;
    position: relative;
}

/* Alıntı ikonu süslemesi */
.entry-content blockquote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 4rem;
    line-height: 1;
    color: rgba(129, 140, 248, 0.1);
    font-family: serif;
}

.entry-content cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    font-style: normal;
    font-weight: 600;
}

/* Linkler */
.entry-content a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}
.entry-content a:hover {
    color: #ec4899;
}
/* =========================================
   11. 404 GLITCH EFEKTİ (Sinyal Kaybı)
   ========================================= */
.glitch {
    position: relative;
    color: white; /* Varsayılan renk */
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020617; /* Arka plan rengiyle aynı olmalı (slate-950) */
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    5% { clip: rect(70px, 9999px, 90px, 0); }
    10% { clip: rect(40px, 9999px, 20px, 0); }
    15% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(90px, 9999px, 30px, 0); }
    25% { clip: rect(20px, 9999px, 60px, 0); }
    30% { clip: rect(60px, 9999px, 10px, 0); }
    35% { clip: rect(50px, 9999px, 40px, 0); }
    40% { clip: rect(80px, 9999px, 20px, 0); }
    45% { clip: rect(10px, 9999px, 50px, 0); }
    50% { clip: rect(30px, 9999px, 90px, 0); }
    55% { clip: rect(70px, 9999px, 10px, 0); }
    60% { clip: rect(40px, 9999px, 60px, 0); }
    65% { clip: rect(90px, 9999px, 30px, 0); }
    70% { clip: rect(20px, 9999px, 50px, 0); }
    75% { clip: rect(60px, 9999px, 10px, 0); }
    80% { clip: rect(10px, 9999px, 90px, 0); }
    85% { clip: rect(50px, 9999px, 20px, 0); }
    90% { clip: rect(30px, 9999px, 60px, 0); }
    95% { clip: rect(80px, 9999px, 40px, 0); }
    100% { clip: rect(20px, 9999px, 70px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    5% { clip: rect(90px, 9999px, 10px, 0); }
    10% { clip: rect(30px, 9999px, 50px, 0); }
    15% { clip: rect(60px, 9999px, 20px, 0); }
    20% { clip: rect(20px, 9999px, 90px, 0); }
    25% { clip: rect(80px, 9999px, 30px, 0); }
    30% { clip: rect(40px, 9999px, 60px, 0); }
    35% { clip: rect(70px, 9999px, 20px, 0); }
    40% { clip: rect(10px, 9999px, 90px, 0); }
    45% { clip: rect(50px, 9999px, 10px, 0); }
    50% { clip: rect(90px, 9999px, 40px, 0); }
    55% { clip: rect(20px, 9999px, 70px, 0); }
    60% { clip: rect(60px, 9999px, 30px, 0); }
    65% { clip: rect(30px, 9999px, 80px, 0); }
    70% { clip: rect(80px, 9999px, 10px, 0); }
    75% { clip: rect(40px, 9999px, 50px, 0); }
    80% { clip: rect(70px, 9999px, 20px, 0); }
    85% { clip: rect(10px, 9999px, 60px, 0); }
    90% { clip: rect(50px, 9999px, 30px, 0); }
    95% { clip: rect(20px, 9999px, 90px, 0); }
    100% { clip: rect(60px, 9999px, 40px, 0); }
}
/* =========================================
   12. FOOTER LOGO (PREMIUM SÜZÜLME - ZORLA ÇALIŞTIR)
   ========================================= */
.premium-float {
    /* Tarayıcıyı zorla: Animasyonu ve pozisyonu tanı */
    display: inline-block !important; 
    position: relative !important;
    
    /* Zıplamayı iptal et, bizim süzülmeyi devreye al */
    animation: none !important; 
    animation: uzaydaSuzulme 6s ease-in-out infinite !important;
    
    /* Performans ayarı */
    will-change: transform, filter;
}

@keyframes uzaydaSuzulme {
    0%, 100% {
        transform: translateY(0px);
        /* Daha belirgin mor gölge (Opaklık 0.5 yapıldı) */
        filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.5)); 
    }
    50% {
        transform: translateY(-10px);
        /* Patlama anı: Gölge mesafesi ve gücü artırıldı */
        /* Birden fazla drop-shadow ekleyerek moru katmanlı hale getirdik */
        filter: drop-shadow(0 0 15px rgba(129, 140, 248, 0.9)) 
                drop-shadow(0 0 30px rgba(129, 140, 248, 0.4)); 
    }
}
/* =========================================
   REVEAL SİSTEMİ - PRO SÜRÜM (ÇAKIŞMAZ)
   ========================================= */

/* Standart Yukarı Hareket */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Soldan Giriş */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Sağdan Giriş */
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Zoom Giriş */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* AKTİF SIFIRLAMA - Tetiklendiğinde buraya gelir */
.reveal.active, 
.reveal-left.active, 
.reveal-right.active, 
.reveal-zoom.active {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* GECİKMELER (Animasyon sırası için) */
.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }
.reveal-delay-400 { transition-delay: 0.4s; }