/* Custom CSS for Madara Theme's Advanced Search */

/* This targets the main text in the search options */
.search-advanced-form label,
.search-advanced-form select,
.search-advanced-form input[type="text"],
.search-advanced-form input[type="search"],
.search-advanced-form .search-label {
    color: #000000 !important;
}

/* This targets the placeholder text (the gray text inside the input fields) */
.search-advanced-form input::placeholder {
    color: #555555 !important;
}

/* This targets the text in the search button */
.search-advanced-form .search-button,
.search-advanced-form .button-search {
    color: #000000 !important;
}



/*
 * Fix for invisible text in the advanced search form's
 * Chapter Count number input.
 */
.search-advanced-form input[type="number"] {
    color: #333333 !important;
}

/* Fix for the placeholder text color */
.search-advanced-form input[type="number"]::placeholder {
  color: #888888 !important;
  opacity: 1;
}

.search-advanced-form input[type="number"]:-ms-input-placeholder {
  color: #888888 !important;
}

.search-advanced-form input[type="number"]::-ms-input-placeholder {
  color: #888888 !important;
}



/* Custom Font Loading for Manga OCR
  Paste this code into Appearance > Customize > Additional CSS
*/

@font-face {
  font-family: 'Action Man';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/Action-Man.ttf');
}

@font-face {
  font-family: 'Comic Book';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/Comic-Book.otf');
}

@font-face {
  font-family: 'Anime Ace';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/10/animeace2_bld.ttf');
}

@font-face {
  font-family: 'Badaboom';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/BADABB__.ttf');
}

@font-face {
  font-family: 'SmackAttack';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/smackattack-bb.regular.ttf');
}

@font-face {
  font-family: 'ACME Secret Agent';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/acmesa.ttf');
}

@font-face {
  font-family: 'Comic Chuck';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/ComicChuck.ttf');
}

@font-face {
  font-family: 'Ames';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/Ames-Regular.otf');
}

@font-face {
  font-family: 'Komika Display';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/KMKDSP__.ttf');
}

@font-face {
  font-family: 'Komika Axis';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/KOMIKAX_.ttf');
}

@font-face {
  font-family: 'Komika Hands';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/KOMIKAH_.ttf');
}

@font-face {
  font-family: 'Komika Title';
  src: url('https://manhuarmtl.com/wp-content/uploads/2025/09/KOMTIT__.ttf');
}



/*
===================================================================
 FIX FOR ADVANCED SEARCH BUTTON THEME MODE COLORS
===================================================================
*/

/* --- Light Mode Styles --- */

/* This is the style for the button when the advanced panel is OPEN (outline style) */
.btn-search-adv {
    background-color: transparent !important;
    border: 2px solid #555555 !important;
    color: #333333 !important;
    transition: all 0.3s ease !important;
}

/* This is the style for the button when the panel is CLOSED or when you HOVER over it (solid style) */
.btn-search-adv.collapsed,
.btn-search-adv:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}


/* --- Dark Mode Overrides --- */

/* This is the style for the button in DARK MODE when the panel is OPEN (outline style) */
body.dark .btn-search-adv {
    background-color: transparent !important;
    border: 2px solid #cccccc !important;
    color: #dddddd !important;
}

/* This is the style for the button in DARK MODE when the panel is CLOSED or when you HOVER over it (solid style) */
body.dark .btn-search-adv.collapsed,
body.dark .btn-search-adv:hover {
    background-color: #eeeeee !important;
    border-color: #eeeeee !important;
    color: #111111 !important;
}


/*
===================================================================
 CUSTOM STYLES FOR WP ADMIN BAR (LIGHT & DARK MODES)
===================================================================
*/

/* --- 1. CUSTOM LIGHT MODE STYLES --- */

/* Main admin bar background */
#wpadminbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Main text and icon color */
#wpadminbar .ab-item,
#wpadminbar .ab-icon:before,
#wpadminbar #wp-admin-bar-site-name > .ab-item:before {
    color: #333333 !important;
}

/* Hover states for top-level items */
#wpadminbar .ab-item:hover,
#wpadminbar li:hover > .ab-item,
#wpadminbar .ab-top-menu > li.hover > .ab-item {
    background: #f0f0f0 !important;
    color: #111111 !important;
}

/* Dropdown menu background */
#wpadminbar .ab-submenu {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Dropdown menu item text and hover states */
#wpadminbar .ab-submenu .ab-item {
    color: #333333 !important;
}
#wpadminbar .ab-submenu .ab-item:hover {
    color: #111111 !important;
    background: #f0f0f0 !important;
}

/* --- 2. DARK MODE OVERRIDES --- */

/* Main admin bar background */
body.dark #wpadminbar {
    background: #252525 !important;
    border-bottom: 1px solid #3a3a3a !important;
}

/* Main text and icon color */
body.dark #wpadminbar .ab-item,
body.dark #wpadminbar .ab-icon:before,
body.dark #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
    color: #eeeeee !important;
}

/* Hover states for top-level items */
body.dark #wpadminbar .ab-item:hover,
body.dark #wpadminbar li:hover > .ab-item,
body.dark #wpadminbar .ab-top-menu > li.hover > .ab-item {
    background: #3a3a3a !important;
    color: #ffffff !important;
}

/* Dropdown menu background */
body.dark #wpadminbar .ab-submenu {
    background: #252525 !important;
    border-color: #3a3a3a !important;
}

/* Dropdown menu item text and hover states */
body.dark #wpadminbar .ab-submenu .ab-item {
    color: #eeeeee !important;
}
body.dark #wpadminbar .ab-submenu .ab-item:hover {
    color: #ffffff !important;
    background: #3a3a3a !important;
}


/*
===================================================================
 FIX FOR MANGA DETAIL SUMMARY PANEL BACKGROUND
===================================================================
 This removes the background image and applies the correct 
 solid colors for both Light and Dark modes.
*/

/* --- 1. LIGHT MODE --- */

/* Forcefully remove the background image and set a custom light background color */
.profile-manga {
    background-image: none !important;
    background-color: #f0f2f5 !important; /* A clean, light grey for the banner */
}

/* Make the inner content boxes transparent to show the new banner color */
.profile-manga .summary_content, 
.profile-manga .summary_image {
    background-color: transparent !important;
}


/* --- 2. DARK MODE --- */

/* Set a custom dark background color */
body.dark .profile-manga {
    background-color: #212529 !important;
}


.banner-container {
  width: 610px;
  height: 250px;
  display: flex;
  justify-content: space-between; /* Adds 10px gap between boxes */
  margin: 0 auto; /* Centers container horizontally */
  border: 1px solid #ccc; /* optional, for visualization */
}

.banner-box {
  width: 300px;
  height: 100%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #999; /* optional, for visualization */
}



/* Make manga widget titles sync with header text color */
.widget-title a {
  color: var(--heading-color, var(--text-color, inherit)) !important;
}

.recentcomments a {
	color: #0596f0 !important;
}

/* If your theme uses body classes instead of CSS variables */
body.dark-mode .widget-title a,
body[data-theme="dark"] .widget-title a {
  color: #fff !important;
}

body.light-mode .widget-title a,
body[data-theme="light"] .widget-title a {
  color: #000 !important;
}


/*
 * Minimal and theme-adaptable styling for the copyright notice widget.
 * Uses CSS variables for easy color overriding.
 */

#copyright-widget-notice {
    /* --- Light Mode Defaults (Purple Theme) --- */
    --notice-bg: #f3e8ff;    /* Lightest lavender background */
    --notice-text: #5b21b6;  /* Deep purple text */
    --notice-link: #7c3aed;  /* Medium purple accent */
    
    background-color: var(--notice-bg);
    color: var(--notice-text);
    /* A subtle purple border to act as a visual separator */
    border-left: 5px solid var(--notice-link); 
    padding: 1.25rem;
    border-radius: 0.5rem;
    font-family: inherit; /* Inherit font from the main theme */
    line-height: 1.5;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

#copyright-widget-notice a {
    color: var(--notice-link);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

#copyright-widget-notice a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* --- Dark Mode Adaptation --- */

/* 1. Adapts to user's system preference (most modern way) */
body.dark #copyright-widget-notice {
        --notice-bg: #37154d; /* Dark purple background */
        --notice-text: #e9d5ff; /* Very light purple text */
        --notice-link: #a78bfa; /* Lighter, contrasting link */
    }


/* 2. Fallback for themes that explicitly add a 'dark-mode' or 'dark' class to the body */
body.dark-mode #copyright-widget-notice,
body.dark #copyright-widget-notice {
    --notice-bg: #37154d;
    --notice-text: #e9d5ff;
    --notice-link: #a78bfa;
}



/* This targets the links inside your specific list */
.list-unstyled li a {
    color: inherit; /* Takes the color from the parent theme */
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* Optional: Add a subtle hover effect that stays in theme */
.list-unstyled li a:hover {
    opacity: 0.7;
}

/* Light Mode: Match Header Text (#111111) */
.manga-action .action_icon i {
    color: #111111 !important;
    font-size: 20px; /* Adjust size if needed */
}

.manga-action .action_detail span {
    color: #111111 !important;
}

/* Dark Mode: Match Header Text (#ffffff) */
body.dark .manga-action .action_icon i,
body.dark .manga-action .action_detail span {
    color: #ffffff !important;
}

.chapter-readmore {
    color: inherit !important;
}

.post-on.font-meta span {
	color: #000000 !important;
}

body.dark .mange-name .chapter a:visited {
	color:#0596f0 !important;
}

.mange-name .chapter a:visited {
	color:#8729f2 !important;
}



.widget-heading .heading {
	color : #ffffff !important
}






/* --- ADAPTIVE SUPPORT WIDGET (LIGHT & DARK MODE) --- */

.mrm-support-box {
    /* Default: Light Mode (Lighter Purple background) */
    background: #f3e8ff !important; 
    border: 1px solid #9b59b6 !important;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

/* --- Dark Mode Override --- */
body.dark .mrm-support-box {
    background: #120522 !important; /* Original Dark Purple */
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.mrm-alert-bar {
    background: #e74c3c !important;
    padding: 6px;
    text-align: center;
    color: #ffffff !important; /* Alert bar text always white */
}

.mrm-main-content {
    padding: 18px 15px;
    text-align: center;
}

/* Text Colors: Default to Dark for Light Mode */
.mrm-main-content h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700;
    color: #2d3436 !important; 
}

.mrm-main-content p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    color: #636e72 !important; 
    margin-bottom: 12px !important;
}

/* Dark Mode Text Overrides */
body.dark .mrm-main-content h3 { color: #ffffff !important; }
body.dark .mrm-main-content p { color: #bdc3c7 !important; }

/* Reward Box */
.mrm-reward-card {
    background: rgba(155, 89, 182, 0.1) !important;
    border: 1px solid rgba(155, 89, 182, 0.2) !important;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.mrm-reward-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem !important;
    color: #27ae60 !important; /* Green for visibility */
    font-weight: 600;
}

/* The Button - Stays Purple in both modes */
.mrm-primary-btn {
    display: block;
    background: #9b59b6 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    border-bottom: 3px solid #8e44ad !important;
}

.mrm-primary-btn:hover {
    background: #8e44ad !important;
    transform: translateY(-1px);
}

.mrm-footer-note {
    margin-top: 10px !important;
    font-size: 0.65rem !important;
    color: #95a5a6 !important;
}



/* Font Awesome Import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');


.nav-links a {
	color: inherit !important;
}




/* 1. Force the backdrop down to standard Bootstrap levels */
.modal-backdrop.show {
    z-index: 1040 !important;
}

/* 2. Push the main modal container above the backdrop */
#adult_modal {
    z-index: 1050 !important;/* Restores clickability */
}

/* 3. Ensure the inner dialog box inside the modal is also clickable and elevated */
#adult_modal .modal-dialog {
    z-index: 1060 !important;
}


