/* Anime Website - Colorful Modern Design */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Righteous&display=swap');

:root {
    /* Vibrant Color Palette */
    --primary: #FF6B9D;
    --secondary: #C06FF8;
    --accent: #FFA940;
    --blue: #4ECDC4;
    --green: #95E1D3;
    --dark: #1A1A2E;
    --darker: #0F0F1E;
    --light: #F8F9FA;
    --gradient-1: linear-gradient(135deg, #FF6B9D 0%, #C06FF8 100%);
    --gradient-2: linear-gradient(135deg, #4ECDC4 0%, #95E1D3 100%);
    --gradient-3: linear-gradient(135deg, #FFA940 0%, #FF6B9D 100%);
    --shadow: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 111, 248, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease infinite;
}

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

/* Header */
header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 2px;
    animation: pulse 3s ease-in-out infinite;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.6);
}

.btn-secondary {
    background: var(--gradient-2);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(78, 205, 196, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Cards */
.card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 107, 157, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 157, 0.3);
}

/* Anime Card */
.anime-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 100%;
}

.anime-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anime-card:hover img {
    transform: scale(1.1);
}

.anime-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    padding: 1.5rem;
    transform: translateY(60%);
    transition: transform 0.3s ease;
}

.anime-card:hover .anime-card-overlay {
    transform: translateY(0);
}

.anime-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.anime-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--green);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.6);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 107, 157, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section Titles */
.section-title {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    margin: 3rem 0 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-action { background: rgba(255, 107, 157, 0.2); color: var(--primary); }
.tag-adventure { background: rgba(255, 169, 64, 0.2); color: var(--accent); }
.tag-comedy { background: rgba(149, 225, 211, 0.2); color: var(--green); }
.tag-drama { background: rgba(192, 111, 248, 0.2); color: var(--secondary); }
.tag-fantasy { background: rgba(78, 205, 196, 0.2); color: var(--blue); }

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
