/* ==========================================================================
   BH Jobs Ethiopia - Ultra Mobile-Responsive Stylesheet
   Engineered for seamless viewing on Android phones & Desktop
   ========================================================================== */

:root {
    --primary: #007A3D;
    --primary-dark: #005A2B;
    --primary-light: #E8F5E9;
    --accent: #FCD116;
    --accent-red: #DA121A;
    --bg-light: #F8FAFC;
    --surface: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: var(--font);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
}

.brand-text h1 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.brand-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link.active {
    color: var(--primary);
}

.admin-link {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0A4D26 0%, #007A3D 100%);
    color: #fff;
    padding: 1.75rem 1rem 2.25rem;
    text-align: center;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.35rem, 5vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.hero-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

/* Search Box */
.search-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .search-box {
        flex-direction: row;
        align-items: center;
        padding: 0.5rem 0.75rem;
    }
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    flex: 1;
}

@media (min-width: 768px) {
    .search-input-group {
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
}

.search-input-group input, .search-input-group select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.95rem;
    background: transparent;
    color: var(--text-main);
}

.btn-search {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Pills Bar */
.categories-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.4rem;
}

.cat-pill {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.cat-pill.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Vacancy Card */
.vacancy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.company-details h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.job-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #F1F5F9;
    color: #475569;
}

.tag.salary {
    background: #FEF3C7;
    color: #92400E;
    font-weight: 600;
}

.tag.deadline {
    background: #FEE2E2;
    color: #991B1B;
    font-weight: 600;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.btn-view {
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

/* Vacancy Detail Page */
.detail-layout {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.vacancy-detail-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
}

.detail-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

@media (min-width: 600px) {
    .detail-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

.kpi-item h6 {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.kpi-item p {
    font-size: 0.85rem;
    font-weight: 700;
}

.section-block {
    margin-bottom: 1.25rem;
}

.section-block h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--primary);
    padding-left: 0.5rem;
}

.section-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
    white-space: pre-line;
}

.apply-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
    margin-top: 1.5rem;
}

.btn-apply-primary {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    text-align: center;
}

.social-share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.share-btn {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.share-telegram { background: #229ED9; }
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }

/* Footer */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.8rem;
    text-align: center;
}
