/* ========================================================
   RESPONSIVE & MOBILE DRAWER STYLES
   ======================================================== */

/* Mobile Offcanvas Drawer */
.op-mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background: var(--op-bg-card);
  border-right: 2px solid var(--op-border);
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
}

.op-mobile-drawer.open {
  left: 0;
}

.op-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--op-border);
}

.op-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.op-drawer-menu {
  list-style: none;
  padding: 15px 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.op-drawer-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--op-text-main);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.op-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--op-transition);
}

.op-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Breakpoint 992px */
@media (max-width: 992px) {
  .op-nav-desktop {
    display: none;
  }

  .op-mobile-toggle {
    display: block;
  }

  .op-hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .op-hero-thumb {
    width: 160px;
    margin: 0 auto;
  }

  .op-hero-badges,
  .op-hero-actions {
    justify-content: center;
  }

  .op-footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Breakpoint 768px */
@media (max-width: 768px) {
  .op-header-search {
    display: none;
  }

  .op-hero-title {
    font-size: 1.6rem;
  }

  .op-section-title {
    font-size: 1.2rem;
  }

  .op-chapter-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 6px;
  }

  .op-chapter-item {
    font-size: 0.82rem;
    padding: 8px 4px;
  }

  .op-vote-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 15px;
  }

  .op-vote-stats {
    text-align: center;
  }

  .op-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .op-profile-img {
    width: 180px;
  }

  .op-chapter-nav {
    flex-wrap: wrap;
  }

  .op-chapter-select {
    max-width: 100%;
    order: 3;
  }
}

/* Breakpoint 480px */
@media (max-width: 480px) {
  .op-header-inner {
    height: 65px;
  }

  .op-logo img {
    max-height: 48px;
  }

  .op-hero-title {
    font-size: 1.35rem;
  }

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