/* FART CLUB - Enhanced Styling & Animations */

/* ===== Smooth Page Transitions ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(125, 165, 40, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(125, 165, 40, 0.6);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== Enhanced Typography ===== */
.hero-title,
.page-title,
.section-title {
    animation: fadeInUp 0.8s ease-out;
}

.hero-description,
.hero-subtitle,
.page-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ===== Enhanced Card Hover Effects ===== */
.about-section,
.community-card,
.comic-episode {
    animation: fadeIn 1s ease-out;
}

/* ===== Smooth Scroll Indicator ===== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Enhanced Image Loading ===== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== Improved Focus States for Accessibility ===== */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--toxic-glow);
    outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Enhanced Selection Color ===== */
::selection {
    background: var(--toxic-glow);
    color: var(--dark-bg);
}

::-moz-selection {
    background: var(--toxic-glow);
    color: var(--dark-bg);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--toxic-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--toxic-glow));
    border-radius: 10px;
    border: 2px solid var(--toxic-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hover-green), var(--toxic-glow));
}

/* ===== Loading States ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        to right,
        rgba(125, 165, 40, 0.05) 0%,
        rgba(125, 165, 40, 0.15) 50%,
        rgba(125, 165, 40, 0.05) 100%
    );
    background-size: 1000px 100%;
}

/* ===== Enhanced Container Spacing ===== */
.container {
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ===== Improved Text Rendering ===== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== Enhanced Button Group Spacing ===== */
.community-cta,
.hero-cta,
.action-buttons {
    gap: 1.25rem;
}

/* ===== Improved Card Grid Consistency ===== */
.features-grid,
.nft-grid,
.characters-grid {
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid,
    .nft-grid,
    .characters-grid {
        gap: 2.5rem;
    }
}

/* ===== Enhanced Section Spacing ===== */
section {
    position: relative;
}

section + section {
    margin-top: 0;
}

/* ===== Improved Link Hover States ===== */
a {
    transition: var(--transition);
}

/* Ensure buttons never have underlines */
.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover,
.partner-link,
.partner-link:hover,
.lore-btn,
.lore-btn:hover,
.card-link,
.card-link:hover,
.cta-button,
.cta-button:hover {
    text-decoration: none !important;
}

/* Prevent ::after underline on buttons */
.btn-primary::after,
.btn-secondary::after,
.partner-link::after,
.lore-btn::after,
.card-link::after,
.cta-button::after {
    display: none !important;
}

a:not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.social-link):not(.partner-link):not(.lore-btn):not(.card-link):not(.cta-button) {
    color: var(--toxic-glow);
    text-decoration: none;
    position: relative;
}

a:not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.social-link):not(.partner-link):not(.lore-btn):not(.card-link):not(.cta-button):hover {
    color: var(--hover-green);
}

a:not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.social-link):not(.partner-link):not(.lore-btn):not(.card-link):not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--toxic-glow);
    transition: width 0.3s ease;
}

a:not(.btn-primary):not(.btn-secondary):not(.nav-link):not(.social-link):not(.partner-link):not(.lore-btn):not(.card-link):not(.cta-button):hover::after {
    width: 100%;
}

/* ===== Enhanced Text Shadows for Better Readability ===== */
.hero-content,
.page-header {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ===== Improved Loading Performance ===== */
.video-background {
    will-change: transform;
}

/* ===== Enhanced Gradient Overlays ===== */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 31, 16, 0) 0%,
        rgba(20, 31, 16, 0.5) 100%
    );
    pointer-events: none;
}

/* ===== Improved Badge Styling ===== */
.badge,
.status-badge,
.episode-badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== Enhanced Icon Animations ===== */
.fa-wind,
.fa-rocket,
.fa-gamepad,
.fa-coins {
    transition: var(--transition);
}

.style-card:hover .fa-wind,
.style-card:hover .fa-rocket,
.building-card:hover .fa-gamepad,
.building-card:hover .fa-coins {
    transform: scale(1.2) rotate(5deg);
}

/* ===== Improved Grid Layouts ===== */
@supports (display: grid) {
    .about-content,
    .spotlight-content,
    .features-grid {
        display: grid;
        grid-gap: 2rem;
    }
}

/* ===== Enhanced Mobile Touch Targets ===== */
@media (max-width: 768px) {
    .btn-primary,
    .btn-secondary,
    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== Improved Contrast for Accessibility ===== */
.text-muted {
    opacity: 0.92;
}

/* ===== Enhanced Page Transitions ===== */
@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.3s ease-out;
}

/* ===== Improved Video Background Overlay ===== */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 31, 16, 0.4) 0%,
        rgba(20, 31, 16, 0.7) 100%
    );
    pointer-events: none;
}

/* ===== Enhanced Utility Classes ===== */
.text-glow {
    text-shadow: 0 0 20px rgba(125, 165, 40, 0.6);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(125, 165, 40, 0.3);
}

.toxic-border {
    border: 2px solid rgba(125, 165, 40, 0.3);
}

.toxic-bg {
    background: rgba(125, 165, 40, 0.1);
}

/* ===== Performance Optimizations ===== */
.nav-logo,
.hero-title,
.section-title {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
