/* Premium Animations for fisagency Marketing Prompts website */

/* Base animation settings */
.js-animations-loaded * {
    backface-visibility: hidden;
}

/* Typing cursor animation */
.typing-cursor {
    display: inline-block;
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hover effects */
.step {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.step:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

/* Button animations */
.filter-btn, .tab-btn, .signup-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-btn::after, .tab-btn::after, .signup-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.filter-btn:hover::after, .tab-btn:hover::after, .signup-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Logo animation */
.logo {
    position: relative;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Background gradient animation */
.background-gradient {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.prompt-grid {
    perspective: 1000px;
}

.prompt-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.5s ease;
}

/* Featured tag animation */
.featured-tag {
    position: relative;
    overflow: hidden;
}

.featured-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* CTA section animations */
.cta-content {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

/* Footer link animations */
.footer-links a {
    position: relative;
    transition: color 0.3s ease;
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

/* Back to top button animation */
.back-to-top {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.3s ease,
                background-color 0.3s ease;
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

/* Page transition overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Responsive animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scrolling Banner Animation */
.scrolling-banner-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.05), rgba(59, 130, 246, 0.1), rgba(15, 23, 42, 0.05));
    padding: 30px 0;
    position: relative;
    margin: 20px 0;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.banner-title {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.banner-title h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.banner-title p {
    font-size: 16px;
    color: var(--text-secondary);
    opacity: 0.8;
}

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

.scrolling-banner {
    display: flex;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
}

.scrolling-banner-reverse {
    display: flex;
    animation: scroll-reverse 35s linear infinite;
    white-space: nowrap;
    margin-top: 20px;
}

.banner-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    margin: 0 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
    font-weight: 500;
    color: var(--primary-color);
    min-width: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 44px;
}

.banner-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.banner-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 15px rgba(59, 130, 246, 0.15);
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.95);
}

.banner-item:hover::before {
    transform: translateX(100%);
}

.banner-item.active {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.25);
}

.banner-item.active svg {
    color: white;
}

.banner-item svg {
    margin-right: 10px;
    color: var(--accent-color);
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.banner-item:hover svg {
    transform: scale(1.2);
}

.featured-banner-item {
    position: relative;
    overflow: hidden;
}

.featured-banner-item::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    transform: rotate(45deg);
    z-index: 1;
}

.featured-banner-item::before {
    content: '★';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: white;
    z-index: 2;
}

.featured-banner-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.scrolling-banner-container::before,
.scrolling-banner-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.scrolling-banner-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.scrolling-banner-container::after {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.scrolling-banner:hover,
.scrolling-banner-reverse:hover {
    animation-play-state: paused;
} 