/* =====================================================
   FAL TERAPİ SOSYAL WIDGET — Frontend CSS v2.1
   Kalp Animasyonu + Çoklu Açılış Stili
   Burç Fal Evi | burcfal.com.tr
   ===================================================== */
.fsw-wrapper {
    --fsw-primary: #7c3aed;
    --fsw-accent: #f59e0b;
    --fsw-bg: #1e1b4b;
    --fsw-text: #ffffff;
    --fsw-size: 60px;
    --fsw-ch-size: calc(var(--fsw-size) * 0.8);
    --fsw-radius: 50%;
    --fsw-shadow: 0 8px 32px rgba(124,58,237,0.4);
    --fsw-z: 9999;
    --fsw-gap: 14px;
    --fsw-spring: 0.38s cubic-bezier(0.34,1.56,0.64,1);
}

/* WRAPPER */
.fsw-wrapper { position: fixed; z-index: var(--fsw-z); display: block; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.fsw-wrapper.fsw-visible { opacity: 1; pointer-events: auto; }

/* POZISYONLAR */
.fsw-pos-bottom-right  { bottom: 28px; right: 28px; }
.fsw-pos-bottom-left   { bottom: 28px; left: 28px; }
.fsw-pos-bottom-center { bottom: 28px; left: 50%; transform: translateX(-50%); }
.fsw-pos-top-right     { top: 80px; right: 28px; }
.fsw-pos-top-left      { top: 80px; left: 28px; }
.fsw-pos-left-center   { top: 50%; left: 28px; transform: translateY(-50%); }
.fsw-pos-right-center  { top: 50%; right: 28px; transform: translateY(-50%); }
.fsw-pos-sidebar-right { top: 50%; right: 0; transform: translateY(-50%); }
.fsw-pos-sidebar-left  { top: 50%; left: 0; transform: translateY(-50%); }

/* =====================================================
   ANA BUTON
   ===================================================== */
.fsw-main-btn {
    width: var(--fsw-size); height: var(--fsw-size);
    border-radius: var(--fsw-radius);
    background: var(--fsw-primary);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: visible;
    box-shadow: var(--fsw-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    flex-shrink: 0; outline: none; z-index: 10;
}
.fsw-main-btn:focus-visible { outline: 3px solid var(--fsw-accent); outline-offset: 3px; }

.fsw-main-icon {
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: 0;
    transition: opacity 0.25s ease, transform var(--fsw-spring);
}
.fsw-main-icon svg { width: calc(var(--fsw-size) * 0.5); height: calc(var(--fsw-size) * 0.5); color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.fsw-icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.fsw-icon-open  { opacity: 1; transform: rotate(0) scale(1); }
.fsw-wrapper.fsw-open .fsw-icon-close { opacity: 1; transform: rotate(0) scale(1); }
.fsw-wrapper.fsw-open .fsw-icon-open  { opacity: 0; transform: rotate(90deg) scale(0.5); }
.fsw-wrapper.fsw-open .fsw-main-btn   { background: #ef4444; box-shadow: 0 8px 24px rgba(239,68,68,0.4); }

/* ANIMASYONLAR */
@keyframes fsw-bounce {
    0%,100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-14px) scale(1.05); }
    60% { transform: translateY(-5px) scale(1.01); }
}
.fsw-anim-bounce .fsw-main-btn { animation: fsw-bounce 2.2s cubic-bezier(0.36,0.07,0.19,0.97) infinite; }

@keyframes fsw-pulse {
    0%,100% { box-shadow: var(--fsw-shadow), 0 0 0 0 rgba(124,58,237,0.5); }
    50% { box-shadow: var(--fsw-shadow), 0 0 0 18px rgba(124,58,237,0); }
}
.fsw-anim-pulse .fsw-main-btn { animation: fsw-pulse 2s ease infinite; }

@keyframes fsw-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fsw-anim-float .fsw-main-btn { animation: fsw-float 3s ease-in-out infinite; }

@keyframes fsw-sparkle {
    0%,100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.08) rotate(5deg); box-shadow: 0 0 25px var(--fsw-accent), var(--fsw-shadow); }
    75% { transform: scale(0.95) rotate(-5deg); }
}
.fsw-anim-sparkle .fsw-main-btn { animation: fsw-sparkle 2.5s ease infinite; }

@keyframes fsw-orbit {
    0%,100% { box-shadow: var(--fsw-shadow), 0 0 0 6px rgba(124,58,237,0.18); }
    50% { box-shadow: var(--fsw-shadow), 0 0 0 16px rgba(124,58,237,0.05), 0 0 0 32px rgba(245,158,11,0.04); }
}
.fsw-anim-orbit .fsw-main-btn { animation: fsw-orbit 2.8s ease infinite; }
.fsw-wrapper.fsw-open .fsw-main-btn { animation: none !important; transform: scale(1) !important; }

/* =====================================================
   ♥ KALP AÇILIM SİSTEMİ
   ===================================================== */
.fsw-open-heart { width: var(--fsw-size); height: var(--fsw-size); }

/* Kalp yörünge çizgisi */
.fsw-heart-outline {
    position: absolute;
    width: 260px; height: 240px;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 1;
    opacity: 0; transition: opacity 0.45s ease;
}
.fsw-open-heart.fsw-open .fsw-heart-outline { opacity: 0.2; }

.fsw-open-heart .fsw-channels { position: absolute; inset: 0; display: block; }

.fsw-open-heart .fsw-channel-item {
    position: absolute;
    top: calc(50% - var(--fsw-ch-size) / 2);
    left: calc(50% - var(--fsw-ch-size) / 2);
    display: flex; align-items: center;
    opacity: 0;
    transform: translate(0,0) scale(0.25);
    pointer-events: none;
    transition: opacity var(--fsw-spring), transform var(--fsw-spring);
}

/* Kalp koordinatları */
.fsw-open-heart .fsw-ch-idx-0 { --tx: -88px; --ty: -78px; }
.fsw-open-heart .fsw-ch-idx-1 { --tx: -104px; --ty: 6px; }
.fsw-open-heart .fsw-ch-idx-2 { --tx: 18px;  --ty: -78px; }
.fsw-open-heart .fsw-ch-idx-3 { --tx: 34px;  --ty: 6px; }
.fsw-open-heart .fsw-ch-idx-4 { --tx: -34px; --ty: 88px; }
.fsw-open-heart .fsw-ch-idx-5 { --tx: -34px; --ty: -100px; }

.fsw-open-heart.fsw-open .fsw-channel-item {
    opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); pointer-events: auto;
}
.fsw-open-heart.fsw-open .fsw-ch-idx-0 { transition-delay: 0ms; }
.fsw-open-heart.fsw-open .fsw-ch-idx-1 { transition-delay: 55ms; }
.fsw-open-heart.fsw-open .fsw-ch-idx-2 { transition-delay: 110ms; }
.fsw-open-heart.fsw-open .fsw-ch-idx-3 { transition-delay: 165ms; }
.fsw-open-heart.fsw-open .fsw-ch-idx-4 { transition-delay: 220ms; }
.fsw-open-heart.fsw-open .fsw-ch-idx-5 { transition-delay: 275ms; }

/* Kalp modunda etiketler */
.fsw-open-heart .fsw-label {
    position: absolute;
    bottom: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; font-size: 11px; font-weight: 700;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--fsw-bg); color: #fff;
    padding: 4px 10px; border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.35);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    pointer-events: none; opacity: 0; transition: opacity 0.2s ease; z-index: 20;
}
.fsw-open-heart .fsw-ch-idx-0 .fsw-label,
.fsw-open-heart .fsw-ch-idx-1 .fsw-label {
    left: auto; right: calc(100% + 6px); bottom: auto; top: 50%; transform: translateY(-50%);
}
.fsw-open-heart .fsw-ch-idx-2 .fsw-label,
.fsw-open-heart .fsw-ch-idx-3 .fsw-label {
    left: calc(100% + 6px); bottom: auto; top: 50%; transform: translateY(-50%);
}
.fsw-open-heart .fsw-ch-idx-4 .fsw-label { bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); }
.fsw-open-heart .fsw-ch-idx-5 .fsw-label { top: calc(100% + 6px); bottom: auto; left: 50%; transform: translateX(-50%); }
.fsw-open-heart .fsw-channel-item:hover .fsw-label { opacity: 1; }

/* =====================================================
   ☰ LİNEAR AÇILIM
   ===================================================== */
.fsw-open-linear { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.fsw-open-linear .fsw-channels {
    display: flex; flex-direction: column; gap: var(--fsw-gap); align-items: flex-end;
    margin-bottom: var(--fsw-gap); opacity: 0;
    transform: scale(0.7) translateY(20px); transform-origin: bottom center;
    pointer-events: none; transition: opacity var(--fsw-spring), transform var(--fsw-spring);
}
.fsw-open-linear.fsw-open .fsw-channels { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.fsw-open-linear .fsw-channel-item { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; }
.fsw-open-linear .fsw-label { background: var(--fsw-bg); color: var(--fsw-text); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); font-family: 'Segoe UI', system-ui, sans-serif; }

/* =====================================================
   ⌒ ARC AÇILIM
   ===================================================== */
.fsw-open-arc { width: var(--fsw-size); height: var(--fsw-size); }
.fsw-open-arc .fsw-channels { position: absolute; inset: 0; display: block; }
.fsw-open-arc .fsw-channel-item {
    position: absolute;
    top: calc(50% - var(--fsw-ch-size) / 2);
    left: calc(50% - var(--fsw-ch-size) / 2);
    opacity: 0; transform: translate(0,0) scale(0.3); pointer-events: none;
    transition: opacity var(--fsw-spring), transform var(--fsw-spring);
}
.fsw-open-arc .fsw-ch-idx-0 { --tx: -100px; --ty: -5px; }
.fsw-open-arc .fsw-ch-idx-1 { --tx: -80px;  --ty: -75px; }
.fsw-open-arc .fsw-ch-idx-2 { --tx: -5px;   --ty: -100px; }
.fsw-open-arc .fsw-ch-idx-3 { --tx:  70px;  --ty: -75px; }
.fsw-open-arc .fsw-ch-idx-4 { --tx:  90px;  --ty: -5px; }
.fsw-open-arc .fsw-ch-idx-5 { --tx: -5px;   --ty: -100px; }
.fsw-open-arc.fsw-open .fsw-channel-item { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); pointer-events: auto; }
.fsw-open-arc.fsw-open .fsw-ch-idx-0 { transition-delay: 0ms; }
.fsw-open-arc.fsw-open .fsw-ch-idx-1 { transition-delay: 60ms; }
.fsw-open-arc.fsw-open .fsw-ch-idx-2 { transition-delay: 120ms; }
.fsw-open-arc.fsw-open .fsw-ch-idx-3 { transition-delay: 180ms; }
.fsw-open-arc.fsw-open .fsw-ch-idx-4 { transition-delay: 240ms; }
.fsw-open-arc.fsw-open .fsw-ch-idx-5 { transition-delay: 300ms; }

/* =====================================================
   KANAL BUTONLARI (ortak)
   ===================================================== */
.fsw-btn {
    display: flex; align-items: center; justify-content: center;
    width: var(--fsw-ch-size); height: var(--fsw-ch-size);
    border-radius: var(--fsw-radius);
    background: var(--fsw-ch-color, var(--fsw-primary));
    color: #fff; text-decoration: none;
    position: relative; overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25); flex-shrink: 0;
}
.fsw-btn svg { width: calc(var(--fsw-ch-size) * 0.48); height: calc(var(--fsw-ch-size) * 0.48); position: relative; z-index: 2; }
.fsw-btn:hover { transform: scale(1.15) translateY(-2px); filter: brightness(1.12); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.fsw-btn[data-glow]:hover { box-shadow: 0 0 22px var(--fsw-ch-color), 0 8px 24px rgba(0,0,0,0.3); }

.fsw-btn-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.fsw-btn-messenger { background: linear-gradient(135deg, #0084ff, #a033ff); }
.fsw-btn-tiktok    { background: #010101; box-shadow: inset 0 0 0 2px #25F4EE, 0 6px 20px rgba(0,0,0,0.25); }
.fsw-btn-whatsapp  { background: #25D366; }
.fsw-btn-linkedin  { background: #0A66C2; }

.fsw-ripple { position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,0); transition: background 0.3s; }
.fsw-btn:active .fsw-ripple { background: rgba(255,255,255,0.25); }

/* =====================================================
   TOOLTİP (ana buton)
   ===================================================== */
.fsw-tooltip {
    position: absolute; right: calc(100% + 12px); top: 50%;
    transform: translateY(-50%) translateX(5px);
    white-space: nowrap; font-size: 13px; font-weight: 600;
    font-family: 'Segoe UI', system-ui, sans-serif;
    pointer-events: none; opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.fsw-pos-bottom-left .fsw-tooltip,
.fsw-pos-top-left .fsw-tooltip,
.fsw-pos-left-center .fsw-tooltip,
.fsw-pos-sidebar-left .fsw-tooltip { right: auto; left: calc(100% + 12px); transform: translateY(-50%) translateX(-5px); }
.fsw-main-btn:hover .fsw-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

.fsw-tooltip-mystical {
    background: linear-gradient(135deg, var(--fsw-bg), rgba(124,58,237,0.85));
    color: #fff; padding: 7px 16px; border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 8px rgba(124,58,237,0.3);
    backdrop-filter: blur(8px);
}
.fsw-tooltip-mystical::after {
    content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: rgba(124,58,237,0.85);
}
.fsw-pos-bottom-left .fsw-tooltip-mystical::after,
.fsw-pos-top-left .fsw-tooltip-mystical::after { right: auto; left: -6px; border-left-color: transparent; border-right-color: rgba(124,58,237,0.85); }
.fsw-tooltip-minimal { background: rgba(0,0,0,0.75); color: #fff; padding: 5px 12px; border-radius: 6px; font-size: 12px; }

/* =====================================================
   PARTİKÜLLER
   ===================================================== */
.fsw-particles { position: absolute; inset: -30px; pointer-events: none; z-index: -1; }
.fsw-particle { position: absolute; color: var(--fsw-accent); font-size: 10px; opacity: 0; animation: fsw-particle-float linear infinite; }
.fsw-wrapper.fsw-visible .fsw-particle { opacity: 1; }
.fsw-particle-0 { top:10%;  left:15%;  animation-duration:3.1s; animation-delay:0s;    font-size:8px; }
.fsw-particle-1 { top:20%;  right:10%; animation-duration:2.7s; animation-delay:0.5s;  font-size:12px; }
.fsw-particle-2 { top:60%;  left:5%;   animation-duration:3.5s; animation-delay:1s;    font-size:9px; }
.fsw-particle-3 { top:80%;  right:15%; animation-duration:2.9s; animation-delay:1.5s;  font-size:11px; }
.fsw-particle-4 { top:40%;  left:20%;  animation-duration:3.3s; animation-delay:0.3s;  font-size:7px; }
.fsw-particle-5 { top:5%;   right:20%; animation-duration:4.1s; animation-delay:0.8s;  font-size:10px; }
.fsw-particle-6 { top:70%;  left:12%;  animation-duration:2.6s; animation-delay:2s;    font-size:8px; color:var(--fsw-primary); }
.fsw-particle-7 { top:30%;  right:5%;  animation-duration:3.8s; animation-delay:1.2s;  font-size:12px; color:#ec4899; }
@keyframes fsw-particle-float {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0.8; }
    50%  { transform: translateY(-20px) rotate(180deg); opacity: 0.4; }
    100% { transform: translateY(0) rotate(360deg); opacity: 0.8; }
}
.fsw-btn-stars { position: absolute; inset: -15px; pointer-events: none; }
.fsw-btn-stars span { position: absolute; color: var(--fsw-accent); font-size: 9px; animation: fsw-star-spin 3s linear infinite; opacity: 0; transition: opacity 0.3s; }
.fsw-btn-stars span:nth-child(1) { top:5px;  left:10px; animation-delay:0s; }
.fsw-btn-stars span:nth-child(2) { top:5px;  right:8px; animation-delay:1s; }
.fsw-btn-stars span:nth-child(3) { bottom:8px; left:50%; animation-delay:2s; }
.fsw-main-btn:hover .fsw-btn-stars span { opacity: 1; }
@keyframes fsw-star-spin {
    0%   { transform: scale(0) rotate(0deg);    opacity: 0; }
    50%  { transform: scale(1.2) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg);  opacity: 0; }
}

/* =====================================================
   KAPALI MESAJ
   ===================================================== */
.fsw-closed-msg {
    display: none; position: absolute;
    bottom: calc(var(--fsw-size) + 12px); right: 0;
    background: var(--fsw-bg); color: var(--fsw-text);
    padding: 10px 18px; border-radius: 16px; font-size: 13px;
    border: 1px solid rgba(245,158,11,0.3); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    max-width: 240px; text-align: center; backdrop-filter: blur(8px);
    font-family: 'Segoe UI', system-ui, sans-serif; z-index: 20;
}
.fsw-closed-msg.fsw-visible-msg { display: block; animation: fsw-fadein 0.4s ease; }
@keyframes fsw-fadein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* =====================================================
   SİDEBAR WIDGET
   ===================================================== */
.fsw-sidebar-block { background: linear-gradient(135deg, var(--fsw-bg), rgba(124,58,237,0.12)); border-radius: 16px; padding: 20px; border: 1px solid rgba(124,58,237,0.2); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.fsw-sidebar-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 16px; text-align: center; font-family: 'Segoe UI', system-ui, sans-serif; font-style: italic; }
.fsw-sidebar-channels { display: flex; flex-direction: column; gap: 10px; }
.fsw-sidebar-btn { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 30px; background: var(--fsw-ch-color, var(--fsw-primary)); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; font-family: 'Segoe UI', system-ui, sans-serif; transition: transform 0.2s ease, filter 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.fsw-sidebar-btn:hover { transform: translateX(4px); filter: brightness(1.1); color: #fff; }
.fsw-sidebar-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; }
.fsw-sidebar-icon svg { width: 20px; height: 20px; }
.fsw-sidebar-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.fsw-sidebar-messenger { background: linear-gradient(135deg, #0084ff, #a033ff) !important; }
.fsw-sidebar-tiktok { background: #010101 !important; border: 1px solid #25F4EE; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 480px) {
    .fsw-wrapper { --fsw-size: 54px; }
    .fsw-pos-bottom-right { bottom: 14px; right: 14px; }
    .fsw-pos-bottom-left  { bottom: 14px; left: 14px; }
    .fsw-open-heart .fsw-ch-idx-0 { --tx: -72px; --ty: -66px; }
    .fsw-open-heart .fsw-ch-idx-1 { --tx: -86px; --ty:   2px; }
    .fsw-open-heart .fsw-ch-idx-2 { --tx:  12px; --ty: -66px; }
    .fsw-open-heart .fsw-ch-idx-3 { --tx:  26px; --ty:   2px; }
    .fsw-open-heart .fsw-ch-idx-4 { --tx: -28px; --ty:  72px; }
    .fsw-open-heart .fsw-ch-idx-5 { --tx: -28px; --ty: -82px; }
}

@media (prefers-reduced-motion: reduce) {
    .fsw-main-btn, .fsw-btn, .fsw-particle { animation: none !important; }
    .fsw-channel-item, .fsw-channels { transition: opacity 0.15s !important; }
}
