* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

iframe{
    margin: auto;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.animate-pulse {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
    color: #fbbf24;
}

.genre-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-card:hover {
    transform: translateY(-8px);
    border-left-width: 8px !important;
}

.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-12px);
}

/* Mobile Navigation */
#mobileMenu {
    animation: slideInDown 0.3s ease-in-out;
    height: calc(100vh - 64px);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7e22ce;
}

/* Form styling */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Button animations */
button {
    transition: all 0.3s ease;
}

/* Link hover effects */
a {
    transition: color 0.3s ease;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Newsletter section */
.newsletter-input {
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

/* Footer links */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #fbbf24;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Success/Error messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    animation: slideInDown 0.3s ease-in-out;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border: 1px solid #fca5a5;
}

/* Backdrop blur */
@supports (backdrop-filter: blur(1px)) {
    .backdrop-blur {
        backdrop-filter: blur(10px);
    }
}
