/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: -1;
    margin-left: 0.8rem;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background: var(--primary-color);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: visibility 0.3s;
}

.mobile-sidebar.active {
    visibility: visible;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-sidebar.active .sidebar-overlay {
    opacity: 1;
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-sidebar.active .sidebar-content {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
}

.sidebar-header h3 {
    flex: 1;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 900;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.sidebar-link svg {
    width: 24px;
    height: 24px;
}

.sidebar-link.active {
    border-right: 3px solid var(--primary-color);
}

/* Hero Image - Mobile vs Desktop */
.hero-image-desktop {
    object-fit: cover;
    object-position: center top;
}

.hero-image-mobile {
    object-fit: cover;
    object-position: center;
}

/* Show hamburger on mobile/tablet */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .nav-actions {
        margin-right: auto;
    }
}

/* Manhwa page - responsive cover */
@media (max-width: 950px) {
    .details-wrapper {
        grid-template-columns: 1fr !important;
        padding-top: 80px !important;
    }
    
    .details-cover {
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 600px) {
    .details-wrapper {
        padding: 70px 2% 30px !important;
    }
    
    .details-cover {
        max-width: 180px !important;
        aspect-ratio: 2/3 !important;
    }
    
    .title-main {
        font-size: 1.6rem !important;
    }
    
    .actions-bar button {
        min-width: 100px !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 0.75rem !important;
    }
}
