/* ═══ لحية — Main Styles ═══ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Tajawal', sans-serif;
    background: #1A1A1A;
    color: #E0E0E0;
    line-height: 1.7;
    direction: rtl;
}

a { color: #C8A951; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }

/* ── Header ── */
.site-header {
    background: #111;
    border-bottom: 1px solid rgba(200,169,81,0.15);
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-branding { display: flex; align-items: center; gap: 0.5rem; }
.site-logo {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.5rem;
    color: #C8A951;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.logo-mark {
    background: #C8A951;
    color: #111;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Aref Ruqaa', serif;
}
.site-tagline {
    font-size: 0.8rem;
    color: #888;
    font-family: 'Tajawal', sans-serif;
}

/* Menu toggle (hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #C8A951;
    cursor: pointer;
    padding: 0.5rem;
}

/* Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.main-nav a {
    color: #ccc;
    font-size: 0.95rem;
    font-weight: 500;
}
.main-nav a:hover { color: #C8A951; }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
    background: linear-gradient(180deg, #111 0%, #1A1A1A 100%);
}
.hero-logo {
    font-family: 'Aref Ruqaa', serif;
    font-size: 4rem;
    color: #C8A951;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.hero-question {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
.hero-answer {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.3rem;
    color: #C8A951;
    margin-bottom: 0.5rem;
}
.subtitle {
    font-size: 1rem;
    color: #999;
    margin-bottom: 2rem;
}

/* ── Search Box ── */
.tribe-search-box { max-width: 600px; margin: 0 auto; }
.tribe-search-form {
    display: flex;
    background: #222;
    border: 1px solid rgba(200,169,81,0.3);
    border-radius: 12px;
    overflow: hidden;
}
.tribe-search-input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    outline: none;
}
.tribe-search-input::placeholder { color: #666; }
.tribe-search-btn {
    padding: 0.9rem 1.5rem;
    background: #C8A951;
    color: #111;
    border: none;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s;
}
.tribe-search-btn:hover { background: #d4b85e; }

/* ── How It Works ── */
.how-it-works {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.how-step { text-align: center; }
.how-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(200,169,81,0.15);
    color: #C8A951;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.2rem;
    margin: 0 auto 0.5rem;
}
.how-step h3 {
    font-family: 'Aref Ruqaa', serif;
    color: #C8A951;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.how-step p { font-size: 0.85rem; color: #999; }

/* ── Stats ── */
.tribe-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-family: 'Aref Ruqaa', serif;
    font-size: 2rem;
    color: #C8A951;
    font-weight: 700;
}
.stat-label { font-size: 0.8rem; color: #888; }

/* ── Section ── */
.home-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-title {
    font-family: 'Aref Ruqaa', serif;
    color: #C8A951;
    font-size: 1.5rem;
}
.section-link {
    font-size: 0.9rem;
    color: #888;
}

/* ── People Grid ── */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.people-card {
    background: rgba(200,169,81,0.06);
    border: 1px solid rgba(200,169,81,0.15);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}
.people-card:hover {
    background: rgba(200,169,81,0.12);
    border-color: #C8A951;
    transform: translateY(-2px);
}
.people-card a { color: inherit; }
.people-card h3 {
    font-family: 'Aref Ruqaa', serif;
    color: #C8A951;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.people-card .count { font-size: 0.85rem; color: #999; }

/* ── Tribe Grid ── */
.tribe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}
.tribe-card {
    background: #222;
    border: 1px solid rgba(200,169,81,0.12);
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.2s ease;
}
.tribe-card:hover {
    border-color: #C8A951;
    transform: translateY(-2px);
}
.tribe-card-title {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.tribe-card-title a { color: #C8A951; }
.tribe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.tribe-badge {
    background: rgba(200,169,81,0.12);
    color: #C8A951;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}
.tribe-badge.location {
    background: rgba(100,180,255,0.1);
    color: #64b4ff;
}
.tribe-card-excerpt {
    font-size: 0.88rem;
    color: #aaa;
    line-height: 1.6;
}

/* ── Hierarchy Bar ── */
.hierarchy-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
}
.hierarchy-bar a { color: #C8A951; }
.hierarchy-bar .sep { color: #555; }
.hierarchy-bar .current { color: #fff; font-weight: 700; }

/* ── Tribe Single Page ── */
.tribe-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.tribe-single-header { margin-bottom: 2rem; }
.tribe-single-title {
    font-family: 'Aref Ruqaa', serif;
    font-size: 2.2rem;
    color: #C8A951;
    margin-bottom: 0.8rem;
}
.tribe-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.tribe-single-meta a {
    background: rgba(200,169,81,0.12);
    color: #C8A951;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}
.tribe-badge-people { background: rgba(200,169,81,0.25) !important; }
.tribe-single-excerpt {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(200,169,81,0.04);
    border-right: 3px solid #C8A951;
    border-radius: 4px;
}
.tribe-single-content {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.9;
}

/* ── Tribe Sections ── */
.tribe-section { margin-top: 3rem; }
.tribe-section .section-title {
    font-family: 'Aref Ruqaa', serif;
    color: #C8A951;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(200,169,81,0.3);
}

/* ── Footer ── */
.site-footer {
    background: #111;
    border-top: 1px solid rgba(200,169,81,0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}
.footer-brand {
    font-family: 'Aref Ruqaa', serif;
    font-size: 1.8rem;
    color: #C8A951;
    margin-bottom: 0.3rem;
}
.footer-tagline {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-links a { color: #999; font-size: 0.9rem; }
.footer-copy { color: #555; font-size: 0.8rem; }

/* ── Admin Form Styles ── */
.l7yh-qa-wrap { max-width: 900px; margin: 2rem auto; }
.l7yh-qa-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.l7yh-qa-tab {
    padding: 0.6rem 1.2rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}
.l7yh-qa-tab.active {
    background: #C8A951;
    color: #111;
    border-color: #C8A951;
}
.l7yh-qa-tab-content { display: none; }
.l7yh-qa-tab-content.active { display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #111;
        border-top: 1px solid rgba(200,169,81,0.15);
        padding: 1rem;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.8rem; }
    .hero-logo { font-size: 2.5rem; }
    .hero-question { font-size: 1.3rem; }
    .how-it-works { flex-direction: column; gap: 1.5rem; }
    .tribe-stats { flex-wrap: wrap; gap: 1rem; }
    .tribe-grid { grid-template-columns: 1fr; }
    .people-grid { grid-template-columns: repeat(2, 1fr); }
}
