/* Iz Cicekcilik - Master Design System & Utilities */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-marquee {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Base smoothing */
html {
    scroll-behavior: smooth;
}

/* Interactive Elements */
.touch-target {
    min-height: 44px;
}

.story-active:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

.story-ring {
    padding: 2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 9999px;
}

/* Mega Menu Engine */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Story Modal Core */
#story-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-content {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 100%;
    max-height: 800px;
    background: #222;
    overflow: hidden;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .story-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

.story-progress-container {
    position: absolute;
    top: 20px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 20;
}

.story-progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: #fff;
    width: 0%;
}

/* Custom Checkbox Style */
.custom-checkbox:checked {
    background-color: #0D5EA6;
    border-color: #0D5EA6;
}

.custom-checkbox:checked+div {
    display: block;
}

/* Premium Animations */
@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

.animate-shine {
    animation: shine 2s infinite;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite;
}