/* Custom styles for Anime Final Strike Tier List website */

/* Custom color palette */
:root {
    --anime-primary: #ff6b6b;
    --anime-secondary: #4ecdc4;
    --anime-accent: #45b7d1;
    --anime-dark: #2c3e50;
    --anime-light: #ecf0f1;
}

/* Navigation styles */
.nav-link {
    @apply text-gray-700 hover:text-anime-primary font-medium transition-colors duration-200 relative;
}

.nav-link.active {
    @apply text-anime-primary;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--anime-primary);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link-mobile {
    @apply block px-4 py-2 text-gray-700 hover:text-anime-primary hover:bg-gray-50 font-medium transition-colors duration-200;
}

.nav-link-mobile.active {
    @apply text-anime-primary bg-gray-50;
}

/* FAQ Toggle styles */
.faq-toggle:hover .fa-chevron-down {
    @apply text-anime-accent;
}

/* Newsletter Subscription styles */
#newsletter-form {
    transition: all 0.3s ease;
}

#email-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    border-color: var(--anime-primary);
}

#subscribe-btn {
    background: linear-gradient(135deg, var(--anime-primary), var(--anime-accent));
    transition: all 0.3s ease;
}

#subscribe-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

#subscribe-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Status Messages */
#subscription-status {
    animation: fadeIn 0.3s ease;
}

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

#success-message {
    animation: slideIn 0.3s ease;
}

#error-message {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Newsletter features grid */
.newsletter-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.newsletter-feature-item:hover {
    color: var(--anime-primary);
    transform: translateY(-2px);
}

.newsletter-feature-item i {
    margin-right: 0.5rem;
    color: var(--anime-primary);
}

/* Loading spinner animation */
.fa-spinner.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive adjustments for newsletter */
@media (max-width: 640px) {
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form .flex-1 {
        width: 100%;
    }
    
    #subscribe-btn {
        width: 100%;
        justify-content: center;
    }
}

/* YouTube iframe responsive styles */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Hero Section responsive adjustments */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* YouTube iframe loading and hover effects */
iframe {
    transition: all 0.3s ease;
}

.video-container:hover iframe {
    transform: scale(1.02);
}

.video-container {
    transition: all 0.3s ease;
}

/* Additional floating elements animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Video overlay glow effect */
.video-glow {
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.faq-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content.show {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    @apply ring-2 ring-anime-primary border-transparent;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

/* Button hover effects */
.btn-primary {
    @apply bg-anime-primary text-white px-6 py-3 rounded-lg font-semibold transition-all duration-200;
}

.btn-primary:hover {
    @apply bg-red-600 shadow-lg transform -translate-y-0.5;
}

.btn-secondary {
    @apply border-2 border-anime-primary text-anime-primary px-6 py-3 rounded-lg font-semibold transition-all duration-200;
}

.btn-secondary:hover {
    @apply bg-anime-primary text-white shadow-lg transform -translate-y-0.5;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, var(--anime-primary), var(--anime-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.hover-card {
    @apply transition-all duration-300;
}

.hover-card:hover {
    @apply shadow-xl transform -translate-y-1;
}

/* Tier badge styles */
.tier-badge-s {
    @apply bg-gradient-to-r from-yellow-400 to-orange-500 text-white font-bold px-4 py-2 rounded-full shadow-lg;
}

.tier-badge-a {
    @apply bg-gradient-to-r from-green-400 to-blue-500 text-white font-bold px-4 py-2 rounded-full shadow-lg;
}

.tier-badge-b {
    @apply bg-gradient-to-r from-blue-400 to-purple-500 text-white font-bold px-4 py-2 rounded-full shadow-lg;
}

.tier-badge-c {
    @apply bg-gradient-to-r from-gray-400 to-gray-600 text-white font-bold px-4 py-2 rounded-full shadow-lg;
}

/* Loading animation */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--anime-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Scroll to top button */
.scroll-to-top {
    @apply fixed bottom-6 right-6 bg-anime-primary text-white p-3 rounded-full shadow-lg transition-all duration-300 z-50;
    transform: translateY(100px);
    opacity: 0;
}

.scroll-to-top.show {
    transform: translateY(0);
    opacity: 1;
}

.scroll-to-top:hover {
    @apply bg-red-600 shadow-xl;
}

/* Social media icons */
.social-icon {
    @apply w-10 h-10 rounded-full flex items-center justify-center transition-all duration-200;
}

.social-icon:hover {
    @apply transform scale-110 shadow-lg;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--anime-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a5a;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-padding {
        @apply py-8 px-4;
    }
    
    .card-grid {
        @apply grid-cols-1 gap-4;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--anime-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --anime-primary: #d63031;
        --anime-secondary: #00b894;
        --anime-accent: #0984e3;
        --anime-dark: #2d3436;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode-auto {
        @apply bg-gray-900 text-gray-100;
    }
}

/* Selection styling */
::selection {
    background-color: var(--anime-primary);
    color: white;
}

/* Image optimization */
img {
    @apply max-w-full h-auto;
}

/* Utility classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--anime-primary), var(--anime-accent)) 1;
}

/* Animation delays for staggered effects */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; } 