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

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

body {
    font-family: 'Gabarito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00ff88;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    font-family: 'Gabarito', sans-serif;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    font-family: 'Gabarito', sans-serif;
}

.nav-links a:hover {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.nav-links a.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
}

/* Search Bar - Updated for Tailwind compatibility */
.search-container {
    position: relative;
    margin-right: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-result-item:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-result-info p {
    color: #cccccc;
    font-size: 0.8rem;
    margin: 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #00ff88;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 2rem;
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.mobile-close {
    background: none;
    border: none;
    color: #00ff88;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
}

.mobile-search {
    margin-bottom: 2rem;
    position: relative;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 106, 0.1));
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff88, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    font-family: 'Gabarito', sans-serif;
}

.hero p {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 255, 136, 0.3);
}

.section-title {
    font-size: 2rem;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: 'Gabarito', sans-serif;
}

.section-title::before {
    content: "⚡";
    font-size: 1.5rem;
}

/* View All Button */
.view-all-button {
    color: #00ff88;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-button:hover {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

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

.anime-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
    cursor: pointer;
}

.anime-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

.anime-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

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

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

.anime-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.anime-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Gabarito', sans-serif;
}

.anime-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.episode-badge {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-family: 'Gabarito', sans-serif;
}

.date-added {
    color: #888888;
}

.ranking-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 3;
    font-family: 'Gabarito', sans-serif;
}

.rising-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    z-index: 3;
    font-family: 'Gabarito', sans-serif;
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #00ff88;
}

.spinner {
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    border-top: 3px solid #00ff88;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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

/* Error State */
.error {
    text-align: center;
    color: #ff6b6b;
    padding: 2rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Tabs - Keep for other pages */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(0, 255, 136, 0.3);
    color: #ffffff;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: bold;
}

.tab-button.active {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
    border-color: #00ff88;
}

.tab-button:hover {
    border-color: #00ff88;
    transform: translateY(-2px);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .anime-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 200px;
    }

    .main-content {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .view-all-button {
        align-self: center;
    }
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
}

.footer p {
    color: #888888;
}
/* Updated mobile responsive section - replace the existing @media (max-width: 768px) section */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Updated: 2 items per row on mobile instead of 1 */
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Adjust card size for better mobile fit */
    .anime-card {
        min-width: 0; /* Allows cards to shrink below their content width */
    }

    .anime-image {
        height: 200px; /* Slightly smaller height for mobile */
    }

    .anime-info {
        padding: 1rem; /* Reduced padding for mobile */
    }

    .anime-title {
        font-size: 1rem; /* Slightly smaller title */
        -webkit-line-clamp: 2; /* Keep 2 lines max */
    }

    .anime-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2; /* Keep 2 lines max */
    }

    .tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 200px;
    }

    .main-content {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .view-all-button {
        align-self: center;
    }
}

/* For very small screens (phones in portrait), ensure minimum usable size */
@media (max-width: 480px) {
    .anime-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .anime-image {
        height: 180px;
    }
    
    .anime-info {
        padding: 0.8rem;
    }
    
    .anime-title {
        font-size: 0.9rem;
    }
    
    .anime-description {
        font-size: 0.75rem;
    }
}
/* Custom Search Component Styles - Add this to your styles.css */

/* Search Form Container */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px; /* Space for button */
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Gabarito', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Search Button */
.search-button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
}

.search-button:hover {
    background: linear-gradient(45deg, #00cc6a, #009955);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Search Icon */
.search-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Search Adjustments */
.mobile-search .search-form {
    margin-bottom: 2rem;
}

.mobile-search .search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 14px 18px;
    padding-right: 55px;
}

.mobile-search .search-button {
    width: 40px;
    height: 40px;
    right: 5px;
}

.mobile-search .search-icon {
    width: 18px;
    height: 18px;
}

/* Search Container in Header */
.search-container {
    position: relative;
    margin-right: 1rem;
}

.search-container .search-form {
    max-width: 350px;
}

/* Hide/Show on different screen sizes */
@media (max-width: 768px) {
    .search-container.hidden {
        display: none;
    }
    
    .search-container.md\:block {
        display: none;
    }
    
    /* Mobile specific search adjustments */
    .mobile-search .search-input {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(0, 255, 136, 0.5);
    }
    
    .mobile-search .search-input:focus {
        background: rgba(0, 0, 0, 0.5);
    }
}

@media (min-width: 769px) {
    .search-container.md\:block {
        display: block;
    }
}

/* Search Results Dropdown - Keep existing styles */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-result-item:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    color: #ffffff;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.search-result-info p {
    color: #cccccc;
    font-size: 0.8rem;
    margin: 0;
}

/* Animation for search button */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0);
    }
}

.search-button.searching {
    animation: searchPulse 1.5s infinite;
}

/* Focus states for accessibility */
.search-input:focus-visible,
.search-button:focus-visible {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .search-input {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(0, 255, 136, 0.4);
    }
    
    .search-input:focus {
        background: rgba(0, 0, 0, 0.5);
    }
}
/* Add this CSS to your styles.css file to fix the search container responsive behavior */

/* Desktop search container - show on desktop, hide on mobile */
.search-container.desktop-only {
    display: block;
    position: relative;
    margin-right: 1rem;
}

/* Hide desktop search on mobile screens */
@media (max-width: 768px) {
    .search-container.desktop-only {
        display: none !important;
    }
}

/* Ensure proper styling for the search container */
.search-container {
    position: relative;
    margin-right: 1rem;
    /* Remove any conflicting properties that might be inherited */
    font-family: 'Gabarito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for search form specific styling */
.search-container .search-form {
    max-width: 350px;
    margin: 0; /* Override any margin inheritance */
    padding: 0; /* Override any padding inheritance */
}

/* Override any global resets that might affect the search */
.search-container * {
    box-sizing: border-box;
}

/* Additional fix for mobile search visibility */
.mobile-search {
    display: block;
}

@media (min-width: 769px) {
    .mobile-search {
        /* Keep mobile search visible in mobile nav even on desktop */
    }
}
.anime-card {
    cursor: pointer;
    position: relative;
}

.anime-card::after {
    content: '👁️ View Details';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #00ff88;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.anime-card:hover::after {
    opacity: 1;
}
*/