/**
 * Custom Animated Cursor Styles
 * JavaScript ile çalışan özel cursor tasarımı
 */

/* Varsayılan mouse cursor'u gizle */
body,
body * {
    cursor: none !important;
}

/* Custom cursor - küçük nokta */
.custom-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #25826A;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

/* Custom cursor follower - büyük halka */
.custom-cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid #25826A;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

/* Hover durumu - buton/link üzerinde */
.custom-cursor.cursor-hover {
    width: 20px;
    height: 20px;
    background: #5fd4b8;
}

.custom-cursor-follower.cursor-hover {
    width: 60px;
    height: 60px;
    border-color: #5fd4b8;
    opacity: 0.8;
    border-width: 3px;
}

/* Click durumu */
.custom-cursor.cursor-click {
    width: 6px;
    height: 6px;
    background: #ff6b6b;
}

.custom-cursor-follower.cursor-click {
    width: 30px;
    height: 30px;
    border-color: #ff6b6b;
}

/* Text input hover */
.custom-cursor.cursor-text {
    width: 2px;
    height: 20px;
    border-radius: 0;
    background: #25826A;
}

.custom-cursor-follower.cursor-text {
    width: 20px;
    height: 30px;
    border-radius: 2px;
}

/* Ripple efekti */
.cursor-ripple {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid #5fd4b8;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    animation: ripple-animation 0.6s ease-out;
}

@keyframes ripple-animation {
    0% {
        width: 30px;
        height: 30px;
        opacity: 1;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Alternatif tasarım 1: Gradient cursor */
.custom-cursor.gradient-style {
    background: linear-gradient(135deg, #25826A, #5fd4b8);
}

/* Alternatif tasarım 2: Glow efekti */
.custom-cursor.glow-style {
    box-shadow: 0 0 20px #25826A,
                0 0 40px #25826A,
                0 0 60px #25826A;
}

.custom-cursor-follower.glow-style {
    box-shadow: 0 0 30px rgba(37, 130, 106, 0.5);
}

/* Mobil cihazlarda normal cursor */
@media (max-width: 768px) {
    body,
    body * {
        cursor: auto !important;
    }

    .custom-cursor,
    .custom-cursor-follower,
    .cursor-ripple {
        display: none !important;
    }
}

/* Touch device check */
@media (hover: none) and (pointer: coarse) {
    body,
    body * {
        cursor: auto !important;
    }

    .custom-cursor,
    .custom-cursor-follower,
    .cursor-ripple {
        display: none !important;
    }
}

/* Alternatif Cursor Stilleri - İsterseniz bu stilleri de kullanabilirsiniz */

/* Stil 1: Neon Cursor */
.custom-cursor.neon-style {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88,
                0 0 20px #00ff88,
                0 0 30px #00ff88,
                0 0 40px #00ff88;
}

.custom-cursor-follower.neon-style {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

/* Stil 2: Minimal Cursor */
.custom-cursor.minimal-style {
    width: 6px;
    height: 6px;
    background: #000;
}

.custom-cursor-follower.minimal-style {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
}

/* Stil 3: Colorful Cursor */
.custom-cursor.colorful-style {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Stil 4: Emoji Cursor - Özel karakterler */
.custom-cursor.emoji-style::before {
    content: '👆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.custom-cursor.emoji-style.cursor-hover::before {
    content: '👉';
    font-size: 24px;
}

.custom-cursor.emoji-style.cursor-click::before {
    content: '👊';
    font-size: 18px;
}

/* Performans optimizasyonu */
.custom-cursor,
.custom-cursor-follower {
    will-change: transform, width, height;
}
