/* =========================================================
   ÖMER FARUK SÖYLER — ORTAK EFEKT KÜTÜPHANESİ v2
   Rapper/street tema + mobil öncelikli dokunma efektleri
   <link rel="stylesheet" href="effects.css" /> head içine ekle
   ========================================================= */

/* ---------- 1) BUTON RIPPLE (DALGA) EFEKTİ ---------- */
.fx-ripple-el {
    position: relative;
    overflow: hidden;
}
.fx-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transform: scale(0);
    animation: fx-ripple-anim 650ms ease-out;
    pointer-events: none;
}
@keyframes fx-ripple-anim {
    to { transform: scale(2.6); opacity: 0; }
}

/* ---------- 2) KART HOVER/TAP: YÜKSELME + NEON PARLAMA ---------- */
.urban-card, .tarih-kart { will-change: transform, box-shadow; }
.fx-card-lift:hover,
.fx-card-lift.fx-tap-active {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(204, 255, 0, 0.22);
}

/* ---------- 3) SCROLL İLE YUMUŞAK BELİRME ---------- */
.fx-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-reveal.fx-in-view { opacity: 1; transform: translateY(0); }

/* ---------- 4) HEADER: SCROLL'DA KÜÇÜLME / KOYULAŞMA ---------- */
header { transition: padding 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease; }
header.fx-header-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); }
header.fx-header-scrolled .fx-shrink-py { padding-top: 0.6rem !important; padding-bottom: 0.6rem !important; }
header.fx-header-scrolled .fx-shrink-logo { transform: scale(0.88); }

/* ---------- 5) SAYFA GİRİŞ FADE ANİMASYONU ---------- */
body { animation: fx-page-fade-in 0.5s ease both; }
@keyframes fx-page-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 6) NEON NABIZ (PULSE) KENARLIK — btn-neon ---------- */
@keyframes fx-neon-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(204, 255, 0, 0.35), 0 0 0 0 rgba(204, 255, 0, 0.0); }
    50% { box-shadow: 0 0 28px rgba(204, 255, 0, 0.65), 0 0 12px 3px rgba(204, 255, 0, 0.15); }
}
.btn-neon {
    position: relative;
    animation: fx-neon-pulse 2.6s ease-in-out infinite;
}
.btn-neon:active,
.btn-neon.fx-tap-active {
    transform: scale(0.96);
    animation-play-state: paused;
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.85) !important;
}

/* ---------- 7) BUTONDA IŞIK KAYMASI (SHINE SWEEP) ---------- */
.btn-neon::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    opacity: 0;
}
.btn-neon.fx-shine-play::after {
    opacity: 1;
    animation: fx-shine-sweep 0.75s ease-out;
}
@keyframes fx-shine-sweep {
    from { left: -60%; }
    to { left: 130%; }
}

/* ---------- 8) DÖNEN GRAFİTİ KENARLIK (kart çerçevesi) ---------- */
.fx-spray-border {
    position: relative;
    z-index: 0;
}
.fx-spray-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--fx-angle, 0deg), #ccff00, transparent 30%, transparent 70%, #ccff00);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: fx-spin-angle 3.2s linear infinite;
    z-index: -1;
    pointer-events: none;
}
.fx-spray-border:hover::before,
.fx-spray-border.fx-tap-active::before {
    opacity: 1;
}
@property --fx-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes fx-spin-angle {
    to { --fx-angle: 360deg; }
}

/* ---------- 9) BAŞLIK "SPREY" AÇILIŞ EFEKTİ ---------- */
.fx-spray-text {
    display: inline-block;
    opacity: 0;
    filter: blur(6px);
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}
.fx-spray-text.fx-in-view {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* ---------- 10) NAV LİNKLERİNDE NEON ALTI ÇİZGİ SÜPÜRME ---------- */
nav a, #mobile-menu a {
    position: relative;
}
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ccff00;
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.7);
    transition: width 0.3s ease;
}
nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

/* ---------- 11) DOKUNMA (TAP) GERİ BİLDİRİMİ — MOBİL ÖNCELİKLİ ---------- */
@media (hover: none) {
    .btn-neon, button, .tarih-kart, .urban-card a, #canli-saat-tablosu div[onclick] {
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.12s ease, box-shadow 0.12s ease;
    }
    .fx-tap-active {
        transform: scale(0.96) !important;
    }
}

/* ---------- 12) DÜŞÜK PERFORMANSLI CİHAZ / HAREKET AZALTMA ---------- */
@media (prefers-reduced-motion: reduce) {
    .fx-reveal, .fx-spray-text { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
    body { animation: none !important; }
    .btn-neon { animation: none !important; }
    .fx-spray-border::before { animation: none !important; }
}

/* Mobilde ağır conic-gradient dönüşünü sadeleştir (performans) */
@media (max-width: 640px) {
    .fx-spray-border::before { animation-duration: 5s; }
}