/* ========================================================
   TRUYEN ONE PIECE - MAIN STYLES
   ======================================================== */

/* Header & Navigation */
.op-header {
  background-color: var(--op-bg-card);
  border-bottom: 2px solid var(--op-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.op-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}

.op-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.op-logo img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

.op-logo .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--op-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.op-nav-desktop {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.op-nav-desktop li {
  position: relative;
}

.op-nav-desktop li a {
  color: var(--op-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--op-radius);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.op-nav-desktop li a:hover,
.op-nav-desktop li.current-menu-item > a {
  color: var(--op-primary);
  background: rgba(28, 139, 236, 0.1);
}

/* Header Search */
.op-header-search {
  position: relative;
  max-width: 260px;
  width: 100%;
}

.op-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.op-search-input {
  width: 100%;
  background: var(--op-bg-dark);
  border: 1px solid var(--op-border);
  border-radius: 20px;
  padding: 8px 36px 8px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: var(--op-transition);
}

.op-search-input:focus {
  border-color: var(--op-primary);
  box-shadow: 0 0 10px rgba(28, 139, 236, 0.3);
}

.op-search-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--op-text-muted);
  cursor: pointer;
}

/* Mobile Toggle */
.op-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* Breadcrumbs */
.op-breadcrumb {
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--op-text-muted);
}

.op-breadcrumb a {
  color: var(--op-text-muted);
}

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

.op-breadcrumb .sep {
  margin: 0 6px;
  color: #4b5563;
}

.op-breadcrumb .current {
  color: var(--op-text-main);
  font-weight: 500;
}

/* ========================================================
   HERO BANNER - HOME PAGE
   ======================================================== */
.op-hero-banner {
  background: linear-gradient(135deg, rgba(15, 19, 26, 0.95), rgba(23, 29, 39, 0.98)), url('https://truyen-one-piece.com/wp-content/uploads/2026/01/logo-removebg-preview.png') no-repeat center right / contain;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-lg);
  padding: 30px;
  margin: 25px 0;
  display: flex;
  gap: 30px;
  align-items: center;
  box-shadow: var(--op-shadow);
  position: relative;
  overflow: hidden;
}

.op-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(28, 139, 236, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.op-hero-thumb {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow-lg);
  border: 2px solid var(--op-border);
}

.op-hero-content {
  flex-grow: 1;
}

.op-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.op-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.op-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--op-bg-card-alt);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--op-border);
}

.op-badge-gold {
  color: var(--op-gold);
  border-color: rgba(255, 184, 0, 0.3);
}

.op-hero-desc {
  color: var(--op-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 750px;
}

.op-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.op-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--op-radius);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--op-transition);
  text-decoration: none;
  border: none;
}

.op-btn-primary {
  background: var(--op-primary);
  color: #fff !important;
}

.op-btn-primary:hover {
  background: var(--op-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 139, 236, 0.4);
}

.op-btn-danger {
  background: var(--op-secondary);
  color: #fff !important;
}

.op-btn-danger:hover {
  background: var(--op-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 11, 11, 0.4);
}

.op-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--op-border);
  color: var(--op-text-main) !important;
}

.op-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--op-primary);
  color: var(--op-primary) !important;
}

/* ========================================================
   HOME CHAPTER TABS & GRID
   ======================================================== */
.op-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 35px 0 20px;
  border-bottom: 2px solid var(--op-border);
  padding-bottom: 12px;
}

.op-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--op-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.op-chapter-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.op-tab-btn {
  background: var(--op-bg-card);
  border: 1px solid var(--op-border);
  color: var(--op-text-muted);
  padding: 6px 14px;
  border-radius: var(--op-radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--op-transition);
}

.op-tab-btn:hover,
.op-tab-btn.active {
  background: var(--op-primary);
  color: #fff;
  border-color: var(--op-primary);
}

.op-chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.op-chapter-item {
  background: var(--op-bg-card);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  padding: 10px 8px;
  text-align: center;
  color: var(--op-text-main);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--op-transition);
  display: block;
}

.op-chapter-item:hover {
  background: var(--op-bg-card-alt);
  border-color: var(--op-primary);
  color: var(--op-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================================
   REVIEWS & FAQ ACCORDION
   ======================================================== */
.op-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.op-review-card {
  background: var(--op-bg-card);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  padding: 18px;
  box-shadow: var(--op-shadow);
}

.op-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.op-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--op-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.op-review-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.op-review-role {
  font-size: 0.8rem;
  color: var(--op-text-muted);
}

.op-review-body {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
}

/* ========================================================
   FAQ ACCORDION - EXACT MATCH
   ======================================================== */
.op-faq-section {
  margin-top: 40px;
  margin-bottom: 60px;
}

.op-faq-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 15px;
  margin-bottom: 5px;
}

.op-faq-main-title {
  color: #1e90ff;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.op-faq-list {
  display: flex;
  flex-direction: column;
}

.op-faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  transition: background 0.2s ease;
}

.op-faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.op-faq-question {
  padding: 16px 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  user-select: none;
  transition: color 0.2s ease;
}

.op-faq-icon {
  font-size: 0.95rem;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.op-faq-item.active .op-faq-icon {
  transform: rotate(180deg);
  color: #1e90ff;
}

.op-faq-question:hover {
  color: #1e90ff;
}

.op-faq-question:hover .op-faq-icon {
  color: #1e90ff;
}

.op-faq-answer {
  padding: 0 0 18px 28px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.75;
  display: none;
}

.op-faq-answer p {
  margin: 0 0 10px;
}

.op-faq-answer p:last-child {
  margin-bottom: 0;
}

.op-faq-answer ul {
  margin: 8px 0 12px 18px;
  padding: 0;
}

.op-faq-answer li {
  margin-bottom: 6px;
  color: #cbd5e1;
}

.op-faq-answer strong {
  color: #fff;
}

.op-faq-answer a {
  color: #1e90ff;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.op-faq-answer a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.op-faq-item.active .op-faq-answer {
  display: block;
}

/* ========================================================
   FOOTER
   ======================================================== */
.op-footer {
  background-color: #0b0e14;
  border-top: 2px solid var(--op-border);
  padding: 40px 0 20px;
  margin-top: auto;
}

.op-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.op-footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.op-footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--op-primary);
}

.op-footer-col p {
  color: var(--op-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.op-footer-links li {
  margin-bottom: 8px;
}

.op-footer-links a {
  color: var(--op-text-muted);
  font-size: 0.9rem;
  transition: var(--op-transition);
}

.op-footer-links a:hover {
  color: var(--op-primary);
  padding-left: 5px;
}

.op-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--op-border);
  color: #64748b;
  font-size: 0.85rem;
}

/* Back to Top */
.op-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--op-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--op-transition);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.op-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.op-back-to-top:hover {
  background: var(--op-primary-hover);
  transform: translateY(-3px);
}

/* Related Characters Section (Nhân vật cùng nhóm) */
.op-related-chars-section {
  margin-top: 40px;
  margin-bottom: 50px;
}

.op-related-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e90ff;
  margin-bottom: 22px;
}

.op-related-heading .op-accent-bar {
  display: inline-block;
  width: 5px;
  height: 24px;
  background: #ffd700;
  border-radius: 2px;
}

.op-related-chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.op-related-char-card {
  background: #151821;
  border: 1px solid #232a3b;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.op-related-char-card:hover {
  transform: translateY(-4px);
  border-color: #ffd700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.op-related-char-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1017;
  margin-bottom: 10px;
}

.op-related-char-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.op-related-char-card:hover .op-related-char-thumb img {
  transform: scale(1.06);
}

.op-related-char-name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: auto;
}

/* ========================================================
   BATTLES (TRẬN CHIẾN) - EXACT DESIGN MATCH
   ======================================================== */
.battle-archive-page {
  max-width: 1200px;
  margin: 30px auto 70px;
  padding: 0 15px;
}

.battle-page-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #1e90ff;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.battle-title-icon {
  font-size: 1.8rem;
  line-height: 1;
}

/* 3 Columns Grid */
.battle-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Battle Card */
.op-battle-card {
  background: #12141a;
  border: 1px solid #1c202a;
  border-radius: 14px;
  padding: 24px 15px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 155px;
}

.op-battle-card:hover {
  background: #161922;
  border-color: #2e3648;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Fighter column */
.op-battle-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 115px;
}

.op-fighter-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  background: #090c12;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}

.op-battle-card:hover .op-fighter-avatar {
  transform: scale(1.05);
}

.op-fighter-name {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: color 0.2s ease;
}

.op-battle-card:hover .op-fighter-name {
  color: #ffd700;
}

/* VS Text Center */
.op-battle-vs-text {
  color: #ffcc00;
  font-size: 1.35rem;
  font-weight: 900;
  font-family: inherit;
  padding: 0 10px;
  letter-spacing: 0.5px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
  .battle-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .battle-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .battle-page-title {
    font-size: 1.6rem;
  }
  .op-battle-card {
    padding: 20px 12px;
  }
  .op-fighter-avatar {
    width: 68px;
    height: 68px;
  }
}

/* Single Battle Details Styles */
.battle-container {
  max-width: 1140px;
  margin: 25px auto 70px;
  padding: 0 15px;
}

.battle-single-header {
  margin-bottom: 25px;
}

.battle-hero {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #12141a;
  border: 1px solid #1c202a;
  border-radius: 18px;
  padding: 35px 25px;
  margin-bottom: 35px;
}

.battle-hero .fighter {
  text-align: center;
  flex: 1;
}

.battle-hero .fighter a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fighter-avatar-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  margin-bottom: 12px;
}

.fighter-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.fighter a:hover .fighter-avatar-wrapper {
  transform: scale(1.08);
}

.fighter-name {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.fighter a:hover .fighter-name {
  color: #ffd700;
}

.battle-vs-arena {
  margin: 0 20px;
}

.battle-vs-circle {
  color: #ffcc00;
  font-size: 2.2rem;
  font-weight: 900;
}

.battle-body {
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 1.05rem;
}

.battle-info {
  background: #12141a;
  border: 1px solid #1c202a;
  padding: 24px 28px;
  border-radius: 14px;
  margin-bottom: 30px;
}

.battle-info h2 {
  color: #1e90ff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  border-bottom: 1px solid #1c202a;
  padding-bottom: 8px;
}

.battle-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.battle-info li {
  margin: 10px 0;
  color: #cbd5e1;
}

.battle-info li a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 700;
}

.battle-timeline {
  background: #12141a;
  border: 1px solid #1c202a;
  padding: 24px 28px;
  border-radius: 14px;
  margin-bottom: 30px;
}

.battle-timeline h2 {
  color: #1e90ff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.battle-timeline ul {
  list-style: none;
  padding-left: 20px;
  border-left: 3px solid #1e90ff;
  margin: 0;
}

.battle-timeline li {
  margin: 12px 0;
  position: relative;
  padding-left: 15px;
  color: #cbd5e1;
}

.battle-timeline li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
}

.battle-content {
  background: #12141a;
  border: 1px solid #1c202a;
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 35px;
}

.battle-content h2,
.battle-body h2 {
  color: #1e90ff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #1c202a;
}

.battle-content h3,
.battle-body h3 {
  color: #ffd700;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 20px 0 10px;
}

.battle-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: #0d0f14;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1c202a;
}

.battle-body th,
.battle-body td {
  padding: 12px 16px;
  border: 1px solid #1c202a;
  text-align: left;
}

.battle-body th {
  background: #181c25;
  color: #ffd700;
  font-weight: 800;
}

.battle-related-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e90ff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.battle-accent-bar {
  display: inline-block;
  width: 5px;
  height: 24px;
  background: #ffd700;
  border-radius: 2px;
}




