/**
 * Enhanced Navigation Styles
 * @package SoiCauPro
 */

/* Header với gradient đẹp */
.site-header {
    background: linear-gradient(135deg, #c8232c 0%, #e74c3c 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Main Navigation với màu nổi bật */
.main-navigation {
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
}

.main-navigation .nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu li {
    position: relative;
    border: none;
}

.main-navigation .nav-menu a {
    display: inline-block;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation .nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-navigation .nav-menu a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.1);
}

.main-navigation .nav-menu a:hover::before {
    width: 80%;
}

.main-navigation .nav-menu .current-menu-item a,
.main-navigation .nav-menu .current_page_item a {
    background: rgba(255,215,0,0.15);
    color: #ffd700;
}

.main-navigation .nav-menu .current-menu-item a::before,
.main-navigation .nav-menu .current_page_item a::before {
    width: 80%;
}

/* Quick Menu Bar với màu sắc rực rỡ */
.quick-menu-bar {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 10px 0;
    border-bottom: 2px solid #ddd;
}

.quick-menu {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.quick-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.quick-menu-item:hover::before {
    left: 100%;
}

/* Màu sắc cho từng menu item */
.quick-menu-item.soi-cau {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.quick-menu-item.soi-cau:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230,126,34,0.4);
}

.quick-menu-item.thong-ke {
    background: linear-gradient(135deg, #27ae60 0%, #16a085 100%);
    color: white;
}

.quick-menu-item.thong-ke:hover {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26,188,156,0.4);
}

.quick-menu-item.ket-qua {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
}

.quick-menu-item.ket-qua:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #a569bd 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155,89,182,0.4);
}

.quick-menu-item.quay-thu {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.quick-menu-item.quay-thu:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192,57,43,0.4);
}

/* Icon styles */
.quick-menu-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile Bottom Navigation màu sắc */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.mobile-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #bdc3c7;
    padding: 8px 5px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: width 0.3s ease;
}

.mobile-bottom-nav .nav-item:active,
.mobile-bottom-nav .nav-item.active {
    color: #ffd700;
}

.mobile-bottom-nav .nav-item:active::before,
.mobile-bottom-nav .nav-item.active::before {
    width: 80%;
}

.mobile-bottom-nav .nav-icon {
    font-size: 20px;
    margin-bottom: 3px;
}

.mobile-bottom-nav span {
    font-size: 11px;
    font-weight: 500;
}

/* Desktop enhancements */
@media (min-width: 768px) {
    .main-navigation {
        display: block !important;
        position: static;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .quick-menu-item {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .quick-menu-icon {
        font-size: 20px;
    }
    
    .mobile-bottom-nav {
        display: none;
    }
}

/* Animation on page load */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation disabled for mobile compatibility
@media (min-width: 768px) {
    .main-navigation {
        animation: slideDown 0.5s ease;
    }
} */

.quick-menu-item {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.quick-menu-item:nth-child(1) { animation-delay: 0.1s; }
.quick-menu-item:nth-child(2) { animation-delay: 0.2s; }
.quick-menu-item:nth-child(3) { animation-delay: 0.3s; }
.quick-menu-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}