/* ============================================
   Modern Hero Section - Buyut/Bayut Style
   ============================================ */

.modern-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 4rem 0 3rem;
    margin-top: 0; /* حذف فاصله از بالا */
    overflow: hidden;
}

.profiles-main .modern-hero {
    margin-top: 0; /* چسبیدن به هدر در صفحه پروفایل‌ها */
}

/* Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 138, 47, 0.85) 0%,
        rgba(255, 138, 47, 0.95) 100%
    );
    backdrop-filter: blur(8px);
    margin-top: -110px; /* چسبیدن به هدر */
}

.dark .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.7) 0%,
        rgba(15, 23, 42, 0.85) 100%
    );
}

/* Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #ff6b35 !important;
}

.hero-title-main {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ff6b35 !important;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-highlight {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Search Container */
.hero-search-container {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 12px;
}

.search-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tab:hover {
    background: #e2e8f0;
    color: #334155;
}

.search-tab.active {
    background: #667eea;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Search Bar */
.hero-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-input-group {
    flex: 1 1 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.hero-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.hero-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.hero-search-input::placeholder {
    color: #94a3b8;
}

/* Quick Filters */
.search-quick-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-filter {
    padding: 0.85rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #475569;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-filter:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.quick-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Search Buttons */
.hero-search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.hero-search-btn:active {
    transform: translateY(0);
}

.hero-advanced-btn {
    padding: 1rem 1.5rem;
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.hero-advanced-btn:hover {
    background: #667eea;
    color: #fff;
}

/* Quick Links */
.hero-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.quick-links-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.quick-link i {
    font-size: 0.85rem;
    color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title-main,
    .hero-title-highlight {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .search-quick-filters {
        width: 100%;
    }

    .quick-filter {
        flex: 1 1 calc(50% - 0.5rem);
    }
}

@media (max-width: 768px) {
    .modern-hero {
        min-height: auto;
        padding: 3rem 0 2rem;
    }

    .hero-title-main,
    .hero-title-highlight {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-search-container {
        padding: 1.5rem;
    }

    .search-tabs {
        flex-direction: column;
    }

    .search-tab {
        width: 100%;
    }

    .hero-search-bar {
        flex-direction: column;
    }

    .search-input-group {
        width: 100%;
    }

    .search-quick-filters {
        flex-direction: column;
        width: 100%;
    }

    .quick-filter {
        width: 100%;
    }

    .hero-search-btn,
    .hero-advanced-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-quick-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quick-links-label {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title-main,
    .hero-title-highlight {
        font-size: 1.75rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}
