/*
Theme Name: بیزینس بابایی
Description: قالب اختصاصی و یکپارچه برای مجموعه بازرگانی بیزینس بابایی (واردات و صادرات)
Author: Your Name
Version: 1.1
Text Domain: business-babaei
*/

/* تنظیمات پایه و ریست */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; }
body { background-color: #f4f6f9; color: #333; line-height: 1.6; }

/* هدر و منوی ناوبری */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; background: #0A192F; color: white;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.logo { font-size: 26px; font-weight: 800; color: #FFC107; text-decoration: none; letter-spacing: 1px;}
.logo span { color: white; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { color: #ccd6f6; text-decoration: none; font-weight: 500; transition: 0.3s; }
nav a:hover { color: #FFC107; }
.cta-btn {
    padding: 10px 25px; background: #FFC107; color: #0A192F;
    border: none; border-radius: 5px; font-weight: bold;
    text-decoration: none; transition: 0.3s;
}
.cta-btn:hover { background: #ffca2c; transform: translateY(-2px); }

/* بخش اصلی (Hero Section) */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)),
    url('https://images.unsplash.com/photo-1577717903612-ea3374828f09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: white; padding: 0 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 800; text-shadow: 2px 2px 5px rgba(0,0,0,0.5); }
.hero h1 span { color: #FFC107; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; max-width: 700px; color: #e2e8f0; }
.hero-btns { display: flex; gap: 20px; }
.hero .btn-primary { background: #FFC107; color: #0A192F; padding: 15px 35px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: 0.3s;}
.hero .btn-primary:hover { background: white; color: #0A192F; }
.hero .btn-outline { border: 2px solid white; color: white; padding: 15px 35px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: 0.3s;}
.hero .btn-outline:hover { background: white; color: #0A192F; }

/* بخش خدمات (Services) */
.services { padding: 100px 8%; text-align: center; background: white; }
.section-title { font-size: 2.5rem; color: #0A192F; margin-bottom: 10px; font-weight: 800;}
.section-subtitle { color: #64748b; margin-bottom: 60px; font-size: 1.1rem;}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
    background: #f8fafc; padding: 40px 30px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.4s;
    border-bottom: 4px solid transparent;
}
.card:hover { transform: translateY(-10px); border-bottom: 4px solid #FFC107; background: white; box-shadow: 0 20px 40px rgba(0,0,0,0.1);}
.card-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.card h3 { color: #0A192F; margin-bottom: 15px; font-size: 1.4rem;}
.card p { color: #475569; font-size: 0.95rem; line-height: 1.8; }

/* بخش درباره ما (About Us) */
.about-us { padding: 100px 8%; background: #f8fafc; }
.about-container { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.about-content { flex: 1; min-width: 300px; text-align: right; }
.about-content .section-title { text-align: right; }
.about-text { color: #475569; font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; text-align: justify; }

.about-image { flex: 1; min-width: 300px; }
.about-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); transition: 0.3s; }
.about-image img:hover { transform: scale(1.02); }

/* استایل آمارهای بخش درباره ما */
.about-stats { display: flex; gap: 40px; margin-top: 30px; border-top: 2px solid #e2e8f0; padding-top: 20px;}
.stat-item { text-align: center; }
.stat-number { display: block; font-size: 2.2rem; font-weight: 800; color: #FFC107; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.95rem; color: #0A192F; font-weight: bold; }

/* فوتر سایت */
footer { background: #0A192F; color: #94a3b8; text-align: center; padding: 30px; margin-top: 50px; border-top: 4px solid #FFC107;}

/* واکنش‌گرایی برای موبایل و تبلت */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 15px; }
    nav ul { gap: 15px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { flex-direction: column; width: 100%; gap: 10px; }
    .about-stats { justify-content: space-between; gap: 10px; }
    .stat-number { font-size: 1.5rem; }
}

/* ============================================
   بخش گالری
   ============================================ */
.gallery-section {
    padding: 80px 8%;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.9); /* رنگ سرمه‌ای قالب */
    color: #FFC107; /* رنگ زرد قالب */
    padding: 20px;
    text-align: center;
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

/* اسکرول نرم برای حرکت بین بخش‌های مختلف صفحه */
html {
    scroll-behavior: smooth;
}

/* =========================================
   استایل‌های پروفایل کاربری
========================================= */
.bb-profile-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.bb-profile-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}
.profile-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.profile-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.bb-profile-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* سایدبار */
.bb-profile-sidebar {
    width: 300px;
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    flex-shrink: 0;
}

.bb-user-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f4f8;
    margin-bottom: 15px;
}

.bb-user-name {
    font-size: 20px;
    color: #2d3748;
    margin: 0 0 5px;
}

.bb-user-role {
    color: #718096;
    font-size: 14px;
    margin-bottom: 25px;
}

.bb-sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-sidebar-menu a {
    text-decoration: none;
    color: #4a5568;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: right;
    font-weight: 500;
}

.bb-sidebar-menu a:hover, .bb-sidebar-menu a.active {
    background: #edf2f7;
    color: #2b6cb0;
}

.bb-sidebar-menu a.logout-btn {
    color: #e53e3e;
    margin-top: 10px;
    border: 1px solid #fed7d7;
}

.bb-sidebar-menu a.logout-btn:hover {
    background: #fff5f5;
}

/* محتوای اصلی */
.bb-profile-content {
    flex-grow: 1;
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bb-section-title {
    font-size: 22px;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
}

.bb-section-subtitle {
    font-size: 18px;
    color: #2d3748;
    margin: 30px 0 10px;
}

.bb-hint {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 20px;
}

/* کارت‌های آمار */
.bb-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.bb-stat-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}

.bb-stat-label {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.bb-stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #2b6cb0;
    word-break: break-all;
}

/* فرم‌ها */
.bb-profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bb-form-row {
    display: flex;
    gap: 20px;
}

.bb-form-row .bb-form-group {
    flex: 1;
}

.bb-form-group label {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.bb-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.bb-form-group input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.bb-btn-submit {
    background: #3182ce;
    color: #fff;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    width: fit-content;
}

.bb-btn-submit:hover {
    background: #2b6cb0;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .bb-profile-container {
        flex-direction: column;
    }
    .bb-profile-sidebar {
        width: 100%;
        box-sizing: border-box;
    }
    .bb-form-row {
        flex-direction: column;
        gap: 20px;
    }
}