/*
Theme Name: Anime Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A Bootstrap-based WordPress theme for anime websites
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anime-theme
*/

/* Import Bootstrap CSS & Icons */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css');

/* === Global Reset & Body === */
body {
    background-color: #f1f3f5;
    color: #212529;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

img,
.anime-thumbnail {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* === Navbar === */
.navbar {
    background-color: #212529;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: #ffffff !important;
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
    color: #ffffff;
}

.navbar-nav .nav-link {
    color: #dee2e6;
    transition: 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: #0d6efd;
    color: #ffffff;
}

/* === Dropdown === */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.15);
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f1f3f5;
    color: #0d6efd;
}

.dropdown-toggle::after {
    margin-left: 0.3em;
    vertical-align: 0.1em;
}

/* === Anime Card === */
.anime-card {
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.anime-card:hover {
    transform: translateY(-5px);
}

.anime-thumbnail {
    height: 260px;
    object-fit: cover;
}

@media (max-width: 576px) {
    .anime-thumbnail {
        height: 180px;
    }
}

/* === Title & Meta === */
.anime-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.anime-meta {
    font-size: 0.9rem;
    color: #868e96;
}

/* === Episode List === */
.episode-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.episode-item {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.episode-item:hover {
    background-color: #e9ecef;
}

/* === Genre Badges === */
.genre-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background-color: #6c757d;
    border-radius: 20px;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* === Anime Detail Section === */
.anime-detail {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* === Anime Populer Widget === */
.anime-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anime-popular-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anime-popular-list .badge {
    background: #ffc107;
    color: #000;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 20px;
}

/* === Sidebar Search & Filter Widget === */
.filter-widget form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.filter-widget .form-label {
    font-weight: 600;
    margin-bottom: 5px;
}

.filter-widget .form-control,
.filter-widget .form-select {
    border-radius: 6px;
    box-shadow: none;
    border: 1px solid #ced4da;
    margin-bottom: 1rem;
}

.filter-widget .btn {
    width: 100%;
}

/* === Breadcrumbs === */
#breadcrumbs {
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}
/* Breadcrumb container */
nav[aria-label="breadcrumb"] {
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb list */
.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Breadcrumb item */
.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #555;
}

/* Breadcrumb links */
.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0056b3;
}

/* Active breadcrumb (current page) */
.breadcrumb-item.active {
    font-weight: 600;
    color: #333;
}

/* Optional: Add separator with CSS only */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 6px;
    color: #ccc;
}

/* Responsive: shrink font on smaller screens */
@media (max-width: 576px) {
    nav[aria-label="breadcrumb"] {
        font-size: 13px;
        padding: 8px 10px;
    }
}

