/* Theme Name: BossComix
Text Domain: bosscomix
Version: 1.4.2
Description: Comix custom theme
Author: TheBoss
*/
:root {
  --main-color: #1b1c23;
  --second-color: #181818;
  --third-color: #ffc400;
  --fourth-color: black;
  --fifth-color: #2f2f2f;
  --hover-color: #888888;
  --text-color: white;
  --font-size: 1rem;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  background-color: var(--second-color);
  position: relative;
  color: var(--text-color);
}

@media screen and (max-width: 600px) {
  #wpadminbar { position: fixed; }
}

body {
  margin: 0 auto;
  max-width: 1350px;
  background-color: var(--main-color);
}

@media (max-width: 1300px) {
  body { margin: 0; }
}

h1, h2, h3 { font-weight: 500; }
h3 { font-size: 1.75rem; }

input {
  padding: 0.35rem 0.2rem;
  border-radius: 2px;
  font-size: 1rem;
}

input[type="submit"] { cursor: pointer; }

hr {
  background-color: var(--text-color);
  height: 1px;
  opacity: 0.3;
  margin: 1rem 0;
}

button {
  font-size: 1rem;
  font-weight: 500;
  padding: 6px 10px;
}

a {
  color: var(--third-color);
  transition: 0.4s ease;
}

a:hover { color: var(--hover-color); }

.Comix-title {
  font-size: 1.3rem;
  padding: 0.5rem;
  background-color: var(--third-color);
  border-radius: 3px;
  border-left: 8px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
  color: var(--fourth-color);
}

.Comix-side-title {
  font-size: 1.1rem;
  padding: 0.5rem;
  background-color: var(--third-color);
  border-radius: 3px;
  border-left: 8px solid rgba(0, 0, 0, 0.2);
  color: var(--fourth-color);
}

.title-information {
  color: var(--text-color);
  padding: 1rem;
  font-size: 2.5rem;
}

.informative-message { color: var(--text-color); }
.error-msg { color: red; }

.hidden { display: none; }
.Comix-show { display: block !important; }

.sr-only {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
  padding: 0;
}
.juicyad-section {
  display: flex;
  justify-content: center;
  min-height: 250px;
}
.juicyad {
  width: 300px;
  height: 250px;
  min-height: 250px;
  display: block;
  overflow: hidden;
}
@media (max-width: 768px) {
  .juicyad-section { flex-direction: column; align-items: center; }
}

.juicyad-mobile-section { display: none; margin-top: 0.5rem; }
.juicyad-mobile { width: 300px; height: 100px; }

@media (max-width: 991px) {
  .juicyad-mobile-section { display: flex; justify-content: center; }
}

.margin-the-content { margin: 0 1.5rem; }
#cc--main { z-index: 1000 !important; }


svg { fill: var(--text-color); }


.footer-bottom {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.content { flex: 1; }
#footer {
  background-color: var(--fourth-color);
  margin-top: 1rem;
}
.footer-menu {
  display: flex;
  list-style-type: none;
  justify-content: center;
}
.footer-menu > li { margin: 1.5rem; }
.footer-menu > li > a { text-decoration: none; color: var(--third-color); }
.footer-menu > li > a:hover { color: var(--text-color); }
.footer-paragraph { color: var(--text-color); text-align: center; padding-bottom: 2rem; }


header {
  position: relative;
}

#header-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.img-logo { margin: 0.25rem 0 0.25rem 2rem; max-width: 20rem; }
.search-section-no-collapse { display: flex; justify-content: center; width: 100%; }

.nav-header { background-color: var(--fourth-color); }

.wp-header-menu {
  display: flex;
  flex-direction: row;
  padding: 0.6rem 1.5rem;
}
.wp-header-menu > li { padding: 0.5rem 1rem; width: fit-content; list-style-type: none; }
.wp-header-menu > li > a { text-decoration: none; color: var(--text-color); font-size: 1rem; }
.wp-header-menu > li > a:hover { color: var(--hover-color); }
.wp-header-menu > li.active { border-bottom: solid var(--third-color); }

.nav-header-collapse {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  display: none;
}

.svg-hamburger { width: 2.7rem; stroke: white; cursor: pointer; }
.img-logo-collapse { max-width: 17rem; }

@media (max-width: 991px) {
  #header-top { display: none; }
  .wp-header-menu-normal { display: none; }
  .nav-header-collapse { display: flex; }
}

.svg-magnifying-glass-collapse {
  fill: none;
  stroke: var(--text-color);
  stroke-miterlimit: 10;
  stroke-width: 1.91px;
  width: 2.2rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: height 0.4s ease, opacity 0.2s ease;
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  background-color: var(--fourth-color); 
  z-index: 1000; 
  overflow: hidden; 
  border-bottom: 2px solid var(--third-color); 
}

.menu-toggle.visible { opacity: 1; pointer-events: auto; }
.hamburger-menu-content { display: flex; flex-direction: column; padding: 1.5rem; padding-top: 0; }
.wp-header-menu-collapse { flex-direction: column; padding: 0; }


.main-row { 
  display: flex; 
  flex-direction: row-reverse; 
}
.sidebar-col { width: 25%; display: flex; flex-direction: column; gap: 1rem; padding: 0.5rem 0.75rem; }
.sidebar-col .Comix-side-title { margin-bottom: 0.5rem; }
.grid-col { width: 75%; padding: 0.5rem 0.9rem; }

@media (max-width: 991px) {
  .main-row { flex-direction: column-reverse; }
  .sidebar-col { width: 100%; }
  .grid-col { width: 100%; padding: 0.5rem 0.5rem; }
}


.main-grid { display: flex; flex-direction: row; flex-wrap: wrap; margin-bottom: 0.5rem; }
.comic-col { border: 0; padding: 0.4rem; width: 25%; }

@media (max-width: 768px) { .comic-col { width: 33.33%; } }
@media (max-width: 600px) { .comic-col { width: 50%; padding: 0.3rem; } }

.img-card {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px 5px 0 0;
  margin-bottom: 0;
}

.Comix-card-body {
  padding: 0.05rem 0.4rem;
  background-color: var(--fourth-color);
  border-radius: 0 0 10px 10px;
}

.Comix-card-p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
}

.Comix-card-p:hover { color: var(--hover-color); }
.Comix-gallery-link { text-decoration: none; }

.own-comics-view-more { text-align: center; margin: 0.5rem 1rem 1rem 1rem; }
.view-more-btn {
  text-decoration: none;
  color: var(--fourth-color);
  background-color: var(--third-color);
  border-radius: 5px;
  padding: 0.4rem 2rem;
  cursor: pointer;
  font-size: 1.3rem;
}
.view-more-btn:hover { background-color: var(--hover-color); color: var(--text-color); }


.categories { display: flex; flex-wrap: wrap; list-style-type: none; }
.categories li { width: 50%; }

.Comix-category-link {
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text-color);
}
.Comix-category-link:hover { background-color: var(--third-color); border-radius: 5px; }
.Comix-category-link > p { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.Comix-all-categories-col {
  background-color: var(--fourth-color);
  padding: 0.3rem;
  margin-top: 0.3rem;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  display: block;
}
.Comix-all-categories-col:hover { background-color: var(--hover-color); color: var(--text-color); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style-type: none; }
.Comix-tag-link {
  background-color: var(--fourth-color);
  border-radius: 5px;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--text-color);
}
.Comix-tag-link:hover { background-color: var(--third-color); color: var(--text-color); }
.svg-sidebar { width: 1.5rem; height: 1.2rem; fill: var(--hover-color); }


.Comix-pagination-section {
  margin-top: 0.75rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-wp-section > .page-numbers { display: inline-block; }
.pagination-wp-section > * {
  background-color: var(--fourth-color);
  text-decoration: none;
  color: var(--third-color);
  padding: 0.9rem 1.2rem;
  margin: 0 0.2rem;
  border-radius: 5px;
}
.pagination-wp-section > .current { color: var(--main-color); background-color: var(--third-color); }
.pagination-wp-section > a:hover { background-color: var(--third-color); color: var(--main-color); }

.pagination-input-section { background-color: var(--fourth-color); color: var(--third-color); padding: 0.7rem 1.2rem; border-radius: 5px; }
.pagination-input-section > a { padding: 0.5rem 1rem; margin-left: 0.2rem; cursor: pointer; }
.pagination-input-section > a:hover { background-color: var(--third-color); color: var(--main-color) !important; }
.pagination-input-section > input {
  color: var(--text-color);
  background-color: var(--fifth-color);
  border: none;
  text-align: center;
  padding: 0.3rem 0;
  border-radius: 5px;
  width: 4rem;
}
.pagination-input-section > input[type="number"]::-webkit-inner-spin-button,
.pagination-input-section > input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pagination-input-section > input[type="number"] { -moz-appearance: textfield; }
.pagination-form-control { width: 4rem; display: inline-block; }


.Comix-post-header {
  padding: 0.5rem;
  border-radius: 3px;
  background: var(--fourth-color);
  border-left: 6px solid var(--third-color);
}
.Comix-post-title { color: var(--text-color); text-align: center; border-bottom: 2px solid var(--hover-color); margin-bottom: 0.5rem; }
.Comix-post-cat-link { text-decoration: none; color: var(--text-color); border-radius: 3px; background: var(--fourth-color); padding: 0.3rem 0.5rem; }
.Comix-post-cat-link:hover { color: var(--hover-color); }

.Comix-breadcrumbs { color: var(--text-color); margin-bottom: 10px; font-size: 0.95rem; }
.Comix-breadcrumbs a { text-decoration: none; color: var(--third-color); transition: 0.3s ease; }
.Comix-breadcrumbs a:hover { color: var(--hover-color); }
.Comix-breadcrumbs .separator { margin: 0 5px; color: #555; }
.Comix-breadcrumbs .current-crumb { color: var(--text-color); opacity: 0.8; }

.entire-comic { margin-top: 1rem; margin-left: 0.5rem; margin-bottom: 1rem; }
.img-gallery-wordpress { width: 100%; height: auto; }
.related-post-title { color: var(--text-color); font-size: 2rem; margin-bottom: 0.5rem; }
.related-posts { display: flex; flex-wrap: wrap; }
.comic-bottom { display: flex; flex-direction: column; gap: 1rem; margin-left: 0.5rem; margin-top: 20px; }
.comic-bottom-tax { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.side-title-single { padding: 0.3rem 0.5rem; }
.gallery-imgs-center { justify-content: center; }


/* --- BARRA DE BÚSQUEDA CORREGIDA --- */
.searchform-section { 
  display: flex; 
  width: 70%; 
  margin: 0; 
  flex-direction: row-reverse; 
}

@media (max-width: 991px) { 
  .searchform-section { width: 100%; } 
}

.input-search { 
  border-radius: 25px 0 0 25px; 
  height: 3.3rem; 
  width: auto; 
  background-color: var(--fourth-color); 
  border: 2px solid var(--fifth-color); 
  border-right: none; 
  padding: 10px 20px; 
  color: var(--text-color); 
  flex-grow: 1; 
  transition: border-color 0.3s ease;
  outline: none; 
}

.input-search:focus {
  border-color: var(--third-color); 
}

.search-btn {
  border-radius: 0 25px 25px 0; 
  background-color: var(--third-color);
  color: var(--main-color);
  border: 2px solid var(--third-color);
  padding: 10px;
  height: 3.3rem;
  width: 3.5rem; 
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-btn:hover { 
  background-color: var(--hover-color); 
  border-color: var(--hover-color);
}

.search-btn:hover .svg-magnifying-glass { 
  stroke: var(--text-color); 
  transform: scale(1.1); 
}

.svg-magnifying-glass { fill: none; stroke: var(--main-color); stroke-miterlimit: 10; stroke-width: 1.91px; width: 75%; transition: 0.4s ease; }


.all-categories-section, .all-tags-section, .all-authors-section { margin: 0.5rem 1rem; }
.categories-grid { display: flex; flex-direction: row; flex-wrap: wrap; }

.Comix-section-alph { display: flex; flex-direction: row; flex-wrap: nowrap; border-bottom: 1px solid var(--text-color); gap: 5rem; padding: 2rem 0; }
.Comix-letter-alph { color: var(--third-color); font-size: 1.3rem; margin: 0 0 0 1rem; }
.Comix-list-alph { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; row-gap: 1rem; }

@media (max-width: 1200px) { .Comix-list-alph { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 991px) { .Comix-list-alph { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .Comix-list-alph { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .Comix-list-alph { grid-template-columns: repeat(1, 1fr); } }

.Comix-list-alph div { padding: 0.5rem; }
.Comix-list-alph a { text-decoration: none; color: var(--text-color); transition: 0.3s ease; padding: 0.5rem; }
.Comix-list-alph a:hover { color: var(--second-color); background-color: var(--text-color); }

#Comix-scroll-btn {
  position: fixed; bottom: 40px; right: 40px; width: 60px; height: 60px;
  background-color: #ffcc00; color: #1d1d16; border: none; border-radius: 25%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: 99999; opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.3s ease-in-out; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
#Comix-scroll-btn svg { width: 32px; height: 32px; display: block; pointer-events: none; }
#Comix-scroll-btn svg line, #Comix-scroll-btn svg polyline { fill: none !important; stroke: currentColor !important; }
#Comix-scroll-btn.show-btn { opacity: 1; visibility: visible; transform: translateY(0); }
#Comix-scroll-btn:hover { background-color: #fff; transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.8); }

@media (max-width: 600px) {
  #Comix-scroll-btn { bottom: 25px; right: 25px; width: 50px; height: 50px; }
  #Comix-scroll-btn svg { width: 26px; height: 26px; }
}

.menu-toggle {
  background-color: var(--fourth-color);
  border-bottom: none;
}

.hamburger-menu-content {
  padding: 0; 
}

.wp-header-menu-collapse {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin: 0;
  list-style: none;
}

.wp-header-menu-collapse > li {
  border-bottom: 1px solid var(--fifth-color); 
  border-right: 1px solid var(--fifth-color); 
  width: 100%;
  padding: 0;
}

.wp-header-menu-collapse > li:nth-child(even) {
  border-right: none;
}

.wp-header-menu-collapse > li > a {
  display: block;
  padding: 16px 20px;
  color: var(--text-color) !important; 
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wp-header-menu-collapse > li > a:hover {
  background-color: var(--main-color); 
  color: var(--third-color) !important; 
}