/* static/website/base/desktop.css */
/* Base Desktop & Tablet Styles */

:root {
    --primary-orange: #F58A1E;
    --dark-blue: #0F172A;
    --light-blue-accent: #38BDF8;
    --very-light-gray: #F1F5F9;
    --blueish-gray: #64748B;
    --text-on-dark: #F1F5F9;
    --text-on-light: #0F172A;
    --primary-orange-hover: #E07D1B;
    --light-blue-accent-hover: #1E87F0;
    --card-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.15);
    --transition-base: all 0.3s ease;
    --border-radius-lg: 20px;
    --border-radius-md: 16px;
    --border-radius-sm: 12px;
}

/* فونت */
@font-face {
    font-family: 'IRANSans';
    src: url('/static/fonts/IRANSansWeb(FaNum).woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/static/fonts/IRANSansWeb(FaNum)_Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('/static/fonts/IRANSansWeb(FaNum)_Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    font-family: 'IRANSans', 'Vazirmatn', 'Tahoma', sans-serif;
}

body {
    background-color: var(--very-light-gray);
    color: var(--text-on-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a2340 100%);
    color: var(--text-on-dark);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.1);
}

.header-bottom {
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-orange);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    color: var(--primary-orange-hover);
}

.logo-img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
}

.logo span {
    color: var(--text-on-dark);
    font-weight: 300;
}

.search-box {
    position: relative;
    max-width: 500px;
}

.search-box input {
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    padding-left: 3rem;
    border: 2px solid rgba(241, 245, 249, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-on-dark);
    transition: var(--transition-base);
    width: 100%;
}

.search-box input::placeholder {
    color: rgba(241, 245, 249, 0.6);
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(245, 138, 30, 0.15);
    outline: none;
    color: var(--text-on-dark);
}

.search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-orange);
    font-size: 1.1rem;
}

.btn-login {
    background-color: var(--primary-orange);
    color: var(--text-on-dark);
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-login:hover {
    background-color: var(--primary-orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 138, 30, 0.3);
}

/* ========== SIDEBAR ========== */
.sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin: 1.5rem 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a2340 100%);
    color: white;
    padding: 2rem 1.5rem;
    text-align: center;
}

.sidebar-header h4 {
    color: var(--primary-orange);
    margin: 0;
    font-weight: 700;
}

.category-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    background: var(--very-light-gray);
    border-radius: var(--border-radius-sm);
    color: var(--dark-blue);
    text-decoration: none;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.category-link:hover {
    background: white;
    border-color: var(--primary-orange);
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(245, 138, 30, 0.15);
    color: var(--primary-orange);
}

.category-image {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    margin-left: 1rem;
    border: 2px solid var(--very-light-gray);
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.category-count {
    font-size: 0.8rem;
    color: var(--blueish-gray);
    margin: 0;
}

.category-arrow {
    color: var(--blueish-gray);
    font-size: 0.9rem;
}

.category-link:hover .category-arrow {
    color: var(--primary-orange);
}

/* ========== MAIN CONTENT ========== */
.main-content {
    min-height: 80vh;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-orange);
    display: inline-block;
}

/* ========== USER CARDS ========== */
.user-card {
    background: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-base);
    border: 2px solid transparent;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-orange);
    text-decoration: none;
    color: inherit;
}

.user-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--very-light-gray);
    transition: var(--transition-base);
}

.user-card:hover .user-card-image {
    transform: scale(1.05);
}

.user-card-body {
    padding: 1.3rem;
}

.user-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.user-card-category {
    display: inline-block;
    background: var(--very-light-gray);
    color: var(--primary-orange);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.user-card:hover .user-card-category {
    background: var(--primary-orange);
    color: white;
}

/* ========== CATEGORY MINI ========== */
.category-link-mini {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-link-mini:hover {
    text-decoration: none;
    color: inherit;
}

.category-link-mini .card {
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    cursor: pointer;
}

.category-link-mini .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.category-link-mini .card:hover .card-title {
    color: var(--primary-orange);
}

.category-link-mini .card-title {
    color: var(--dark-blue);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a2340 100%);
    color: var(--text-on-dark);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-on-dark);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--primary-orange);
    opacity: 1;
    padding-right: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(241, 245, 249, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 0.3rem;
    color: var(--text-on-dark);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-icons a:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-3px);
}

/* ========== DROPDOWN ========== */
.dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.75rem;
    text-align: right;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--very-light-gray);
    color: var(--primary-orange);
}

.dropdown-divider {
    margin: 0.25rem 0;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========== BANNER ========== */
.desktop-banner-section {
    display: block;
    margin-bottom: 2rem;
}

.main-banner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    position: relative;
}

.main-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.main-banner img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
}

.banner-static {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition-base);
    position: relative;
}

.banner-static:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.banner-static img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: cover;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: right;
}

.banner-caption h5 {
    color: var(--primary-orange);
    font-weight: 700;
    margin: 0;
    font-size: 1.3rem;
}

.carousel-indicators {
    bottom: 10px;
    z-index: 15;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary-orange);
    margin: 0 5px;
    transition: var(--transition-base);
}

.carousel-indicators button.active {
    background-color: var(--primary-orange);
    width: 14px;
    height: 14px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
    transition: var(--transition-base);
    opacity: 0;
}

.main-banner:hover .carousel-control-prev,
.main-banner:hover .carousel-control-next,
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-orange);
}

/* ========== MOBILE BANNER (Hidden by default) ========== */
.mobile-banner-section {
    display: none;
}

/* ========== SEARCH RESULTS ========== */
.search-results-container {
    display: none;
    margin-top: 1rem;
}

.search-results-container.active {
    display: block;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
}

.no-results i {
    font-size: 3rem;
    color: var(--blueish-gray);
    opacity: 0.5;
}

.no-banner {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a2340 100%);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    color: var(--text-on-dark);
    margin-bottom: 2rem;
    opacity: 0.7;
}

.no-banner i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.user-card-image-placeholder {
    width: 100%;
    height: 200px;
    background: var(--very-light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .header-bottom {
        display: block;
    }
    
    .desktop-banner-section {
        display: none;
    }
    
    .mobile-banner-section {
        display: block;
        margin-bottom: 1.5rem;
    }
    
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .user-card-image {
        height: 160px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .btn-login {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .user-card-image {
        height: 180px;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}