/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1d1818;
    color: #fff;
    overflow-x: hidden;
}

/* NAVIGATION */
header {
    background-color: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* NAV LINKS (Desktop) */
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #1e90ff;
}

/* HAMBURGER MENU (Mobile) */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* MOBILE NAV SLIDE MENU */


/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* MAIN CONTENT LAYOUT */
.container {
    display: flex;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

/* ANIME LIST (Left Side) */
.anime-list {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ANIME ITEM */
.anime-item {
    display: flex;
    background-color: #222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    align-items: center;
    width: 100%;
    height: 260px;
}

.anime-item img {
    width: 480px;  /* Increased width for YouTube-like horizontal layout */
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.anime-description {
    padding: 15px;
    flex: 1;
}

.anime-description h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.anime-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* SIDEBAR (Right Side) - For PC */
.sidebar {
    flex: 1;
    background-color: #222; /* Blackish Background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 350px; /* Slightly bigger for PC */
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn’t increase size */
}

/* Sidebar Headings */
.sidebar h2 {
    font-size: 20px; /* Slightly bigger for PC */
    margin-bottom: 15px;
    color: #fff;
}

/* Sidebar Links */
.sidebar a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #1e90ff;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar a:hover {
    text-decoration: underline;
    background-color: rgba(30, 144, 255, 0.1);
}


@media (max-width: 768px) {
    .sidebar {
        max-width: 100%; /* Full width on mobile */
        padding: 15px;
        text-align: center; /* Center content for better mobile display */
        margin: 0 auto; /* Prevents overflow */
        border-radius: 0; /* Removes rounded edges on mobile */
    }

    .sidebar a {
        display: inline-block; /* Makes links in one line */
        margin: 8px 5px;
    }
}



/* FOOTER */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}

/* RESPONSIVENESS */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .container {
        flex-direction: column;
    }
    .anime-item {
        width: 100%;
        flex-direction: column;
        height: auto;
    }
    .anime-item img {
        width: 100%;
        height: auto;
        border-radius: 8px 8px 0 0;
    }
}
/* SEARCH BAR */
/* SEARCH BAR */
.search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto; /* Adds space around it */
    max-width: 300px; /* Keeps it compact */
}

.search-bar input {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px 0 0 4px;
    width: 75%;
    background-color: #222;
    color: white;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    padding: 8px 10px;
    border: none;
    background-color: #1e90ff;
    color: white;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-bar button:hover {
    background-color: #1c7cd6;
    transform: scale(1.05);
}

/* ADD SPACE BELOW HEADER */
header {
    margin-bottom: 20px; /* Creates space between header and search bar */
}


/* Mobile Navigation Styling */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%; /* Initially hidden */
    width: 70%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* Blur effect */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    transition: left 0.4s ease-in-out;
    z-index: 1000;
}

.mobile-nav a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Close Button */
.close-btn {
    font-size: 24px;
    color: white;
    cursor: pointer;
    align-self: flex-end;
}

/* Blur Effect on Body when Menu is Open */
body.menu-open {
    overflow: hidden;
}

.blur-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}





.anime-link {
    text-decoration: none;
    color: #ffffff; /* Dark Gray (Better Readability) */
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.anime-link:hover {
    color: #007bff; /* Blue on Hover */
}

.upload-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9em;
    color: #ccc;
    border-top: 1px solid #3c3c4d;
    padding-top: 10px;
    letter-spacing: 0.5px;
}

.uploader-name {
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.uploader-name::before {
    content: '';
    font-size: 1.2em;
    color: #ffd700;
}

.uploader-name:hover {
    color: #ff3b2f;
}

.upload-time {
    font-size: 1em;
    color: #ffffff;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Light shadow for visibility */
}


.upload-time:hover {
    color: #d3d3eb;
}
@media (max-width: 600px) {
    .anime-description h1 {
        font-size: 18px; /* Smaller Title for Mobile */
    }
    
    .upload-info {
        font-size: 12px; /* Smaller Text for Mobile */
    }
}


.category-dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #222;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}
.dropdown-content a {
    color: white;
    padding: 10px;
    display: block;
    text-decoration: none;
}
.dropdown-content a:hover { background-color: #0056b3; }
.category-dropdown:hover .dropdown-content { display: block; }




/* Button Hover Effect */
#telegram-popup a:hover {
    background: #006699;
}

/* Animation for Popup */
#telegram-popup {
    animation: popup-appear 0.5s ease;
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Close Button Hover */
#close-popup:hover {
    color: #444;
}

/* Centering the Category Menu */
.category-menu {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    position: relative;
}

.dropdown-toggle {
    font-size: 18px;
    color: #fff;
    background-color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-toggle:hover {
    background-color: #555;
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    text-align: center;
    width: 200px;
    z-index: 100;
}

.dropdown-list li {
    position: relative;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    overflow: hidden;
}

.dropdown-list li span {
    position: relative;
    z-index: 2;
    display: block;
    padding: 10px;
}

.dropdown-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    backdrop-filter: blur(10px); /* Blur effect */
    -webkit-backdrop-filter: blur(10px); /* For Safari */
    z-index: 1;
}

.dropdown-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Show dropdown when active */
.category-menu.active .dropdown-list {
    display: block;
}


.no-results {
    display: none;
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    width: 100%;
}

















.theme-toggle {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
.theme-toggle button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    background-color: #444;
    color: white;
}
.theme-toggle button:hover {
    background-color: #555;
}

/* MOBILE SPECIFIC STYLES */
@media (max-width: 768px) {
    .anime-list {
        flex-direction: column;
        width: 100%;
    }

    .anime-item {
        width: 100%;
        flex-direction: column;
    }

    .anime-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .anime-description {
        padding: 15px;
        text-align: center;
    }

    .anime-description h2 {
        font-size: 16px;
        margin: 10px 0;
    }

    .anime-description p {
        font-size: 14px;
        line-height: 1.5;
        text-align: center;
    }
}

/* GENERAL FOOTER STYLES */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}













html, body {
    position: relative;
    height: 100%;
  }

  .swiper-container {
    width: 100%;
    height: 50%;
  }
  .swiper-slide {
    
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }







  /* Default (Dark Mode) */
body {
    background-color: #121212;
    color: white;
    transition: background 0.3s, color 0.3s;
}

/* 🌙 Default Dark Mode */
body {
    background-color: #121212;
    color: white;
    transition: background 0.3s, color 0.3s;
}

/* ☀ Light Mode */
body.light-mode {
    background-color: white;
    color: black;
}

/* Navbar */
.navbar, .mobile-nav {
    background: rgba(0, 0, 0, 0.9);
    transition: background 0.3s;
}

body.light-mode .navbar, 
body.light-mode .mobile-nav {
    background: rgba(255, 255, 255, 0.9);
}

/* Links */
a {
    color: white;
    transition: color 0.3s;
}

body.light-mode a {
    color: black;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: white;
    transition: color 0.3s;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: black;
}






/* General Pagination Styles */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    flex-wrap: nowrap; /* Ensures no wrapping */
}

.page-numbers {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.page-box {
    display: inline-block;
    text-decoration: none;
    padding: 8px 12px;
    color: #2896f0;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-box:hover {
    background-color: #ffffff;
    border-color: #000000;
}

/* Pagination Buttons */
.prev-page, .next-page {
    padding: 8px 12px;
    background-color: #1f75e6;
    color: white;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 5px;
    font-size: 14px;
}

.prev-page:hover, .next-page:hover {
    background-color: #e61f1f;
}

/* Mobile Support Styles */
@media (max-width: 768px) {
    .pagination {
        flex-direction: row; /* Keep items on one line */
        justify-content: center;
    }

    .page-numbers {
        display: flex;
        gap: 5px;
        justify-content: center;
    }

    .page-box {
        padding: 8px 12px;
        font-size: 12px; /* Smaller font size */
        border-radius: 5px;
    }

    .prev-page, .next-page {
        padding: 8px 12px;
        font-size: 12px; /* Smaller font size */
    }
}

@media (max-width: 480px) {
    .page-box {
        padding: 6px 10px;
        font-size: 10px; /* Even smaller font size for very small screens */
    }

    .prev-page, .next-page {
        padding: 6px 10px;
        font-size: 10px;
    }
}
