/*
Theme Name: BiyeJachai Matrimonial
Theme URI: https://easy.biyejachai.com
Author: BiyeJachai Team
Author URI: https://easy.biyejachai.com
Description: বাংলাদেশের বিশ্বস্ত মেট্রোমনিয়াল WordPress থিম — সম্পূর্ণ কাস্টম বানানো।
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: biyejachai
Tags: matrimonial, directory, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --secondary: #8b5cf6;
    --secondary-dark: #7c3aed;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f9fafb;
    --border: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.container-fluid {
    max-width: 100%;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 15px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 15px;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 15px;
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-help {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body {
    padding: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--light);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.badge-verified {
    background: #d1fae5;
    color: #047857;
}

.badge-premium {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
}

.badge-featured {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 15px;
}

.alert-success {
    background: #ecfdf5;
    border-color: var(--success);
    color: #047857;
}

.alert-error {
    background: #fef2f2;
    border-color: var(--danger);
    color: #b91c1c;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border-color: var(--warning);
    color: #92400e;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 5px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.site-logo .logo-icon {
    font-size: 32px;
    line-height: 1;
}

.site-logo .logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.nav-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--dark);
    padding: 5px 10px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: #fef08a;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary {
    background: var(--white);
    color: var(--secondary-dark);
}

.hero-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--secondary-dark);
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    background: var(--white);
    padding: 50px 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
}

/* ============================================
   SECTION
   ============================================ */
.section {
    padding: 70px 0;
}

.section-gray {
    background: #f3f4f6;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   PROFILE CARD
   ============================================ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.profile-card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.profile-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-card:hover .profile-card-image {
    transform: scale(1.05);
}

.profile-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.profile-card-body {
    padding: 22px;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.profile-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    flex: 1;
}

.profile-card-info {
    color: var(--gray);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.profile-card-id {
    color: var(--gray-light);
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   SEARCH / FILTER FORM
   ============================================ */
.search-box {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.search-box h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: end;
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */
.profiles-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.filter-sidebar {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-sidebar h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 600;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    cursor: pointer;
    color: var(--gray);
}

.filter-group label:hover {
    color: var(--primary);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

/* ============================================
   PROFILE DETAIL
   ============================================ */
.profile-detail {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-detail-header {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
}

.profile-detail-photo {
    height: 100%;
    min-height: 450px;
}

.profile-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-detail-info {
    padding: 40px;
}

.profile-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.profile-detail-id {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 15px;
}

.profile-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.profile-detail-meta span {
    color: var(--gray);
    font-size: 15px;
}

.profile-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-detail-body {
    padding: 40px;
    border-top: 1px solid var(--border);
}

.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 32px;
}

.detail-list li {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px dashed var(--border);
}

.detail-list strong {
    color: var(--dark);
    min-width: 120px;
}

.detail-list span {
    color: var(--gray);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-widget p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.8;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-widget a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-gray { color: var(--gray); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.d-flex { display: flex; }
.d-none { display: none; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-100 { width: 100%; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-state .icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--dark);
    margin-bottom: 12px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 { font-size: 2.25rem; }
    .hero-content { gap: 40px; }

    .profile-grid { grid-template-columns: repeat(2, 1fr); }

    .search-grid { grid-template-columns: repeat(2, 1fr); }
    .search-grid .btn { grid-column: span 2; }

    .profiles-layout { grid-template-columns: 240px 1fr; gap: 30px; }

    .profile-detail-header { grid-template-columns: 1fr; }
    .profile-detail-photo { min-height: 350px; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-list { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container { padding: 0 16px; }

    /* Navbar */
    .navbar { padding: 10px 0; }
    .site-logo { font-size: 20px; }
    .site-logo .logo-icon { font-size: 26px; }

    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }

    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; gap: 12px; width: 100%; }
    .main-nav a { display: block; padding: 10px 0; width: 100%; border-bottom: 1px solid var(--border); }

    .nav-actions .btn-outline { display: none; }

    /* Hero */
    .hero { padding: 50px 0; }
    .hero-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 1rem; }
    .hero-image { display: none; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }

    /* Stats */
    .stats { padding: 30px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-value { font-size: 1.75rem; }
    .stat-label { font-size: 13px; }

    /* Sections */
    .section { padding: 40px 0; }
    .section-title { margin-bottom: 30px; }
    .section-title h2 { font-size: 1.5rem; }

    /* Profile Cards */
    .profile-grid { grid-template-columns: 1fr; gap: 20px; }
    .profile-card-image-wrapper { height: 280px; }

    /* Search */
    .search-box { padding: 22px; margin-top: -30px; }
    .search-grid { grid-template-columns: 1fr; }
    .search-grid .btn { grid-column: span 1; }

    /* Filters */
    .profiles-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }

    /* Profile Detail */
    .profile-detail-info { padding: 24px; }
    .profile-detail-body { padding: 24px; }
    .profile-detail-actions { flex-direction: column; }
    .profile-detail-actions .btn { width: 100%; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .site-footer { padding: 40px 0 20px; margin-top: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    /* Pagination */
    .pagination .page-numbers { min-width: 38px; height: 38px; font-size: 14px; }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
    .site-logo .logo-text { display: none; }
    .nav-actions .btn { padding: 8px 14px; font-size: 13px; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin: 20px auto;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* WordPress default classes */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--gray); text-align: center; padding: 8px 0; }
.sticky { display: block; }
.gallery-caption { font-size: 14px; }
.bypostauthor { display: block; }
/* ============================================
   MOBILE-FIRST SEARCH SYSTEM
   ============================================ */

.search-section {
    padding: 30px 0 50px;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

/* Search Box */
.search-box {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-box h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 20px;
    color: #1f2937;
}

/* Keyword Input */
.search-keyword-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.keyword-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.keyword-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.keyword-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    background: #f9fafb;
    transition: all 0.3s;
}

.keyword-input:focus {
    outline: none;
    border-color: #ec4899;
    background: white;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.1);
}

.clear-btn {
    position: absolute;
    right: 12px;
    background: #e5e7eb;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clear-btn:hover {
    background: #ec4899;
    color: white;
}

.clear-btn.hidden {
    display: none;
}

/* Live Results Dropdown */
.live-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    border: 1px solid #e5e7eb;
}

.live-results.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-loading {
    padding: 30px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.live-no-results {
    padding: 30px;
    text-align: center;
    color: #6b7280;
}

.live-no-results span {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    opacity: 0.6;
}

.live-no-results p {
    margin: 0;
    font-size: 14px;
}

.live-results-header {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.live-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
    color: inherit !important;
    text-decoration: none;
}

.live-result-item:hover {
    background: #fef3f8;
    transform: translateX(4px);
}

.live-result-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.live-result-content {
    flex: 1;
    min-width: 0;
}

.live-result-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-result-meta {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-result-arrow {
    color: #ec4899;
    font-size: 18px;
    opacity: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

.live-result-item:hover .live-result-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.live-results-footer {
    display: block;
    padding: 14px 16px;
    text-align: center;
    background: #f9fafb;
    color: #ec4899 !important;
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    bottom: 0;
    border-top: 1px solid #e5e7eb;
}

.live-results-footer:hover {
    background: #fef3f8;
}

/* Filter Form - Mobile First */
.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.search-grid > div {
    display: flex;
    flex-direction: column;
}

.search-grid label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.search-grid .form-control {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 12px;
    background: #f9fafb;
}

.btn-search-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    margin-top: 6px;
    border-radius: 12px;
}

/* Quick Tags */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.quick-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.quick-tag {
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.quick-tag:hover {
    background: #fef3f8;
    border-color: #ec4899;
    color: #ec4899;
    transform: translateY(-1px);
}

.quick-tag.active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    border-color: transparent;
}

/* Profile Card Placeholder */
.profile-card-placeholder {
    background: linear-gradient(135deg, #fce7f3, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    opacity: 0.6;
}

/* ============================================
   TABLET - 640px+
   ============================================ */
@media (min-width: 640px) {
    .search-box {
        padding: 32px;
    }

    .search-box h2 {
        font-size: 1.5rem;
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-search-submit {
        grid-column: span 2;
    }
}

/* ============================================
   DESKTOP - 1024px+
   ============================================ */
@media (min-width: 1024px) {
    .search-section {
        padding: 50px 0 70px;
    }

    .search-box {
        padding: 40px;
        margin-top: -60px;
    }

    .search-box h2 {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .search-grid {
        grid-template-columns: repeat(5, 1fr) auto;
        align-items: end;
        gap: 12px;
    }

    .btn-search-submit {
        grid-column: auto;
        width: auto;
        white-space: nowrap;
        padding: 12px 28px;
    }

    .keyword-input {
        padding: 18px 50px;
        font-size: 17px;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 1.625rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-buttons .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .stats {
        padding: 30px 0;
        margin-top: -30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 15px 10px;
        background: #f9fafb;
        border-radius: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 12px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.375rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .profile-card-image-wrapper {
        height: 240px;
    }

    .profile-card-body {
        padding: 16px;
    }

    .profile-card-name {
        font-size: 1.125rem;
    }

    /* Live results mobile */
    .live-results {
        max-height: 320px;
        border-radius: 12px;
    }

    .live-result-item {
        padding: 10px 12px;
    }

    .live-result-thumb {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .live-result-title {
        font-size: 13px;
    }

    .live-result-meta {
        font-size: 11px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-widget h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
    }

    .quick-tag {
        min-height: 36px;
        padding: 8px 16px;
    }
}

/* ============================================
   SMALL MOBILE - 480px
   ============================================ */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-value {
        font-size: 1.375rem;
    }

    .search-box {
        padding: 20px;
        border-radius: 16px;
    }

    .keyword-input {
        padding: 14px 44px;
        font-size: 15px;
    }

    .keyword-input-wrapper .search-icon {
        left: 14px;
        font-size: 16px;
    }
}

/* ============================================
   HOVER EFFECTS DISABLED ON TOUCH
   ============================================ */
@media (hover: none) {
    .profile-card:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }
}