/* 
 * Naya Çiçekçilik - Yaratıcı Çiçek İnteraktif Öğeleri
 * Magic Flower Brush, Floating Mascot, Petal Rain, Cursor Trail
 */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 1. Floating Flower Mascot */
.flower-mascot {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 10000 !important;
    cursor: pointer;
    transition: transform 0.3s;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.flower-mascot:hover {
    transform: scale(1.1);
}

.mascot-flower {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    position: relative !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: visible !important;
    opacity: 1 !important;
}

.flower-mascot:hover .mascot-flower {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.mascot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.mascot-messages {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 250px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flower-mascot.active .mascot-messages {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mascot-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mascot-message.active {
    display: block;
    animation: messageFadeIn 0.4s ease-out;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Magic Flower Brush */
.magic-flower-brush {
    position: fixed;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.magic-flower-brush.drawing {
    transform: translate(-50%, -50%) scale(1.3);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
    animation: brushPulse 0.5s infinite;
}

@keyframes brushPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.magic-flower {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 1.5rem;
    transform: translate(-50%, -50%);
}

/* 3. Petal Rain */
.falling-petal {
    position: fixed;
    top: -50px;
    pointer-events: none;
    z-index: 999;
    user-select: none;
}

@keyframes fall {
    to {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
    }
}

/* 4. Cursor Flower Trail */
.cursor-flower-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    font-size: 1rem;
    transform: translate(-50%, -50%);
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .flower-mascot {
        bottom: 20px;
        right: 20px;
    }

    .mascot-flower {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .mascot-messages {
        width: 200px;
        bottom: 70px;
    }

    .magic-flower-brush {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }

    /* Mobilde trail ve brush'ı kapat (performans) */
    .magic-flower-brush,
    .cursor-flower-trail {
        display: none;
    }
}

/* Performans optimizasyonu - düşük performanslı cihazlarda kapat */
@media (prefers-reduced-motion: reduce) {
    .flower-mascot,
    .magic-flower-brush,
    .falling-petal,
    .cursor-flower-trail {
        display: none;
    }
}
