/* Webtoon Bottom Menu Styles */
.webtoon-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #e0e0e0;
    z-index: 9999;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.webtoon-bottom-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 500px;
    margin: 0 auto;
}

.webtoon-bottom-menu .menu-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.webtoon-bottom-menu .menu-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 8px 4px;
    font-size: 10px;
    border-radius: 8px;
    margin: 0 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.webtoon-bottom-menu .menu-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.webtoon-bottom-menu .menu-item span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Login badge */
.login-badge {
    position: absolute;
    top: -2px;
    right: 0;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active & Hover States */
.webtoon-bottom-menu .menu-item a:hover,
.webtoon-bottom-menu .menu-item.current-menu-item a,
.webtoon-bottom-menu .menu-item.current-page-ancestor a,
.webtoon-bottom-menu .menu-item.current-page-parent a {
    transform: translateY(-2px);
}

.webtoon-bottom-menu .menu-item a:hover i,
.webtoon-bottom-menu .menu-item.current-menu-item i,
.webtoon-bottom-menu .menu-item.current-page-ancestor i,
.webtoon-bottom-menu .menu-item.current-page-parent i {
    transform: scale(1.1) translateY(-2px);
}

/* Active Indicator */
.webtoon-bottom-menu .menu-item.current-menu-item a::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 1;
}

/* Add padding to body to prevent content from being hidden behind menu */
body {
    padding-bottom: 80px !important;
}

/* Responsive Design */
@media (min-width: 769px) {
    .webtoon-bottom-nav {
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    body {
        padding-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    .webtoon-bottom-menu .menu-item a {
        font-size: 9px;
        padding: 6px 2px;
    }
    
    .webtoon-bottom-menu .menu-item i {
        font-size: 18px;
    }
    
    body {
        padding-bottom: 75px !important;
    }
}

@media (max-width: 480px) {
    .webtoon-bottom-menu .menu-item span {
        font-size: 10px;
    }
    
    .webtoon-bottom-menu .menu-item i {
        font-size: 16px;
    }
    
    .webtoon-bottom-nav {
        padding: 6px 0 10px;
    }
    
    body {
        padding-bottom: 70px !important;
    }
}

/* Animation for menu appearance */
@keyframes slideUpBottomMenu {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.webtoon-bottom-nav {
    animation: slideUpBottomMenu 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Login Popup Styles */
.webtoon-login-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webtoon-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.webtoon-popup-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.webtoon-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.webtoon-popup-close:hover {
    color: #333;
}

.webtoon-popup-icon {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.webtoon-popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.webtoon-popup-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #666;
}

.webtoon-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.webtoon-popup-ok {
    padding: 12px 24px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.webtoon-popup-ok:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .webtoon-bottom-nav {
        border-top-color: #333333;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .webtoon-bottom-nav {
        border-top-width: 2px;
    }
    
    .webtoon-bottom-menu .menu-item a {
        font-weight: 600;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .webtoon-bottom-menu .menu-item a,
    .webtoon-bottom-menu .menu-item i {
        transition: none;
    }
    
    .webtoon-bottom-nav {
        animation: none;
    }
    
    .webtoon-popup-content {
        animation: none;
    }
}

/* Preview mode */
.preview-mode .webtoon-bottom-nav {
    position: absolute;
    animation: none;
}