/* ========================================
   SIDENAV MENU REDESIGN
   Modern Offcanvas Navigation
   ======================================== */

/* Offcanvas Bar */
.uk-offcanvas-bar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    width: 320px !important;
    padding: 30px 20px !important;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1) !important;
}

/* Close Button */
.uk-offcanvas-close {
    color: #1e293b !important;
    background: rgba(102, 126, 234, 0.1) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    transition: all 0.3s ease !important;
}

.uk-offcanvas-close:hover {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    transform: rotate(90deg) !important;
}

/* Logo */
.uk-offcanvas-bar .uk-logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.2));
    transition: transform 0.3s ease;
}

.uk-offcanvas-bar .uk-logo:hover {
    transform: scale(1.05);
}

/* Login/Register Button */
.tas-signin {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3) !important;
    width: 100%;
    text-align: center;
}

.tas-signin:hover {
    background: linear-gradient(135deg, #764ba2, #667eea) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4) !important;
}

.tas-signin i {
    margin-right: 8px;
}

/* Profile Header */
.tas-profile-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.tas-profile-header:hover {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.tas-profile-header .uk-comment-avatar {
    border: 3px solid #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tas-profile-header .uk-comment-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
}

.tas-profile-header .sub-text {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

/* Divider */
.uk-offcanvas-bar hr {
    border-top: 2px solid #e2e8f0;
    margin: 20px 0;
}

/* Main Menu */
.tas-main-menu {
    padding: 0 !important;
}

.tas-main-menu li {
    margin-bottom: 8px;
}

.tas-main-menu li a {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    background: white;
    border: 2px solid transparent;
}

.tas-main-menu li a i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.tas-main-menu li a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
    color: #1e293b !important;
    border-color: #667eea;
    transform: translateX(4px);
}

.tas-main-menu li a:hover i {
    transform: scale(1.2);
}

.tas-main-menu li.uk-active a {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    border-color: transparent;
}

.tas-main-menu li.uk-active a i {
    color: white;
}

/* Categories Section Header */
.uk-offcanvas-bar h5 {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 16px;
    margin-bottom: 12px;
}

/* Categories Menu */
.tas-categories-menu {
    padding: 0 !important;
}

.tas-categories-menu li {
    margin-bottom: 6px;
}

.tas-categories-menu li a {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    background: white;
    border: 2px solid transparent;
}

.category-menu-image {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.category-menu-image img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-menu-title {
    flex: 1;
}

.tas-categories-menu li a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
    color: #1e293b !important;
    border-color: #667eea;
    transform: translateX(4px);
}

.tas-categories-menu li a:hover .category-menu-image {
    border-color: #667eea;
    transform: scale(1.1);
}

/* Social Media Icons */
.tas-followus {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 20px 0 !important;
}

.tas-followus li {
    list-style: none;
}

.tas-followus li a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #e2e8f0;
}

.tas-followus li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: currentColor;
}

/* Offcanvas Nav (Header) */
#offcanvas-nav .uk-offcanvas-bar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

#offcanvas-nav .uk-nav-default > li > a {
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: white;
    border: 2px solid transparent;
    margin-bottom: 6px;
}

#offcanvas-nav .uk-nav-default > li > a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1)) !important;
    color: #1e293b !important;
    border-color: #667eea;
    transform: translateX(4px);
}

#offcanvas-nav .uk-nav-default > li.uk-active > a {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
}

#offcanvas-nav h4 {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .uk-offcanvas-bar {
        width: 280px !important;
        padding: 25px 16px !important;
    }
    
    .tas-main-menu li a,
    .tas-categories-menu li a,
    #offcanvas-nav .uk-nav-default > li > a {
        font-size: 0.95rem !important;
        padding: 10px 14px !important;
    }
    
    .category-menu-image {
        width: 32px;
        height: 32px;
    }
    
    .category-menu-image img {
        width: 20px;
        height: 20px;
    }
}
