/*
Theme Name: SlimeRead Modern
Theme URI: https://slimeread.com/
Author: v0
Description: A modern, elegant manga reader theme with cyberpunk aesthetics
Version: 1.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slimeread-modern

Bot - Atualizado - com auto import + PROXY

*/

/* Prevenir rolagem horizontal */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

:root {
  --primary: #0cff8a;
  --primary-hover: #00e676;
  --secondary: #00b8ff;
  --accent: #ff00e5;
  --background: #0a0a12;
  --card-bg: #121220;
  --text: #ffffff;
  --text-secondary: #a0a0b8;
  --border: #1e1e30;
  --header-height: 70px;
  --tag-bg: #1e1e30;
  --button-bg: #ff375f;
  --button-hover: #ff5277;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Estilos do cabeçalho e navegação - Adicione ao seu arquivo style.css */

/* Reset do cabeçalho */
.site-header {
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  height: 40px;
  display: flex;
  align-items: center;
}

.site-logo img {
  max-height: 40px;
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navegação principal */
.main-navigation {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-menu li {
  margin: 0;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-menu li a {
  font-weight: 500;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--primary);
}

/* Ações do cabeçalho */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.search-toggle,
.user-menu-toggle,
.login-menu-toggle,
.mobile-menu-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.theme-toggle:hover,
.search-toggle:hover,
.user-menu-toggle:hover,
.login-menu-toggle:hover,
.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-menu-toggle {
  display: none;
}

/* Dropdowns */
.login-dropdown,
.user-dropdown,
.search-dropdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 50%;
  max-width: 400px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1010;
  overflow: hidden;
  max-width: 100vw;
}

/* User dropdown em desktop */
.user-dropdown.desktop-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  transform: translateY(10px);
  width: 280px;
  z-index: 1010;
}

/* User dropdown em modo mobile (como modal) */
.user-dropdown.modal-dropdown {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 400px;
}

/* Corrigir o transform dependendo do tipo de dropdown */
.user-dropdown.desktop-dropdown.active {
  transform: translateY(0);
}

.user-dropdown.modal-dropdown.active,
.login-dropdown.active,
.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Overlay para o fundo quando o modal está aberto */
.modal-overlay {
  display: none; /* Esconder completamente o overlay */
}

.modal-overlay.active {
  display: none; /* Garantir que mesmo quando ativo, o overlay não apareça */
}

/* Botão para fechar o modal - apenas visível em modais, não em dropdowns de desktop */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1012; /* Maior que tudo */
}

/* Esconder o botão close no dropdown do usuário em desktop */
.user-dropdown.desktop-dropdown .modal-close {
  display: none;
}

.modal-close:hover {
  color: var(--primary);
}

.login-dropdown-content,
.user-dropdown-content,
.search-dropdown-content {
  position: relative;
  padding: 20px;
  z-index: 1011; /* Maior que os dropdowns */
}

/* Estilos para o login */
.login-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.login-tab-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.login-tab-btn.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: border-color 0.2s ease;
  z-index: 1011; /* Maior que os dropdowns */
}

.form-group input:focus {
  border-color: var(--primary);
  outline: none;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.login-submit,
.register-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1011; /* Maior que os dropdowns */
}

.login-submit:hover,
.register-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(12, 255, 138, 0.3);
}

.login-footer {
  margin-top: 15px;
  text-align: center;
}

.forgot-password {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.forgot-password:hover {
  color: var(--primary);
  text-decoration: underline;
}

.register-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

/* Estilos para o dropdown do usuário */
.user-dropdown-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.user-dropdown-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.user-dropdown-info {
  display: flex;
  flex-direction: column;
}

.user-dropdown-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.user-dropdown-email {
  font-size: 14px;
  color: var(--text-secondary);
}

.user-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.user-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.user-dropdown-item svg {
  margin-right: 10px;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 8px 0;
}

/* Estilos para o formulário de pesquisa */
.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.search-field {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 16px;
  z-index: 1011; /* Maior que os dropdowns */
  width: 100%;
}

.search-field:focus {
  outline: none;
  border-color: var(--primary);
}

.search-submit {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 12px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1011; /* Maior que os dropdowns */
  min-width: 44px;
  height: 44px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Menu móvel */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background);
  z-index: 1020;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  max-width: 100vw;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-content {
  padding: 20px;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.mobile-nav-menu li {
  margin-bottom: 15px;
}

.mobile-nav-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.theme-toggle-mobile,
.mobile-login-button,
.mobile-profile-link,
.mobile-logout-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--card-bg);
  color: var(--text);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.theme-toggle-mobile svg,
.mobile-login-button svg,
.mobile-profile-link svg,
.mobile-logout-link svg {
  margin-right: 10px;
}

.theme-toggle-mobile:hover,
.mobile-login-button:hover,
.mobile-profile-link:hover,
.mobile-logout-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--primary);
}

/* Responsividade */
@media (max-width: 992px) {
  .nav-menu li a {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }

  .header-actions {
    gap: 5px;
  }

  /* Remover esta linha que esconde o botão de pesquisa */
  /* .search-toggle {
    display: none;
  } */
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.2rem;
  }

  .login-dropdown,
  .user-dropdown,
  .search-dropdown {
    width: 95%;
  }
}

/* Hero Section - MODIFICADO PARA FULL WIDTH */
.hero-section {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(12, 255, 138, 0.5);
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.hero-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(12, 255, 138, 0.3);
  color: #000;
}

/* Categories Section */
.categories-section {
  padding: 20px 0;
  background-color: var(--card-bg);
  margin-bottom: 40px;
  border-radius: 10px;
}

.categories-scroll {
  display: flex;
  overflow-x: auto;
  padding: 10px 5px;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--card-bg);
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.categories-scroll::-webkit-scrollbar {
  height: 5px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: var(--card-bg);
}

.categories-scroll::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 10px;
}

.category-button {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(12, 255, 138, 0.1), rgba(0, 184, 255, 0.1));
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-button:hover {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  transform: translateY(-2px);
}

/* Manga Grid */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 50px;
  width: 100%;
}

.manga-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  width: 100%;
}

.manga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--primary);
}

.manga-card-image {
  position: relative;
  padding-top: 140%;
  overflow: hidden;
  max-height: 220px;
}

.manga-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Mobile-specific adjustments */
@media (max-width: 575px) {
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .manga-card-image {
    max-height: 180px;
  }

  .manga-card-content {
    padding: 10px;
  }

  .manga-card-title {
    font-size: 0.9rem;
  }

  .manga-card-meta {
    font-size: 0.75rem;
  }

  .manga-card-rating svg {
    width: 12px;
    height: 12px;
  }

  .latest-chapter {
    padding: 5px;
  }

  .latest-chapter .chapter-number {
    font-size: 0.75rem;
  }

  .latest-chapter .new-tag {
    font-size: 0.65rem;
    padding: 1px 4px;
  }
}

/* Extra small screens */
@media (max-width: 320px) {
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .manga-card-image {
    max-height: 150px;
  }

  .manga-card-content {
    padding: 8px;
  }

  .manga-card-title {
    font-size: 0.8rem;
    margin-bottom: 3px;
  }

  .manga-card-meta {
    font-size: 0.7rem;
  }
}

.manga-card-content {
  padding: 15px;
}

.manga-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.manga-card-rating {
  display: flex;
  align-items: center;
}

.manga-card-rating svg {
  color: var(--primary);
  margin-right: 3px;
  width: 14px;
  height: 14px;
}

/* Section Titles */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Footer */
.site-footer {
  background-color: var(--card-bg);
  padding: 50px 0 20px;
  margin-top: 50px;
  border-top: 1px solid var(--border);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-widget-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu li a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-menu li a:hover {
  color: var(--primary);
}

.site-info {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-numbers.current {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
}

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

/* Estilos para os filtros de mangá */
.manga-filters {
  margin-bottom: 30px;
  background-color: rgba(18, 18, 32, 0.8);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  max-width: 100%;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.filter-icon {
  color: var(--primary);
}

.filter-select-wrapper {
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(30, 30, 48, 0.9);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: white;
  font-size: 0.95rem;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(12, 255, 138, 0.2);
}

.filter-select option {
  background-color: var(--card-bg);
  color: white;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
}

.apply-filters-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-end;
  margin-top: 24px;
}

.apply-filters-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12, 255, 138, 0.3);
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 100px 0;
}

.error-title {
  font-size: 8rem;
  margin: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.error-message {
  font-size: 2rem;
  margin-bottom: 20px;
}

.error-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.error-actions .btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #000;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.error-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(12, 255, 138, 0.3);
  color: #000;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  /*.site-header {
    height: auto;
    padding: 10px 0;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 1;
    margin-right: 0;
    padding: 8px;
  }

  .site-branding {
    order: 2;
    flex-grow: 1;
    justify-content: center;
    text-align: center;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .user-menu-container {
    order: 3;
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0;
    padding: 8px;
  }

  .main-navigation {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    display: none;
  }

  .main-navigation.toggled {
    display: block;
  }

  .nav-menu {
    width: 100%;
    flex-direction: column;
    padding: 0;
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }

  .nav-menu li {
    margin: 10px 0;
  }*/

  /* Estilo para o modal de login em dispositivos móveis */
  .login-dropdown,
  .user-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 320px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1010;
  }

  .login-dropdown.active,
  .user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
  }

  /* Overlay para o fundo quando o modal está aberto */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .modal-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Ajustes para o conteúdo do modal de login */
  .login-tabs {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
  }

  .login-tab-btn {
    color: var(--text-secondary);
  }

  .login-tab-btn.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
  }

  .login-tab-content {
    background-color: var(--card-bg);
    color: var(--text);
  }

  .form-group label {
    color: var(--text);
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="password"] {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text);
  }

  .login-submit,
  .register-submit {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #000;
  }

  .forgot-password {
    color: var(--text-secondary);
  }

  .register-note {
    color: var(--text-secondary);
  }

  /* Botão para fechar o modal */
  .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .modal-close:hover {
    color: var(--primary);
  }
}

@media (max-width: 576px) {
  .manga-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}

/* Manga Single Page - New Design */
.manga-single {
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, var(--background) 100%);
  border-radius: 10px;
  overflow: hidden;
  padding-bottom: 30px;
}

.manga-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding: 30px;
}

.manga-cover {
  flex-shrink: 0;
  width: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  background-color: var(--card-bg);
}

.manga-cover-image {
  width: 100%;
  height: auto;
  display: block;
}

.manga-info {
  flex-grow: 1;
}

.manga-title {
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: var(--text);
}

.manga-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.manga-rating,
.manga-chapters-count,
.manga-readers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.star-icon {
  color: #ffd700;
}

.chapter-icon,
.reader-icon {
  color: var(--text-secondary);
}

.manga-synopsis {
  margin-bottom: 20px;
}

.manga-synopsis h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.synopsis-content {
  color: var(--text);
  line-height: 1.6;
}

.manga-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.manga-tag {
  background-color: var(--tag-bg);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.manga-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  max-width: 100%;
}

.manga-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.meta-value {
  color: var(--text);
  font-weight: 500;
}

.manga-actions {
  display: flex;
  gap: 15px;
}

.start-reading-btn,
.favorite-btn,
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-reading-btn {
  background-color: var(--button-bg);
  color: white;
  border: none;
  flex: 1;
}

.start-reading-btn:hover {
  background-color: var(--button-hover);
  color: white;
}

.favorite-btn,
.share-btn {
  background-color: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.favorite-btn:hover,
.share-btn:hover {
  background-color: var(--border);
}

.favorite-btn.active {
  color: #ff375f;
}

.manga-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 30px;
  margin-bottom: 20px;
}

.manga-tab {
  padding: 15px 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.manga-tab:hover {
  color: var(--text);
}

.manga-tab.active {
  color: var(--text);
}

.manga-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--button-bg);
}

.manga-tab-content {
  display: none;
  padding: 0 30px;
}

.manga-tab-content.active {
  display: block;
}

.chapters-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.chapter-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.chapter-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.chapter-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.chapter-number {
  font-weight: 600;
  color: var(--text);
}

.chapter-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.read-button {
  background-color: var(--card-bg);
  color: var(--text);
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.read-button:hover {
  background-color: var(--button-bg);
  color: white;
}

/* Chapter Single Page */
.chapter-single {
  margin-top: 20px;
}

.chapter-header {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

.chapter-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.chapter-nav-left,
.chapter-nav-right {
  flex: 1;
}

.chapter-title {
  text-align: center;
  flex: 2;
}

.chapter-title h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.chapter-subtitle {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: normal;
  margin-top: 5px;
}

.back-to-manga {
  display: flex;
  align-items: center;
  color: var(--text);
}

.back-to-manga svg {
  margin-right: 8px;
}

.back-to-manga:hover {
  color: var(--primary);
}

.chapter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 100%;
}

.chapter-control {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 30px;
  background-color: var(--card-bg);
  color: var(--text);
  transition: all 0.3s ease;
}

.chapter-control:hover {
  background-color: var(--primary);
  color: #000;
}

.chapter-control.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.prev-chapter svg {
  margin-right: 8px;
}

.next-chapter svg {
  margin-left: 8px;
}

.control-text {
  font-weight: 500;
}

.chapter-selector {
  position: relative;
}

.chapter-selector select {
  appearance: none;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 8px 35px 8px 15px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  width: 200px;
}

.chapter-selector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text);
  pointer-events: none;
}

.chapter-content {
  margin: 30px 0;
}

.chapter-reader {
  max-width: 800px;
  margin: 0 auto;
}

.chapter-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.chapter-image-container {
  text-align: center;
  position: relative;
}

.chapter-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.page-number {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.chapter-text-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.chapter-footer {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

/* Responsive Styles for Manga */
@media (max-width: 768px) {
  .manga-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .manga-cover {
    width: 180px;
    margin-bottom: 20px;
  }

  .manga-stats {
    justify-content: center;
  }

  .manga-meta-grid {
    grid-template-columns: 1fr;
  }

  .manga-meta-item {
    align-items: center;
  }

  .manga-actions {
    flex-direction: column;
  }

  .manga-tabs {
    padding: 0 15px;
  }

  .manga-tab-content {
    padding: 0 15px;
  }

  .chapter-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .chapter-title {
    order: -1;
  }

  .chapter-controls {
    flex-wrap: wrap;
  }

  .chapter-selector select {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .manga-title {
    font-size: 1.8rem;
  }

  .manga-stats {
    flex-wrap: wrap;
  }

  .chapter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .read-button {
    align-self: flex-start;
  }
}

/* Chapter Reader - New Design */
.chapter-reader-container {
  background-color: #000;
  min-height: 100vh;
  position: relative;
  padding-bottom: 50px;
}

.chapter-header {
  background-color: rgba(0, 0, 0, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  border-bottom: 1px solid #222;
}

.chapter-header.hidden {
  transform: translateY(-100%);
}

.chapter-title-bar {
  padding: 15px 20px;
  border-bottom: 1px solid #222;
}

.manga-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manga-title a {
  color: #fff;
  text-decoration: none;
}

.manga-title a:hover {
  color: var(--button-bg);
}

.chapter-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.chapter-dropdown {
  position: relative;
  display: inline-block;
}

.chapter-dropdown-btn {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

.chapter-dropdown-btn:hover {
  background-color: #333;
}

.chapter-dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 4px;
  top: 100%;
  left: 0;
  margin-top: 5px;
}

.chapter-dropdown-content.show {
  display: block;
}

.chapter-dropdown-content a {
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  border-bottom: 1px solid #333;
}

.chapter-dropdown-content a:hover {
  background-color: #333;
}

.chapter-dropdown-content a.selected {
  background-color: var(--button-bg);
  color: #fff;
}

.reader-settings-btn {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.reader-settings-btn:hover {
  color: var(--button-bg);
}

.chapter-navigation {
  display: flex;
  align-items: center;
}

.next-chapter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 15px;
  border-radius: 4px;
  background-color: var(--button-bg);
}

.next-chapter-btn:hover {
  background-color: var(--button-hover);
}

.next-chapter-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #444;
}

.reader-settings-panel {
  background-color: #222;
  padding: 15px;
  border-bottom: 1px solid #333;
}

.settings-group {
  margin-bottom: 15px;
}

.settings-group h3 {
  font-size: 1rem;
  margin: 0 0 10px 0;
  color: #fff;
}

.settings-options {
  display: flex;
  gap: 10px;
  align-items: center;
}

.settings-option {
  background-color: #333;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.settings-option.active {
  background-color: var(--button-bg);
}

.zoom-in,
.zoom-out {
  background-color: #333;
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

.zoom-level {
  color: #fff;
  margin: 0 10px;
}

.chapter-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.chapter-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.chapter-images.horizontal-mode {
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: calc(100vh - 200px);
  align-items: center;
  max-width: 100%;
}

.chapter-image-container {
  text-align: center;
  position: relative;
}

.horizontal-mode .chapter-image-container {
  flex: 0 0 100%;
  scroll-snap-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.horizontal-mode .chapter-image {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.page-number {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 10;
}

.horizontal-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.horizontal-nav-btn {
  background-color: #222;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.horizontal-nav-btn:hover {
  background-color: var(--button-bg);
}

.page-indicator {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

.chapter-footer {
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid #222;
}

.chapter-navigation-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.chapter-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  background-color: #222;
  font-size: 0.9rem;
}

.chapter-nav-btn:hover {
  background-color: #333;
  color: #fff;
}

.back-to-manga {
  background-color: var(--card-bg);
}

.next-chapter {
  background-color: var(--button-bg);
}

.next-chapter:hover {
  background-color: var(--button-hover);
}

/* Responsive styles for chapter reader */
@media (max-width: 768px) {
  .chapter-title-bar {
    padding: 10px 15px;
  }

  .manga-title {
    font-size: 0.9rem;
  }

  .chapter-controls-bar {
    padding: 8px 15px;
  }

  .reader-settings-btn span {
    display: none;
  }

  .chapter-navigation-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .chapter-nav-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Manga Status Styles */
.manga-status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  color: #000;
}

.status-ongoing {
  background-color: #4ade80; /* Verde */
}

.status-completed {
  background-color: #f87171; /* Vermelho */
}

.status-other {
  background-color: #facc15; /* Amarelo */
}

/* Estilos para a grade de mangás relacionados */
.related-grid {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .chapter-images.horizontal-mode {
    height: calc(100vh - 180px);
  }

  .horizontal-navigation {
    padding: 8px;
    gap: 10px;
  }

  .horizontal-nav-btn {
    width: 36px;
    height: 36px;
  }

  .categories-section {
    padding: 10px 0;
  }

  .category-button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .manga-title {
    font-size: 1.8rem;
  }

  .manga-stats {
    flex-wrap: wrap;
  }

  .chapter-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .read-button {
    align-self: flex-start;
  }
}

table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

pre,
code {
  max-width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.search-form-grid {
  flex-wrap: wrap;
  max-width: 100%;
}

/* Corrigir a exibição do ícone de pesquisa em dispositivos móveis */
@media (max-width: 768px) {
  .theme-toggle {
    display: none;
  }

  .search-toggle {
    display: flex !important; /* Forçar exibição */
  }

  .header-actions {
    gap: 8px;
  }

  .search-dropdown {
    width: 90%;
    max-width: 90%;
  }

  .search-dropdown-content {
    padding: 15px;
  }

  .search-form {
    flex-wrap: nowrap;
  }

  .search-field {
    padding: 10px;
    font-size: 14px;
  }

  .search-submit {
    padding: 10px;
    min-width: 40px;
    height: 40px;
  }
}

/* Adicionar no final do arquivo */

/* Estilos para contadores de visualizações */
.manga-views,
.chapter-views {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.manga-views svg,
.chapter-views svg {
  color: var(--primary);
}

.chapter-views {
  margin-top: 5px;
  justify-content: flex-end;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Improved manga grid responsiveness */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  width: 100%;
}

@media (min-width: 481px) and (max-width: 768px) {
  .manga-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .manga-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .manga-card {
    width: 100%;
  }

  .manga-card-image {
    height: auto;
  }
}

/* Fix for manga cards to prevent overflow */
.manga-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.manga-card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fix for very small screens */
@media (max-width: 575px) {
  .content-with-sidebar {
    display: flex;
    flex-direction: column;
  }

  .site-main {
    width: 100%;
    order: 1;
  }

  .manga-grid-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .manga-card-image {
    padding-top: 130%;
    max-height: 160px;
  }

  .manga-card-content {
    padding: 8px;
  }

  .manga-card-meta {
    font-size: 0.7rem;
  }

  .manga-card-rating svg {
    width: 12px;
    height: 12px;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
}

/* Fix for extremely small screens */
@media (max-width: 320px) {
  .manga-grid-responsive {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .manga-card-image {
    max-height: 140px;
  }

  .manga-card-title {
    font-size: 0.8rem;
  }
}

/* Find the content-with-sidebar section and add/modify these styles */

/* Add this to the existing CSS file, near the responsive media queries section */

.content-with-sidebar {
  display: flex;
  flex-wrap: wrap;
}

.site-main {
  flex: 1;
  min-width: 0;
}

.site-sidebar {
  width: 300px;
  margin-left: 20px;
}

/* Popular manga widget positioning for mobile */
@media (max-width: 768px) {
  .content-with-sidebar {
    flex-direction: column;
  }

  .site-main {
    width: 100%;
    order: 1;
  }

  .site-sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
    order: 2;
  }

  /* Specific targeting for the Popular Manga widget */
  .widget_popular_manga {
    order: 3;
    margin-top: 30px;
  }
}

/* Ensure the sidebar widgets stack properly on mobile */
@media (max-width: 575px) {
  .site-sidebar {
    margin-top: 20px;
  }

  .widget {
    margin-bottom: 20px;
  }

  /* Make the Popular Manga widget more prominent at the bottom */
  .widget_popular_manga {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    margin-top: 25px;
  }

  .widget_popular_manga .section-title {
    margin-top: 0;
  }
}

/* New modern homepage styles inspired by the screenshot */

/* Simplified hero section */
.hero-section-simple {
  padding: 40px 0 30px;
  text-align: left;
}

.hero-title-simple {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.hero-description-simple {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Modern manga grid - 4 columns on desktop */
.manga-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

@media (max-width: 1200px) {
  .manga-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .manga-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .manga-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Modern manga card with cover + chapter list */
.manga-card-modern {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manga-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.manga-card-modern-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Cover image */
.manga-cover-modern {
  position: relative;
  width: 100%;
  padding-top: 140%;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.manga-cover-modern img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.manga-cover-link:hover .manga-cover-modern img {
  transform: scale(1.05);
}

/* Manga info section */
.manga-info-modern {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.manga-title-modern {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.manga-title-modern a {
  color: var(--text-primary);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.manga-title-modern a:hover {
  color: var(--primary);
}

/* Chapter list */
.chapter-list-modern {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter-item-modern {
  font-size: 0.9rem;
}

.chapter-link-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.chapter-link-modern:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.chapter-number-modern {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.chapter-link-modern:hover .chapter-number-modern {
  color: var(--text-primary);
}

.chapter-number-modern.no-chapters {
  padding: 6px 8px;
  display: block;
}

/* New badge - purple/pink like in the screenshot */
.chapter-badge-new {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Homepage container adjustments */
.homepage-container {
  padding-top: 20px;
}

/* Dark theme enhancements */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --card-bg: #111111;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --primary: #a855f7;
  --secondary: #ec4899;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.site-main {
  background-color: transparent;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .hero-title-simple {
    font-size: 1.5rem;
  }

  .manga-title-modern {
    font-size: 0.95rem;
  }

  .manga-info-modern {
    padding: 12px;
  }

  .chapter-list-modern {
    gap: 4px;
  }

  .chapter-link-modern {
    padding: 5px 6px;
  }

  .chapter-number-modern {
    font-size: 0.8rem;
  }

  .chapter-badge-new {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
}

@media (max-width: 480px) {
  .hero-section-simple {
    padding: 20px 0 20px;
  }

  .hero-title-simple {
    font-size: 1.3rem;
  }

  .hero-description-simple {
    font-size: 0.9rem;
  }

  .manga-title-modern {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .manga-info-modern {
    padding: 10px;
  }

  .chapter-list-modern {
    gap: 3px;
  }

  .chapter-number-modern {
    font-size: 0.75rem;
  }
}
