/* Custom CSS for GoatMethods */

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    background-image:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    min-height: 100vh;
}

.dark body {
    background-color: #000;
    background-image: none;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse Glow Animation */
@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8), 0 0 60px rgba(139, 92, 246, 0.5);
        transform: scale(1.02);
    }
}

/* Particle Animation */
@keyframes particle-float {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-100px) translateX(50px) rotate(90deg); opacity: 0.7; }
    50% { transform: translateY(-50px) translateX(-30px) rotate(180deg); opacity: 0.5; }
    75% { transform: translateY(-150px) translateX(30px) rotate(270deg); opacity: 0.8; }
}

/* Particles Background */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00FFFF, #8B5CF6);
    border-radius: 50%;
    animation: particle-float 20s infinite linear;
}

.particles::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: 
        200px 300px 0 rgba(0, 255, 255, 0.8),
        400px 100px 0 rgba(139, 92, 246, 0.6),
        600px 400px 0 rgba(255, 0, 255, 0.4),
        800px 200px 0 rgba(0, 255, 0, 0.5),
        1000px 350px 0 rgba(0, 255, 255, 0.3),
        1200px 150px 0 rgba(139, 92, 246, 0.7);
}

.particles::after {
    top: 30%;
    right: 30%;
    animation-delay: -10s;
    box-shadow:
        -200px 200px 0 rgba(255, 0, 255, 0.6),
        -400px 400px 0 rgba(0, 255, 255, 0.4),
        -600px 100px 0 rgba(139, 92, 246, 0.8),
        -800px 300px 0 rgba(0, 255, 0, 0.3),
        -1000px 250px 0 rgba(255, 0, 255, 0.5),
        -1200px 450px 0 rgba(0, 255, 255, 0.7);
}

.status-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.28);
    box-shadow: 0 18px 38px -24px rgba(16, 185, 129, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dark .status-banner {
    border-color: rgba(110, 231, 183, 0.32);
    box-shadow: 0 16px 40px -26px rgba(16, 185, 129, 0.6);
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.25rem);
    letter-spacing: 0.012em;
    color: #1f2937;
    text-align: left;
    white-space: nowrap;
}

.dark .status-label {
    color: #f3f4f6;
}

.status-text {
    color: inherit;
    opacity: 0.8;
    font-weight: 500;
}

.status-count {
    color: #047857;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.dark .status-count {
    color: #6ee7b7;
}

@media (max-width: 640px) {
    .status-banner {
        gap: 0.45rem;
        padding: 0.5rem 0.75rem;
    }

    .status-label {
        font-size: clamp(0.82rem, 0.8rem + 0.6vw, 1rem);
    }

    .status-count {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .status-banner {
        padding: 0.45rem 0.7rem;
        gap: 0.4rem;
    }

    .status-label {
        font-size: clamp(0.72rem, 0.7rem + 0.6vw, 0.86rem);
        letter-spacing: 0.009em;
    }

    .status-count {
        font-size: clamp(0.78rem, 0.76rem + 0.7vw, 0.95rem);
        letter-spacing: 0.018em;
    }
}

@media (max-width: 360px) {
    .status-banner {
        padding: 0.4rem 0.6rem;
        gap: 0.35rem;
    }

    .status-label {
        font-size: 0.7rem;
    }

    .status-count {
        font-size: 0.8rem;
    }
}

/* Header Backdrop Blur Enhancement */
header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Method Card Hover Effects */
.method-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .method-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.6));
}

.dark .method-card:hover {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.8));
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.method-card:hover::before {
    opacity: 1;
}

/* Trending Card Effects */
.trending-card {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dark .trending-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.8));
}

.trending-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00FFFF, #8B5CF6, #FF00FF, #00FF00);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-card:hover::before {
    opacity: 0.3;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

/* Testimonial Cards */
.testimonial {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dark .testimonial {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.7));
}

.testimonial:hover {
    border-left-color: #00FFFF;
    transform: translateX(4px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.1);
}

/* Form Styling */
.dark input[type="text"],
.dark input[type="email"],
.dark select {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.5);
    transition: all 0.3s ease;
}

.dark input[type="text"]:focus,
.dark input[type="email"]:focus,
.dark select:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: #00FFFF;
    box-shadow:
        0 0 0 2px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
    outline: none;
}

/* Button Animations */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
    transform: translateY(-1px);
}

/* Modal Styling */
.dark .modal-content {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Neon Text Effects */
.neon-text-cyan {
    color: #00FFFF;
    text-shadow: 
        0 0 5px #00FFFF,
        0 0 10px #00FFFF,
        0 0 15px #00FFFF,
        0 0 20px #00FFFF;
}

.neon-text-purple {
    color: #8B5CF6;
    text-shadow: 
        0 0 5px #8B5CF6,
        0 0 10px #8B5CF6,
        0 0 15px #8B5CF6,
        0 0 20px #8B5CF6;
}

.neon-text-pink {
    color: #FF00FF;
    text-shadow: 
        0 0 5px #FF00FF,
        0 0 10px #FF00FF,
        0 0 15px #FF00FF,
        0 0 20px #FF00FF;
}

.neon-text-green {
    color: #00FF00;
    text-shadow: 
        0 0 5px #00FF00,
        0 0 10px #00FF00,
        0 0 15px #00FF00,
        0 0 20px #00FF00;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00FFFF, #8B5CF6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8B5CF6, #FF00FF);
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .particles::before,
    .particles::after {
        display: none; /* Hide particles on mobile for performance */
    }
    
    .method-card:hover {
        transform: none; /* Reduce transforms on mobile */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    /* Reduce backdrop blur on mobile for better performance */
    header {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .method-card,
    .trending-card,
    .testimonial {
        border: 1px solid #fff;
    }
    
    .neon-text-cyan,
    .neon-text-purple,
    .neon-text-pink,
    .neon-text-green {
        text-shadow: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particles::before,
    .particles::after {
        animation: none;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #00FFFF;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .particles,
    .neon-text-cyan,
    .neon-text-purple,
    .neon-text-pink,
    .neon-text-green {
        background: none !important;
        color: black !important;
        text-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Dark theme enhancements */
/* Additional dark-specific styles can be added here */

/* Custom selection styling */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(0, 255, 255, 0.3);
    color: white;
}

/* Improved focus indicators */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced backdrop blur for better browser support */
@supports (backdrop-filter: blur(10px)) {
    .glass, .glass-dark {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

@supports not (backdrop-filter: blur(10px)) {
    .glass {
        background: rgba(255, 255, 255, 0.15);
    }
    .glass-dark {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Gaming-specific styling */
.gaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .gaming-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (min-width: 1024px) {
    .gaming-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Performance optimizations */
.method-card img,
.trending-card img {
    will-change: transform;
    transform: translateZ(0);
}

/* Hover states for touch devices */
@media (hover: none) {
    .method-card:hover,
    .trending-card:hover,
    .testimonial:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}
/* Unlock Button Animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.unlock-btn {
    background-size: 200% 200%;
    animation: gradient-shift 6s ease-in-out infinite alternate, pulse-glow 2s ease-in-out infinite;
}

/* Modal tag styling */
.modal-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem; /* py-0.5 px-2 */
    border-radius: 9999px; /* rounded-full */
    background-color: rgba(55, 65, 81, 0.5); /* gray-700/50 */
    border: 1px solid rgba(75, 85, 99, 0.5); /* gray-600/50 */
    font-size: 0.75rem; /* text-xs */
    color: #d1d5db; /* text-gray-300 */
}
