/**
 * Mobile Sidebar Styles
 * استایل‌های سایدبار موبایل
 */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.mobile-menu-toggle i {
    font-size: 20px;
}

/* Hide on Desktop */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-content {
    padding-bottom: 20px;
}

/* Header */
.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-logo img {
    height: 40px;
    width: auto;
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Search Box */
.mobile-sidebar-search {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-group {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Sections */
.mobile-sidebar-section {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title i {
    font-size: 18px;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
    transform: scaleY(1);
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu a span {
    flex: 1;
    font-size: 14px;
}

/* Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.category-item {
    margin-bottom: 2px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.category-link i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.category-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
}

.category-link span {
    flex: 1;
    font-size: 14px;
}

.submenu-toggle {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-item.open .submenu-toggle {
    transform: rotate(180deg);
}

/* Submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease;
}

.category-item.open .sidebar-submenu {
    max-height: 500px;
}

.submenu-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-header a {
    font-weight: 600;
    color: #ffd700;
}

.sidebar-submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 50px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.sidebar-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-right: 45px;
}

.sidebar-submenu li a i {
    font-size: 12px;
    width: 16px;
}

/* Contact Section */
.contact-section {
    background: rgba(0, 0, 0, 0.15);
}

.contact-info {
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: white;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: #ffd700;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-link.telegram {
    background: #0088cc;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer */
.mobile-sidebar-footer {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin: 0 0 5px 0;
}

.company-name {
    margin: 0;
}

.company-name a {
    color: #ffd700;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.company-name a:hover {
    text-decoration: underline;
}

/* Scrollbar */
.mobile-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.mobile-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Hide on Desktop */
@media (min-width: 769px) {
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
}

