/* ========== Desktop Navigation ========== */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav .nav-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav .nav-link:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.main-nav .nav-link.active {
    color: #0d6efd;
    background-color: #e7f1ff;
}

.main-nav .nav-link i {
    font-size: 1.1rem;
}

/* ========== Mobile Header (بالای صفحه) ========== */
.mobile-header {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.mobile-brand {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.mobile-design-btn {
    background: white;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.mobile-design-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #764ba2;
}

.mobile-design-btn i {
    font-size: 1rem;
}

/* ========== Bottom Navigation (پایین صفحه) ========== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 1000;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 100px;
}

.bottom-nav-item i {
    font-size: 1.3rem;
}

.bottom-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

.bottom-nav-item:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.bottom-nav-item.active {
    color: #0d6efd;
    background-color: #e7f1ff;
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* ========== Mobile Responsive ========== */
@media (max-width: 992px) {
    /* نمایش هدر موبایل */
    .mobile-header {
        display: block;
    }

    /* مخفی کردن navbar دسکتاپ */
    .navbar {
        display: none;
    }

    /* نمایش bottom navigation */
    .bottom-nav {
        display: flex;
    }

    /* فضای خالی برای bottom nav */
    body {
        padding-bottom: 70px;
    }
}

/* ========== Desktop: مخفی کردن المان‌های موبایل ========== */
@media (min-width: 993px) {
    .mobile-header,
    .bottom-nav {
        display: none !important;
    }
}
.interest-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px !important;
    overflow: hidden;
}

.interest-card .card-body {
    min-height: 120px;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.interest-card:hover .icon-wrapper {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.icon-wrapper i {
    font-size: 1.8rem;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.interest-card:hover::before {
    opacity: 1;
}

/* بهینه‌سازی موبایل */
@media (max-width: 576px) {
    .interest-card .card-body {
        min-height: 100px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .interest-card h6 {
        font-size: 0.85rem;
    }
}
