/*
Theme Name: MangaReader Child Custom
Theme URI: https://themesia.com/mangareader-wordpress-theme
Author: Themesia
Author URI: https://themesia.com
Description: Child theme for MangaReader.
Template: mangareader
Version: 1.0.2
Tags: black, yellow, blue, purple, light, two-columns, right-sidebar, custom-header, custom-menu, featured-images
Text Domain: mangareader-child
*/

/*------------------------------
  BODY
------------------------------*/

body {
    font-size: 16px;
}



/*------------------------------
  BASIC UTILS
------------------------------*/

.margin-bottom-xs { margin-bottom: 4px; }
.margin-bottom-s  { margin-bottom: 8px; }
.margin-bottom-m  { margin-bottom: 16px; }
.margin-bottom-l  { margin-bottom: 24px; }
.margin-bottom-xl { margin-bottom: 32px; }
.margin-bottom-xxl { margin-bottom: 40px; }

.display-flex{
  display:flex;
  gap: 20px;
}

/*------------------------------
  LOGO ADJUSTMENT (Mobile)
------------------------------*/
@media (max-width: 768px) {
  .logos img {
    max-height: 50px !important;
  }
}

@media only screen and (max-width: 890px) {
    .logos img {
        max-height: 50px !important;
    }
}

/*------------------------------
  HEADER RIGHT SECTION
  (Darkmode + Language Switcher)
------------------------------*/
.header-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-right: 10px;
  padding: 12px 0;
}

@media (max-width: 768px) {
  .header-options {
    gap: 5px;
    padding-top: 0;
  }
}

/* Hide "Dark?" label */
#thememode .xt {
  display: none;
}

/* Top margin for alignment */
#thememode,
#lang-switcher {
  margin-top: 14px;
}

/*------------------------------
  LANGUAGE SWITCHER FLAGS
------------------------------*/
#lang-switcher li {
  list-style: none;
  display: inline-block;
}

#lang-switcher li:not(:last-child)::after {
  content: "|";
  margin: 0 8px;
  color: #616660;
  font-size: 21px;
}

#lang-switcher img {
  width: 24px !important;
  height: auto !important;
  border-radius: 2px;
}

/* Flag spacing on mobile */
@media (max-width: 768px) {
  #lang-switcher li:not(:last-child)::after {
    margin: 0 2px;
  }
}

/*------------------------------
  DARK MODE SWITCH
------------------------------*/
.switch {
  width: 60px;
  height: 30px;
}

/* Switch background and center icon */
.switch .slider {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Circle inside switch (moon/sun icon) */
.switch .slider:before {
  content: "🌙";
  font-size: 16px;
  height: 27px;
  width: 26px;
  border-radius: 34px;
  padding-top: 5px;
  transform: translateX(0);
  transition: transform 0.3s ease;
  color: rgb(255 255 255 / 80%);
}

/* When dark mode is ON (sun icon) */
input:checked + .slider:before {
  content: "☀️";
  transform: translateX(30px);
  color: rgb(255 255 255 / 80%);
}

/* Dark mode switch on mobile */
@media (max-width: 768px) {
  .switch {
    width: 40px;
    height: 20px;
  }

  .switch .slider:before {
    width: 18px;
    height: 18px;
    font-size: 12px;
    padding-top: 2px;
    transform: translateX(0);
  }

  .switch input:checked + .slider:before {
    transform: translateX(20px);
  }
}

/*------------------------------
  ELEMENTOR PAGE FIXES
------------------------------*/
/* Override theme styles when using Elementor */
#content:has(.elementor) {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wrapper:has(> .elementor) {
  margin: 0px 0px !important;
}

/*------------------------------
  FOOTER
------------------------------*/
.footercopyright {
    padding: 20px 20px !important;
}

.footercopyright .copyright {
    margin-bottom: 0px !important; 
}
.readingnav {
    z-index: 2;
}
.bg-dark-blue{
    background: #111f33 !important;
}
#footer {
    bottom: initial;
    padding-top: 30px;
    margin-top: 0; 
}

/*------------------------------
  MENU MOBILE
------------------------------*/
@media only screen and (max-width: 890px) {
    #main-menu.shwx {
        background: #111f33;
    }
}


/*------------------------------
  CHAPTER LIST
------------------------------*/

.chapter-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.order-btn:hover {
    background: #555;
}
.chapter-link {
    display: flex;
    align-items: center;
    gap: 20px; 
}

.chapter-thumb {
    width: 80px;  
    height: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

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

#chapterlist {
    font-family: 'Poppins', sans-serif;
}

/*------------------------------
  CHAPTER LIST - BACKGROUND
------------------------------*/

.bigcover {
    height: 100%;
    background: #16151d;
}

.bigcover .bigbanner {
    background-position: 50% 100%;
    height: 100%;
    background-size: auto;
}


.bigbanner {
    display: none;
}

@media (min-width: 1200px) {
    .bigbanner {
        display: block;
    }
}

#content.manga-info .postbody.full {
    padding-top: 50px;
}
@media (max-width: 600px) {
    #content.manga-info .postbody.full {
    padding-top: 20px;
    }
}
#content {
    padding-bottom: 0px;
}



/*------------------------------
  SERIE STYLE 2 - SHARE
------------------------------*/

.share-container {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.share-btn {
    padding: 8px 14px;
    background-color: #1e73be;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.share-popup {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
    min-width: 150px;
}

.share-popup a {
    display: block;
    margin: 5px 0;
    color: #1e73be;
    text-decoration: none;
}

.share-popup a:hover {
    text-decoration: underline;
}


/*------------------------------
  SERIE STYLE 2 - READ BUTTON
------------------------------*/
#series-history{
    display: block !important;
}

.btn-read {
    padding: 8px 14px;
    background-color: #1e73be;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-read:hover {
   background-color: #124f86; 
  color: #fff;
  transform: translateY(-2px);   /* dá um leve "lift" */
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/*------------------------------
  SERIE STYLE 2 - COVER AND SINOPSE
------------------------------*/

.display-flex-serie {
  display: flex;
  gap: 20px;    
  align-items: center;  
}

/* Imagem 40%, texto 60% no desktop */
.display-flex-serie .thumb {
  flex: 0 0 40%;
}

.display-flex-serie .tuhead-text {
  flex: 1 1 60%;
  box-sizing: border-box;
}

/* Mobile: empilha */
@media (max-width: 768px) {
  .display-flex-serie {
    flex-direction: column; 
    align-items: stretch; 
  }

  .display-flex-serie .thumb,
  .display-flex-serie .tuhead-text {
    flex: 1 1 100%; 
    max-width: 100%;
  }
}

