/* Custom styles to supplement Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

.logo-text {
    font-family: 'Varela Round', sans-serif;
    color: #00AFF0;
    letter-spacing: -1px;
}

.of-blue-text {
    color: #00AFF0;
}

.of-blue-bg {
    background-color: #00AFF0;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #00AFF0;
    color: white;
    border-radius: 50%;
    width: 0.8em;
    height: 0.8em;
    padding: 2px;
}

/* Tab indicator animation */
.tab-active {
    border-bottom: 2px solid #00AFF0;
    color: #00AFF0;
    font-weight: 600;
}

.locked-post-blur {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
}

/* --- Animations --- */

/* 1. Loading Spinner Overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00AFF0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    opacity: 0;
    /* Hidden initially */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Staggered Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* 3. Hover Effects */
.creator-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.story-circle {
    transition: transform 0.2s;
}

.story-circle:hover {
    transform: scale(1.1);
}