/*
MangaVerse Theme - Main Stylesheet
*/

/*--------------------------------------------------------------
# Variables (Optional but recommended for consistency)
--------------------------------------------------------------*/
:root {
	--mv-color-background: #ffffff;
	--mv-color-text: #333333;
	--mv-color-text-light: #666666;
	--mv-color-primary: #6a1b9a; /* Deep purple - good for manga themes */
	--mv-color-secondary: #ff6f00; /* Orange - good contrast with purple */
	--mv-color-accent: #e91e63; /* Pink - for accents/highlights */
	--mv-color-border: #dddddd;
	--mv-color-border-light: #eeeeee;
	--mv-color-background-alt: #f8f8f8;
    --mv-color-manga-series: #9c27b0; /* Vibrant purple for series tag */
    --mv-color-chapter-num: #ff5722; /* Bright orange for chapter numbers */

	--mv-font-body: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	--mv-font-heading: 'Montserrat', 'Verdana', sans-serif; /* More modern font for headings */
    --mv-font-manga-title: 'Bangers', 'Impact', fantasy; /* Comic-style font for manga titles */

	--mv-spacing-unit: 1.5rem; /* Base spacing unit */
	--mv-site-max-width: 1200px;
	--mv-content-width: 800px; /* Approx. content width without sidebar */
	--mv-sidebar-width: 300px; /* Approx. sidebar width */
	--mv-header-height: 80px; /* Example header height */
    
    /* Dark mode colors - will be applied when .dark-mode class is added to body */
    --mv-dark-background: #1a1a2e;
    --mv-dark-background-alt: #16213e;
    --mv-dark-text: #e1e1e1;
    --mv-dark-text-light: #b0b0b0;
    --mv-dark-border: #2a2a4a;
    --mv-dark-border-light: #3a3a5a;
    --mv-dark-primary: #bb86fc;
    --mv-dark-secondary: #ff7b00;
    --mv-dark-accent: #ff4081;
}

/*--------------------------------------------------------------
# Dark Mode Styles
--------------------------------------------------------------*/
.dark-mode {
    background-color: var(--mv-dark-background);
    color: var(--mv-dark-text);
}

.dark-mode .site-header,
.dark-mode .main-navigation,
.dark-mode .site-footer {
    background-color: var(--mv-dark-background-alt);
}

.dark-mode .site-title a,
.dark-mode .site-description,
.dark-mode a:not(.manga-series) {
    color: var(--mv-dark-text);
}

.dark-mode a:hover {
    color: var(--mv-dark-secondary);
}

.dark-mode .primary-menu a {
    color: var(--mv-dark-text);
}

.dark-mode .widget-area .widget,
.dark-mode .entry-archive {
    background-color: var(--mv-dark-background-alt);
    border-color: var(--mv-dark-border);
}

.dark-mode .entry-meta,
.dark-mode .entry-footer,
.dark-mode .widget-title {
    color: var(--mv-dark-text-light);
    border-color: var(--mv-dark-border);
}

.dark-mode .manga-series {
    background-color: rgba(156, 39, 176, 0.2);
    color: var(--mv-dark-primary);
}

.dark-mode .manga-chapter-number {
    background-color: rgba(255, 87, 34, 0.2);
    color: var(--mv-dark-secondary);
}

.dark-mode .search-form {
    background-color: var(--mv-dark-background);
    border-color: var(--mv-dark-border);
}

.dark-mode .search-field {
    color: var(--mv-dark-text);
}

/* Theme toggle button */
.theme-mode-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 5px var(--mv-spacing-unit);
    background-color: var(--mv-color-background-alt);
}

.dark-mode .theme-mode-container {
    background-color: var(--mv-dark-background-alt);
}

.theme-mode-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-color-text);
    background-color: var(--mv-color-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dark-mode .theme-mode-toggle {
    background-color: var(--mv-dark-background);
    color: var(--mv-dark-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.theme-mode-toggle:hover {
    transform: scale(1.1);
}

.theme-mode-toggle .dark-icon {
    display: block;
}

.theme-mode-toggle .light-icon {
    display: none;
}

.dark-mode .theme-mode-toggle .dark-icon {
    display: none;
}

.dark-mode .theme-mode-toggle .light-icon {
    display: block;
}


/* Music toggle button */
.music-toggle-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-color-text);
    background-color: var(--mv-color-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.dark-mode .music-toggle-button {
    background-color: var(--mv-dark-background);
    color: var(--mv-dark-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.music-toggle-button:hover {
    transform: scale(1.1);
}

.music-pause-icon {
    display: none;
}

.music-play-icon {
    display: block;
}

.music-toggle-button.music-playing .music-pause-icon {
    display: block;
}

.music-toggle-button.music-playing .music-play-icon {
    display: none;
}

/* Music controls container */
.music-controls-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* Volume control wrapper */
.music-volume-wrapper {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--mv-color-background);
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 120px;
    pointer-events: none;
    z-index: 100;
}

.dark-mode .music-volume-wrapper {
    background-color: var(--mv-dark-background);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Show volume controls on hover */
.music-controls-container:hover .music-volume-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Volume slider styling */
.music-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: var(--mv-color-border);
    outline: none;
    border-radius: 2px;
    margin-left: 5px;
}

.dark-mode .music-volume-slider {
    background: var(--mv-dark-border);
}

/* Volume slider thumb */
.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--mv-color-primary);
    border-radius: 50%;
    cursor: pointer;
}

.music-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--mv-color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.dark-mode .music-volume-slider::-webkit-slider-thumb {
    background: var(--mv-dark-primary);
}

.dark-mode .music-volume-slider::-moz-range-thumb {
    background: var(--mv-dark-primary);
}

/* Volume icon */
.music-volume-icon {
    color: var(--mv-color-text);
    font-size: 0.9rem;
}

.dark-mode .music-volume-icon {
    color: var(--mv-dark-text);
}

/* Music toggle button (updated) */
.music-toggle-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mv-color-text);
    background-color: var(--mv-color-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Mobile volume control support */
.music-volume-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Adjust positions for small screens */
@media (max-width: 576px) {
    .music-volume-wrapper {
        width: 100px;
        right: 40px;
    }
    
    .music-volume-slider {
        width: 60px;
    }
}

/*--------------------------------------------------------------
# Base Styles & Typography
--------------------------------------------------------------*/
body {
	background-color: var(--mv-color-background);
	color: var(--mv-color-text);
	font-family: var(--mv-font-body);
	font-size: 16px; /* Base font size */
	line-height: 1.6;
}

a {
	color: var(--mv-color-primary);
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
	color: var(--mv-color-secondary);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mv-font-heading);
	margin-top: calc(var(--mv-spacing-unit) * 1.5);
	margin-bottom: var(--mv-spacing-unit);
	line-height: 1.3;
	font-weight: 600; /* Slightly bolder headings */
	clear: both; /* Prevent floating element issues */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
	margin-bottom: var(--mv-spacing-unit);
}

ul, ol {
	margin-bottom: var(--mv-spacing-unit);
	padding-left: 1.5em; /* Standard indentation */
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-top: 0.5em;
}

/*--------------------------------------------------------------
# Manga/Anime Specific Styles
--------------------------------------------------------------*/
/* Series display in single post */
.manga-series-wrapper {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
}

.series-label {
    font-weight: 600;
    margin-right: 0.5em;
}

.manga-series {
    display: inline-block;
    padding: 0.3em 1em;
    background-color: rgba(156, 39, 176, 0.1);
    border-radius: 20px;
    font-weight: 600;
    color: var(--mv-color-manga-series);
    text-decoration: none;
    transition: all 0.2s ease;
}

.manga-series:hover {
    background-color: rgba(156, 39, 176, 0.2);
    text-decoration: none;
}

/* Chapter number display */
.manga-chapter-number {
    display: inline-block;
    margin-bottom: 0.5em;
    padding: 0.2em 0.8em;
    background-color: rgba(255, 87, 34, 0.1);
    border-radius: 4px;
    font-weight: 600;
    color: var(--mv-color-chapter-num);
}

/* Manga Title */
.entry-single .entry-title {
    font-family: var(--mv-font-manga-title);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.2em;
    color: var(--mv-color-primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* Chapter navigation styling */
.manga-chapter-navigation {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--mv-color-background-alt);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.dark-mode .manga-chapter-navigation {
    background-color: var(--mv-dark-background-alt);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.manga-chapter-navigation .nav-links {
    display: flex;
    justify-content: space-between;
}

.manga-chapter-navigation .nav-previous,
.manga-chapter-navigation .nav-next {
    max-width: 48%;
}

.manga-chapter-navigation .nav-subtitle {
    display: block;
    font-weight: 600;
    color: var(--mv-color-primary);
    margin-bottom: 0.3em;
}

.dark-mode .manga-chapter-navigation .nav-subtitle {
    color: var(--mv-dark-primary);
}

.manga-chapter-navigation .nav-title {
    display: block;
    font-size: 1.1em;
}

.manga-chapter-navigation a {
    text-decoration: none;
}

.manga-chapter-navigation a:hover .nav-title {
    color: var(--mv-color-secondary);
    text-decoration: underline;
}

/* Grid layout for archives */
.posts-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--mv-spacing-unit);
    margin-top: var(--mv-spacing-unit);
}

.entry-archive {
    border: 1px solid var(--mv-color-border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--mv-color-background);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding-bottom: 0;
}

.entry-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.entry-archive .post-thumbnail {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.entry-archive .post-thumbnail img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-archive:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-archive .entry-header {
    padding: var(--mv-spacing-unit);
    padding-bottom: 0;
}

.entry-archive .entry-title {
    font-size: 1.3rem;
    margin-top: 0;
}

.entry-archive .entry-footer {
    padding: var(--mv-spacing-unit);
    margin-top: auto;
    border-top: 1px solid var(--mv-color-border-light);
    font-size: 0.85rem;
}

/*--------------------------------------------------------------
# Homepage
--------------------------------------------------------------*/
.section-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--mv-color-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mv-color-border-light);
    position: relative;
}

.dark-mode .section-title {
    color: var(--mv-dark-primary);
    border-bottom-color: var(--mv-dark-border);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: var(--mv-color-primary);
}

.dark-mode .section-title::after {
    background-color: var(--mv-dark-primary);
}

.featured-series-section {
    margin-bottom: 3rem;
}

.featured-series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-series-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--mv-color-background);
    display: flex;
    flex-direction: column;
}

.dark-mode .featured-series-card {
    background-color: var(--mv-dark-background-alt);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.featured-series-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.featured-series-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.featured-series-card-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-no-thumb {
    background-color: var(--mv-color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .featured-no-thumb {
    background-color: var(--mv-dark-border);
}

.featured-no-thumb i {
    font-size: 3rem;
    color: var(--mv-color-text-light);
}

.dark-mode .featured-no-thumb i {
    color: var(--mv-dark-text-light);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--mv-color-secondary);
    color: #fff;
    padding: 0.25em 0.8em;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.featured-series-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-series-card-title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    color: var(--mv-color-primary);
}

.dark-mode .featured-series-card-title {
    color: var(--mv-dark-primary);
}

.featured-series-card-meta {
    font-size: 0.9rem;
    color: var(--mv-color-text-light);
    margin-bottom: 0.75rem;
}

.dark-mode .featured-series-card-meta {
    color: var(--mv-dark-text-light);
}

.featured-series-card-count i {
    margin-right: 0.3rem;
}

.featured-series-card-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--mv-color-text);
    flex-grow: 1;
}

.dark-mode .featured-series-card-desc {
    color: var(--mv-dark-text);
}

.latest-chapters-section {
    margin-bottom: 2rem;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.2em;
    border-radius: 4px;
    background-color: var(--mv-color-background-alt);
    color: var(--mv-color-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dark-mode .pagination .page-numbers {
    background-color: var(--mv-dark-background-alt);
    color: var(--mv-dark-text);
}

.pagination .page-numbers.current {
    background-color: var(--mv-color-primary);
    color: #fff;
}

.dark-mode .pagination .page-numbers.current {
    background-color: var(--mv-dark-primary);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: var(--mv-color-border);
}

.dark-mode .pagination .page-numbers:hover:not(.current) {
    background-color: var(--mv-dark-border);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

.pagination i {
    font-size: 0.8rem;
}

/* Series/Category Page */
.series-header {
    background-color: var(--mv-color-background-alt);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--mv-color-border-light);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.dark-mode .series-header {
    background-color: var(--mv-dark-background-alt);
    border-color: var(--mv-dark-border);
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.series-title {
    font-family: var(--mv-font-manga-title);
    font-size: 2.5rem;
    color: var(--mv-color-primary);
    margin-top: 0;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.dark-mode .series-title {
    color: var(--mv-dark-primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.series-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.series-meta {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.series-chapter-count {
    display: inline-block;
    padding: 0.4em 1em;
    background-color: rgba(106, 27, 154, 0.1);
    border-radius: 20px;
    color: var(--mv-color-primary);
    font-weight: 600;
}

.dark-mode .series-chapter-count {
    background-color: rgba(187, 134, 252, 0.1);
    color: var(--mv-dark-primary);
}

.series-chapter-count i {
    margin-right: 0.4em;
}

.series-chapters-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.series-chapters-heading h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--mv-color-primary);
}

.dark-mode .series-chapters-heading h2 {
    color: var(--mv-dark-primary);
}

.series-chapter-order {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.series-chapter-order span {
    margin-right: 0.5rem;
    color: var(--mv-color-text-light);
}

.dark-mode .series-chapter-order span {
    color: var(--mv-dark-text-light);
}

.series-chapter-order a {
    display: inline-block;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    margin-left: 0.3rem;
    text-decoration: none;
    color: var(--mv-color-text);
    background-color: var(--mv-color-background-alt);
    transition: all 0.2s ease;
}

.dark-mode .series-chapter-order a {
    color: var(--mv-dark-text);
    background-color: var(--mv-dark-background-alt);
}

.series-chapter-order a:hover,
.series-chapter-order a.active {
    background-color: var(--mv-color-primary);
    color: #fff;
}

.dark-mode .series-chapter-order a:hover,
.dark-mode .series-chapter-order a.active {
    background-color: var(--mv-dark-primary);
}

.chapter-list-wrapper {
    background-color: var(--mv-color-background);
    border-radius: 8px;
    border: 1px solid var(--mv-color-border-light);
    overflow: hidden;
    margin-bottom: 2rem;
}

.dark-mode .chapter-list-wrapper {
    background-color: var(--mv-dark-background-alt);
    border-color: var(--mv-dark-border);
}

.chapters-list .chapter-item {
    border-bottom: 1px solid var(--mv-color-border-light);
    transition: background-color 0.2s ease;
    margin: 0;
}

.dark-mode .chapters-list .chapter-item {
    border-color: var(--mv-dark-border);
}

.chapters-list .chapter-item:last-child {
    border-bottom: none;
}

.chapters-list .chapter-item:hover {
    background-color: var(--mv-color-background-alt);
}

.dark-mode .chapters-list .chapter-item:hover {
    background-color: rgba(22, 33, 62, 0.7);
}

.chapter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none !important;
    color: inherit;
}

.chapter-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.chapter-number {
    background-color: rgba(255, 87, 34, 0.1);
    color: var(--mv-color-chapter-num);
    padding: 0.3em 0.8em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 1rem;
}

.dark-mode .chapter-number {
    background-color: rgba(255, 87, 34, 0.2);
    color: var(--mv-dark-secondary);
}

.chapter-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: var(--mv-color-text);
    transition: color 0.2s ease;
}

.dark-mode .chapter-title {
    color: var(--mv-dark-text);
}

.chapter-link:hover .chapter-title {
    color: var(--mv-color-primary);
}

.dark-mode .chapter-link:hover .chapter-title {
    color: var(--mv-dark-primary);
}

.chapter-meta {
    display: flex;
    align-items: center;
    color: var(--mv-color-text-light);
    font-size: 0.85rem;
}

.dark-mode .chapter-meta {
    color: var(--mv-dark-text-light);
}

.chapter-date i {
    margin-right: 0.4em;
}

@media (max-width: 768px) {
    .series-chapters-heading {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .series-chapter-order {
        margin-top: 1rem;
    }
    
    .chapter-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chapter-info {
        margin-bottom: 0.5rem;
    }
    
    .chapter-meta {
        align-self: flex-start;
    }
}

/*--------------------------------------------------------------
# Shortcodes
--------------------------------------------------------------*/
/* Chapter Links Shortcode */
.manga-chapter-links {
    margin-bottom: 2rem;
}

.manga-chapter-links h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--mv-color-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--mv-color-border-light);
}

.dark-mode .manga-chapter-links h3 {
    color: var(--mv-dark-primary);
    border-bottom-color: var(--mv-dark-border);
}

.chapter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: var(--mv-color-background);
    border: 1px solid var(--mv-color-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.dark-mode .chapter-list {
    background-color: var(--mv-dark-background-alt);
    border-color: var(--mv-dark-border);
}

.chapter-item {
    border-bottom: 1px solid var(--mv-color-border-light);
}

.dark-mode .chapter-item {
    border-color: var(--mv-dark-border);
}

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

.chapter-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.chapter-link:hover {
    background-color: var(--mv-color-background-alt);
}

.dark-mode .chapter-link:hover {
    background-color: rgba(22, 33, 62, 0.7);
}

.chapter-number {
    font-weight: 600;
    margin-right: 1rem;
    color: var(--mv-color-primary);
}

.dark-mode .chapter-number {
    color: var(--mv-dark-primary);
}

.chapter-title {
    margin: 0;
    font-size: 1rem;
}

/* Series Browser Shortcode */
.series-browser-wrapper {
    margin-bottom: 2rem;
}

.series-browser-grid {
    display: grid;
    gap: 1.5rem;
}

.series-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.series-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.series-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.series-browser-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--mv-color-background);
}

.dark-mode .series-browser-item {
    background-color: var(--mv-dark-background-alt);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.series-browser-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.series-browser-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.series-browser-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.series-no-thumb {
    background-color: var(--mv-color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode .series-no-thumb {
    background-color: var(--mv-dark-border);
}

.series-no-thumb i {
    font-size: 3rem;
    color: var(--mv-color-text-light);
}

.dark-mode .series-no-thumb i {
    color: var(--mv-dark-text-light);
}

.series-browser-content {
    padding: 1rem;
}

.series-browser-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--mv-color-primary);
    font-weight: 600;
}

.dark-mode .series-browser-title {
    color: var(--mv-dark-primary);
}

.series-browser-meta {
    font-size: 0.85rem;
    color: var(--mv-color-text-light);
    margin-bottom: 0.5rem;
}

.dark-mode .series-browser-meta {
    color: var(--mv-dark-text-light);
}

.series-browser-count i {
    margin-right: 0.3rem;
}

.series-browser-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--mv-color-text);
}

.dark-mode .series-browser-desc {
    color: var(--mv-dark-text);
}

/*--------------------------------------------------------------
# Layout & Structure
--------------------------------------------------------------*/
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* Ensure footer stays at bottom */
}

#content {
	flex-grow: 1; /* Allows content to push footer down */
	padding-top: var(--mv-spacing-unit);
	padding-bottom: calc(var(--mv-spacing-unit) * 2);
	display: flex; /* Enable flex for sidebar layout */
	flex-wrap: wrap; /* Allow sidebar to wrap on small screens */
	max-width: var(--mv-site-max-width);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
    padding-left: var(--mv-spacing-unit);
    padding-right: var(--mv-spacing-unit);
}

#primary {
	width: 100%; /* Default to full width */
}

#secondary {
    width: 100%; /* Default to full width */
    margin-top: calc(var(--mv-spacing-unit) * 2);
}

/* Sidebar layout for larger screens */
@media (min-width: 992px) { /* Adjust breakpoint as needed */
	body:not(.no-sidebar) #primary {
		flex: 1; /* Take up remaining space */
        max-width: var(--mv-content-width); /* Or calc(100% - var(--mv-sidebar-width) - var(--mv-spacing-unit)); */
        margin-right: var(--mv-spacing-unit); /* Gap between content and sidebar */
	}

	body:not(.no-sidebar) #secondary {
		flex: 0 0 var(--mv-sidebar-width); /* Fixed width sidebar */
        width: var(--mv-sidebar-width);
        margin-top: 0;
	}

    /* Optional: Left sidebar layout */
    body.left-sidebar #primary {
        order: 2; /* Move content to the right */
        margin-right: 0;
        margin-left: var(--mv-spacing-unit);
    }
    body.left-sidebar #secondary {
        order: 1; /* Move sidebar to the left */
    }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
	background-color: var(--mv-color-background-alt);
	padding: 0 var(--mv-spacing-unit);
	border-bottom: 1px solid var(--mv-color-border-light);
}

.site-branding-container {
    display: flex;
    flex-wrap: wrap; /* Allow search to wrap below on small screens */
    align-items: center;
    justify-content: space-between;
    max-width: var(--mv-site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: calc(var(--mv-spacing-unit) / 2) 0;
}

.site-branding {
	margin-right: var(--mv-spacing-unit); /* Space between logo and search */
    flex-shrink: 0; /* Prevent shrinking */
}

.site-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin: 0;
    font-family: var(--mv-font-manga-title);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-title a {
    text-decoration: none;
    color: var(--mv-color-primary);
    transition: all 0.3s ease;
}

.site-title a:hover {
    color: var(--mv-color-secondary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.site-description {
	font-size: 0.9rem;
	color: var(--mv-color-text-light);
	margin: 0.25em 0 0 0;
}

.custom-logo {
    max-height: var(--mv-header-height); /* Limit logo height */
    width: auto;
}

/* Header Search Form */
.site-search {
    flex-grow: 1; /* Allow it to take space */
    max-width: 400px; /* Limit search width */
    margin-left: auto; /* Push to right if space allows */
}

.search-form {
    display: flex;
    border: 1px solid var(--mv-color-border);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--mv-color-background);
}

.search-field {
    flex-grow: 1;
    padding: 0.5em 0.75em;
    border: none;
    background: transparent;
    outline: none;
}

.search-submit {
    background-color: var(--mv-color-primary);
    border: none;
    padding: 0.5em 0.75em;
    color: #fff;
    transition: background-color 0.2s ease;
}
.search-submit:hover,
.search-submit:focus {
    background-color: var(--mv-color-secondary);
}
.search-icon {
    fill: currentColor;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}


/* Main Navigation */
.main-navigation {
	display: flex; /* Use flex for centering */
	justify-content: center; /* Center navigation items */
	background-color: var(--mv-color-primary); /* Example nav background */
	padding: 0 var(--mv-spacing-unit);
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
}

.primary-menu li {
	margin: 0 0.5em; /* Spacing between menu items */
	position: relative; /* For submenus */
}

.primary-menu a {
	display: block;
	padding: 0.8em 1em;
	color: #ffffff; /* Example link color */
	text-decoration: none;
	font-weight: 500;
    transition: all 0.2s ease;
}

.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--mv-color-secondary);
    text-decoration: none;
}

/* Submenu Basic Styles (We'll hide these on mobile later) */
.primary-menu ul {
	display: none; /* Hidden by default */
	position: absolute;
	left: 0;
	top: 100%;
	background-color: var(--mv-color-primary);
	padding: 0;
	margin: 0;
	min-width: 180px;
	z-index: 100;
	box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.primary-menu ul ul {
	left: 100%;
	top: 0;
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
	display: block;
}

.primary-menu ul a {
	padding: 0.75em 1em;
	width: 100%; /* Make submenu links full width */
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
	display: none; /* Hidden by default */
	background: none;
	border: none;
	padding: 0.5em;
	margin-left: auto; /* Pushes toggle to the right */
	color: #ffffff; /* Match nav text color */
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

/* Responsive Navigation (Simple example) */
@media (max-width: 767px) { /* Adjust breakpoint as needed */
	.menu-toggle {
		display: block;
	}
    .main-navigation {
        justify-content: flex-end; /* Align toggle button right */
        position: relative; /* Needed for absolute menu */
    }
	.primary-menu {
        display: none; /* Hide desktop menu */
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		right: 0;
		background-color: var(--mv-color-primary); /* Same as header nav */
        flex-direction: column;
        padding: var(--mv-spacing-unit) 0;
        box-shadow: 0 3px 5px rgba(0,0,0,0.2);
        z-index: 1000; /* Ensure menu appears above content */
	}
    .primary-menu li {
        margin: 0;
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .primary-menu li:first-child {
        border-top: none;
    }
    .primary-menu a {
        padding: 1em;
    }
    .primary-menu ul { /* Hide submenus on mobile for simplicity, can be added later */
        display: none !important;
    }
    /* When mobile menu is toggled open */
    .main-navigation.toggled .primary-menu {
        display: flex;
    }
}

/*--------------------------------------------------------------
# Content Area
--------------------------------------------------------------*/
.entry-header {
	margin-bottom: var(--mv-spacing-unit);
}

.entry-title {
	margin-top: 0;
	margin-bottom: 0.25em;
}

.entry-meta {
	font-size: 0.9rem;
	color: var(--mv-color-text-light);
	margin-bottom: var(--mv-spacing-unit);
}
.entry-meta span {
    margin-right: 1em;
}
.entry-meta a {
    color: inherit;
}
.entry-meta a:hover {
    color: var(--mv-color-primary);
}

.entry-content p:first-child {
    margin-top: 0;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

.post-thumbnail {
    margin-bottom: var(--mv-spacing-unit);
}
.entry-single .post-thumbnail {
    margin-bottom: calc(var(--mv-spacing-unit) * 1.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.entry-page .post-thumbnail {
    margin-bottom: calc(var(--mv-spacing-unit) * 1.5);
}

.entry-footer {
    margin-top: calc(var(--mv-spacing-unit) * 1.5);
    font-size: 0.9rem;
    color: var(--mv-color-text-light);
    border-top: 1px solid var(--mv-color-border-light);
    padding-top: var(--mv-spacing-unit);
}
.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer .edit-link {
    display: block;
    margin-bottom: 0.5em;
}

/* Posts wrapper for grid/masonry later */
.posts-wrapper {
    /* Basic list style */
}

.entry-archive {
    margin-bottom: calc(var(--mv-spacing-unit) * 2);
    padding-bottom: calc(var(--mv-spacing-unit) * 2);
    border-bottom: 1px solid var(--mv-color-border-light);
}
.entry-archive:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.entry-search {
    display: flex; /* Align thumbnail and text */
    align-items: flex-start;
    gap: var(--mv-spacing-unit); /* Space between thumb and text */
    margin-bottom: var(--mv-spacing-unit);
    padding-bottom: var(--mv-spacing-unit);
    border-bottom: 1px solid var(--mv-color-border-light);
}
.entry-search .search-thumbnail {
    flex-shrink: 0;
    width: 100px; /* Fixed thumbnail size */
    margin-bottom: 0;
}
.entry-search .entry-container {
    flex-grow: 1;
}
.entry-search .entry-header {
    margin-bottom: 0.5em;
}
.entry-search .entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.1em;
}
.entry-search .entry-meta {
    font-size: 0.8rem;
    margin-bottom: 0.5em;
}
.entry-search .entry-summary {
    font-size: 0.95rem;
    margin-bottom: 0.5em;
}
.entry-search .entry-footer {
    margin-top: 0.5em;
    padding-top: 0.5em;
    font-size: 0.8rem;
    border-top: none;
}


/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.widget-area .widget {
	margin-bottom: calc(var(--mv-spacing-unit) * 2);
	padding: var(--mv-spacing-unit);
	background-color: var(--mv-color-background-alt);
    border: 1px solid var(--mv-color-border-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-area .widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.widget-area .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
	font-size: 1.2rem;
	margin-top: 0;
	margin-bottom: var(--mv-spacing-unit);
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--mv-color-border);
    color: var(--mv-color-primary);
}

.widget ul {
	list-style: none;
	padding-left: 0;
    margin-bottom: 0; /* Remove default bottom margin inside widget */
}
.widget ul li {
    padding: 0.4em 0;
    border-bottom: 1px dotted var(--mv-color-border-light);
    transition: background-color 0.2s ease;
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    text-decoration: none;
    display: block;
    padding: 0.2em 0;
    transition: transform 0.2s ease;
}
.widget ul li a:hover {
    transform: translateX(5px);
}

/* Featured Series Widget */
.featured-series-list {
    margin: 0;
    padding: 0;
}

.featured-series-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dotted var(--mv-color-border-light);
}

.dark-mode .featured-series-item {
    border-bottom-color: var(--mv-dark-border);
}

.featured-series-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.featured-series-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none !important;
}

.featured-series-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--mv-color-border-light);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dark-mode .featured-series-thumb {
    background-color: var(--mv-dark-border);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.featured-series-link:hover .featured-series-thumb {
    transform: scale(1.1);
}

.featured-series-info {
    flex-grow: 1;
}

.featured-series-title {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    color: var(--mv-color-primary);
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.dark-mode .featured-series-title {
    color: var(--mv-dark-primary);
}

.featured-series-link:hover .featured-series-title {
    color: var(--mv-color-secondary);
}

.dark-mode .featured-series-link:hover .featured-series-title {
    color: var(--mv-dark-secondary);
}

.featured-series-count {
    font-size: 0.8rem;
    color: var(--mv-color-text-light);
    display: block;
}

.dark-mode .featured-series-count {
    color: var(--mv-dark-text-light);
}

/* Recent Chapters Widget */
.recent-chapters-list {
    margin: 0;
    padding: 0;
}

.recent-chapter-item {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px dotted var(--mv-color-border-light);
}

.dark-mode .recent-chapter-item {
    border-bottom-color: var(--mv-dark-border);
}

.recent-chapter-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-chapter-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none !important;
}

.recent-chapter-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.recent-chapter-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.recent-chapter-link:hover .recent-chapter-thumb img {
    transform: scale(1.1);
}

.recent-chapter-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chapter-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mv-color-chapter-num);
    background-color: rgba(255, 87, 34, 0.1);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    margin-bottom: 0.2rem;
    align-self: flex-start;
}

.dark-mode .chapter-number {
    background-color: rgba(255, 87, 34, 0.2);
    color: var(--mv-dark-secondary);
}

.chapter-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    color: var(--mv-color-text);
    transition: color 0.2s ease;
}

.dark-mode .chapter-title {
    color: var(--mv-dark-text);
}

.recent-chapter-link:hover .chapter-title {
    color: var(--mv-color-primary);
}

.dark-mode .recent-chapter-link:hover .chapter-title {
    color: var(--mv-dark-primary);
}

.chapter-series {
    font-size: 0.8rem;
    color: var(--mv-color-manga-series);
}

.dark-mode .chapter-series {
    color: var(--mv-dark-primary);
}

.chapter-date {
    font-size: 0.75rem;
    color: var(--mv-color-text-light);
}

.dark-mode .chapter-date {
    color: var(--mv-dark-text-light);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background-color: var(--mv-color-text); /* Dark footer example */
	color: #cccccc; /* Light text on dark bg */
	padding: calc(var(--mv-spacing-unit) * 2) var(--mv-spacing-unit);
	margin-top: auto; /* Pushes footer down */
}

.footer-widgets-container {
    max-width: var(--mv-site-max-width);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: calc(var(--mv-spacing-unit) * 2);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--mv-spacing-unit); /* Space between widget columns */
}

.footer-widgets .widget-column {
    flex-basis: 100%; /* Full width on mobile */
    flex-grow: 1;
}

@media (min-width: 768px) { /* Adjust breakpoint for footer columns */
    .footer-widgets .widget-column {
        flex-basis: calc(33.333% - var(--mv-spacing-unit)); /* Example for 3 columns */
    }
}

.footer-widgets .widget {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: var(--mv-spacing-unit);
}

.footer-widgets .widget-title {
    color: #ffffff; /* White title on dark bg */
    border-bottom-color: #555555; /* Darker border */
    font-size: 1.1rem;
}

.footer-widgets ul li {
    border-bottom-color: #444444; /* Darker dotted border */
}

.site-info {
	max-width: var(--mv-site-max-width);
    margin-left: auto;
    margin-right: auto;
	text-align: center;
	font-size: 0.9rem;
	color: #aaaaaa; /* Lighter grey for credits */
    padding-top: var(--mv-spacing-unit);
    border-top: 1px solid #444444; /* Separator line */
}

.site-info a {
	color: #ffffff; /* White links */
	text-decoration: underline;
}
.site-info a:hover,
.site-info a:focus {
    color: var(--mv-color-secondary);
}
.site-info span {
    margin: 0 0.5em;
}

/*--------------------------------------------------------------
# Comments
--------------------------------------------------------------*/
.comments-area {
    margin-top: calc(var(--mv-spacing-unit) * 2);
    padding-top: calc(var(--mv-spacing-unit) * 2);
    border-top: 1px solid var(--mv-color-border);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: var(--mv-spacing-unit);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list li {
    margin-bottom: calc(var(--mv-spacing-unit) * 1.5);
    padding-bottom: calc(var(--mv-spacing-unit) * 1.5);
    border-bottom: 1px dotted var(--mv-color-border-light);
}
.comment-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-body {
    position: relative;
    padding-left: 80px; /* Space for avatar */
    min-height: 60px; /* Ensure space for avatar */
}

.comment-author img.avatar {
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 50%; /* Rounded avatars */
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--mv-color-text-light);
    margin-bottom: 0.5em;
}
.comment-metadata a {
    color: inherit;
}

.comment-content {
    clear: both; /* Ensure it clears floated elements if any */
}

.reply .comment-reply-link {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 0.25em;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75em;
    border: 1px solid var(--mv-color-border);
    border-radius: 3px;
    margin-bottom: var(--mv-spacing-unit);
    background-color: var(--mv-color-background);
}
.comment-form textarea {
    min-height: 120px;
}

.comment-form .form-submit input[type="submit"] {
    background-color: var(--mv-color-primary);
    color: #ffffff;
    border: none;
    padding: 0.8em 1.5em;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}
.comment-form .form-submit input[type="submit"]:hover,
.comment-form .form-submit input[type="submit"]:focus {
    background-color: var(--mv-color-secondary);
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: var(--mv-color-text-light);
    margin-bottom: var(--mv-spacing-unit);
}

/* Dark mode comment form adjustments */
.dark-mode .comment-form input[type="text"],
.dark-mode .comment-form input[type="email"],
.dark-mode .comment-form input[type="url"],
.dark-mode .comment-form textarea {
    background-color: var(--mv-dark-background);
    border-color: var(--mv-dark-border);
    color: var(--mv-dark-text);
}

.dark-mode .comment-form .form-submit input[type="submit"] {
    background-color: var(--mv-dark-primary);
}
.dark-mode .comment-form .form-submit input[type="submit"]:hover,
.dark-mode .comment-form .form-submit input[type="submit"]:focus {
    background-color: var(--mv-dark-secondary);
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 576px) {
    .site-branding-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .site-search {
        margin-top: 1rem;
        margin-left: 0;
    }
    
    .entry-single .entry-title {
        font-size: 2.2rem;
    }
    
    .entry-search {
        flex-direction: column;
    }
    
    .entry-search .search-thumbnail {
        width: 100%;
        margin-bottom: 1rem;
    }
}


/*--------------------------------------------------------------
# Hero Header Styles
--------------------------------------------------------------*/
.manga-hero-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}

.manga-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

.manga-hero-content {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 10;
}

.hero-site-branding {
    margin-bottom: 2rem;
}

.hero-site-branding .site-title {
    font-family: var(--mv-font-manga-title);
    font-size: 3.5rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.hero-site-branding .site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-site-branding .site-title a:hover {
    color: var(--mv-color-secondary);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.hero-site-branding .site-description {
    color: #f0f0f0;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-search-container {
    margin-top: 2rem;
}

.hero-search-title h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-search-form .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.hero-search-form .search-field {
    flex-grow: 1;
    padding: 0.9em 1.5em;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.1rem;
    outline: none;
}

.hero-search-form .search-field::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.hero-search-form .search-submit {
    background-color: var(--mv-color-primary);
    border: none;
    padding: 0.8em 1.5em;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.hero-search-form .search-submit:hover {
    background-color: var(--mv-color-secondary);
}

/* Site Header & Navigation after Hero */
.site-header {
    background-color: var(--mv-color-primary);
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--mv-site-max-width);
    margin: 0 auto;
    padding: 0 var(--mv-spacing-unit);
    display: flex;
    justify-content: space-between;
}

.main-navigation {
    width: 100%;
}

.primary-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    margin: 0;
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 1em 1.5em;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--mv-color-secondary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    padding: 1em;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .manga-hero-header {
        height: 450px;
    }
    
    .hero-site-branding .site-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 767px) {
    .manga-hero-header {
        height: 400px;
    }
    
    .hero-site-branding .site-title {
        font-size: 2.2rem;
    }
    
    .hero-search-title h2 {
        font-size: 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--mv-color-primary);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 1000;
    }
    
    .primary-menu li {
        text-align: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .primary-menu a {
        padding: 0.8em;
    }
    
    .main-navigation.toggled .primary-menu {
        display: flex;
    }
}

@media (max-width: 480px) {
    .manga-hero-header {
        height: 350px;
    }
    
    .hero-site-branding .site-title {
        font-size: 1.8rem;
    }
    
    .hero-search-form .search-field,
    .hero-search-form .search-submit {
        font-size: 0.9rem;
        padding: 0.7em 1em;
    }
}


/*--------------------------------------------------------------
# Enhanced Homepage Styles
--------------------------------------------------------------*/

/* Featured Series Slider */
.featured-slider-section {
    margin-bottom: 3rem;
    position: relative;
}

.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.dark-mode .featured-slider {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.featured-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.featured-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
    height: 450px;
}

.featured-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.featured-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.featured-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 3;
    color: #fff;
}

.featured-slide-badge {
    display: inline-block;
    background-color: var(--mv-color-secondary);
    color: #fff;
    padding: 0.25em 1em;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.featured-slide-title {
    font-family: var(--mv-font-manga-title);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-slide-desc {
    font-size: 1.1rem;
    max-width: 800px;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.featured-slide-meta {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.featured-slide-chapters {
    margin-right: 1.5rem;
}

.featured-slide-chapters i,
.featured-slide-updated i {
    margin-right: 0.5rem;
}

.featured-slide-link {
    display: inline-block;
    background-color: var(--mv-color-primary);
    color: #fff;
    padding: 0.75em 1.5em;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.featured-slide-link:hover {
    background-color: var(--mv-color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background-color: rgba(255,255,255,0.3);
    text-decoration: none;
    color: #fff;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--mv-color-border);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .slider-dot {
    background-color: var(--mv-dark-border);
}

.slider-dot.active {
    background-color: var(--mv-color-primary);
    transform: scale(1.2);
}

.dark-mode .slider-dot.active {
    background-color: var(--mv-dark-primary);
}

/* Series Grid Layout */
.series-grid-section {
    margin-bottom: 3rem;
}

.series-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.series-grid-title {
    font-size: 1.8rem;
    margin: 0;
}

.series-grid-filter {
    display: flex;
    align-items: center;
}

.filter-label {
    margin-right: 0.75rem;
    font-weight: 600;
}

.filter-options {
    display: flex;
}

.filter-option {
    padding: 0.5em 1em;
    margin-left: 0.5rem;
    border-radius: 4px;
    background-color: var(--mv-color-background-alt);
    color: var(--mv-color-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode .filter-option {
    background-color: var(--mv-dark-background-alt);
    color: var(--mv-dark-text);
}

.filter-option.active {
    background-color: var(--mv-color-primary);
    color: #fff;
}

.dark-mode .filter-option.active {
    background-color: var(--mv-dark-primary);
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.series-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: var(--mv-color-background);
}

.dark-mode .series-card {
    background-color: var(--mv-dark-background-alt);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.series-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.series-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.series-card-thumb {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
}

.series-card-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--mv-color-primary);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dark-mode .series-card-number {
    background-color: var(--mv-dark-primary);
}

.series-card-chapters {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25em 0.75em;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.series-card-chapters i {
    margin-right: 0.3rem;
}

.series-card-content {
    padding: 1rem;
}

.series-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-card-updated {
    font-size: 0.8rem;
    color: var(--mv-color-text-light);
    margin-top: 0.3rem;
}

.dark-mode .series-card-updated {
    color: var(--mv-dark-text-light);
}

.series-grid-pagination {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 991px) {
    .featured-slide {
        height: 400px;
    }
    
    .featured-slide-title {
        font-size: 2rem;
    }
    
    .featured-slide-desc {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .featured-slide {
        height: 350px;
    }
    
    .featured-slide-title {
        font-size: 1.8rem;
    }
    
    .featured-slide-content {
        padding: 1.5rem;
    }
    
    .series-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .series-grid-filter {
        margin-top: 1rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .featured-slide {
        height: 300px;
    }
    
    .featured-slide-title {
        font-size: 1.5rem;
    }
    
    .featured-slide-desc {
        font-size: 0.9rem;
    }
    
    .featured-slide-content {
        padding: 1rem;
    }
    
    .filter-options {
        flex-wrap: wrap;
    }
    
    .filter-option {
        margin-top: 0.5rem;
    }
}

