/* --- 1. GLOBAL SETTINGS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0f1015; /* Dark Theme */
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- 2. NAVIGATION BAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #1a1b21;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2b32;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #ff4757;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span { color: white; }

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links li a:hover { color: #ff4757; }

/* Hamburger Menu Icon */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px;
    border-radius: 2px;
}

/* --- 3. HERO SECTION & WALLPAPER --- */
.hero {
    text-align: center;
    padding: 120px 20px;
    /* PC Wallpaper Settings */
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('image/Untitled design (1).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero h1 { font-size: 48px; margin-bottom: 10px; color: #fff; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 18px; color: #ccc; }

/* --- 4. SEARCH BAR --- */
.search-box {
    text-align: center;
    margin: -35px 0 40px 0;
    position: relative;
    z-index: 10;
}

.search-box input {
    width: 85%;
    max-width: 600px;
    padding: 18px 30px;
    border-radius: 50px;
    border: 2px solid #ff4757;
    background: #1a1b21;
    color: white;
    font-size: 16px;
    outline: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* --- 5. ANIME GRID & CARDS (HOME PAGE) --- */
.container { padding: 40px 50px; max-width: 1300px; margin: auto; }

.section-title {
    margin-bottom: 35px;
    border-left: 5px solid #ff4757;
    padding-left: 15px;
    font-size: 26px;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.card {
    background: #1a1b21;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.4s;
    border: 1px solid #2a2b32;
}

.card:hover { transform: translateY(-12px); border-color: #ff4757; box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2); }

.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.card-info { padding: 18px; text-align: center; }
.card-info h3 { font-size: 18px; margin-bottom: 10px; }
.card-info p { font-size: 13px; color: #a4b0be; margin-bottom: 18px; }

.btn-download {
    display: inline-block;
    background: #ff4757;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    width: 100%;
}

/* --- 6. POST PAGE (DETAILS & DOWNLOADS) --- */
.post-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: #1a1b21;
    border-radius: 15px;
}

.post-header { display: flex; gap: 40px; margin-bottom: 30px; }
.main-thumbnail { width: 300px; border-radius: 10px; border: 3px solid #ff4757; }
.imdb-tag { background: #f1c40f; color: #000; padding: 5px 15px; border-radius: 50px; font-weight: bold; display: inline-block; margin: 15px 0; }
.details-grid p { margin: 12px 0; color: #ddd; border-bottom: 1px solid #2a2b32; padding-bottom: 5px; }

.dl-btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    padding: 18px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
}

.btn-480 { background: #27ae60; }
.btn-720 { background: #2980b9; }
.btn-1080 { background: #8e44ad; }

/* --- 7. FOOTER --- */
footer {
    text-align: center;
    padding: 50px;
    background: #1a1b21;
    color: #636e72;
    margin-top: 60px;
}

/* --- 8. MOBILE RESPONSIVE (FOR PHONES) --- */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .menu-icon { display: flex; }

    .nav-links {
        display: none; /* JS will toggle this */
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #1a1b21;
        padding: 20px 0;
    }

    .nav-links.active { display: flex !important; }
    .nav-links li { margin: 15px 0; }

    .hero {
        padding: 80px 15px;
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('image/wallpaper.jpg');
        background-attachment: scroll;
    }

    .hero h1 { font-size: 28px; }
    .container { padding: 20px 15px; }

    .anime-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards in one row */
        gap: 12px;
    }

    .card img { height: 260px; } /* Lamba portrait look */
    
    .post-header { flex-direction: column; align-items: center; text-align: center; }
    .main-thumbnail { width: 100%; max-width: 280px; }
}
/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1b21;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 8px;
    top: 100%;
    border: 1px solid #2a2b32;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0 !important; /* Reset margin for dropdown links */
    font-size: 14px;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #2a2b32;
    color: #ff4757;
}

/* Show dropdown on hover (Desktop) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Responsive Dropdown */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        background-color: #111;
        box-shadow: none;
        border: none;
    }
    
    /* Mobile par click karne par dropdown dikhane ke liye ye class use hogi */
    .dropdown.active .dropdown-content {
        display: block;
    }
}