/*
Theme Name: MAROCJOBSEEK
Author: MJS Team
Description: The most advanced futuristic Moroccan job board theme for 2026.
Version: 1.0
*/

/* =========================================
   DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    --color-primary: #5B8CFF;
    --color-secondary: #7B61FF;
    --color-accent: #00D4FF;
    --color-dark: #0B1020;
    --color-surface: #111827;
    --color-light: #F7F9FC;
    --color-text: #E2E8F0;
    --color-text-dim: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--color-dark);
    color: var(--color-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   GLASSMORPHISM NAVIGATION
   ========================================= */
.glass-nav {
    background: rgba(11, 16, 32, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--color-accent); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
}

/* Subtle glowing orb behind search */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 140, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: var(--color-text-dim);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

/* =========================================
   SEARCH BOX
   ========================================= */
.search-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--glass-shadow);
}

.search-box input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 15px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder { color: rgba(255,255,255,0.4); }

.btn-glow {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 140, 255, 0.4);
}

/* =========================================
   LATEST JOBS SECTION
   ========================================= */
.latest-jobs {
    padding: 40px 20px 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.see-all {
    color: var(--color-accent);
    font-weight: 600;
    transition: opacity 0.3s;
}

.see-all:hover { opacity: 0.8; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

/* =========================================
   JOB CARDS (FUTURISTIC)
   ========================================= */
.job-card {
    background: var(--color-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 140, 255, 0.1);
    border-color: rgba(91, 140, 255, 0.3);
}

.job-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-primary { background: rgba(91, 140, 255, 0.15); color: var(--color-primary); }
.badge-success { background: rgba(0, 200, 150, 0.15); color: #00C896; }
.badge-warning { background: rgba(255, 181, 71, 0.15); color: #FFB547; }

.company-info {
    font-size: 0.95rem;
    color: var(--color-text-dim);
}

.salary {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.05rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #94A3B8;
}

/* =========================================
   FOOTER
   ========================================= */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px;
    margin-top: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content p {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--color-accent); }

/* =========================================
   MOBILE BOTTOM NAV (App-Like)
   ========================================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 10px 0 env(safe-area-inset-bottom, 15px);
    justify-content: space-around;
    z-index: 9999;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #4a5568;
    font-size: 0.65rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-icon { font-size: 1.4rem; line-height: 1; }

.mobile-nav-item.active { color: var(--color-accent); }

/* =========================================
   RESPONSIVE (MOBILE FIRST)
   ========================================= */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Hide desktop nav */
    
    .mobile-bottom-nav { display: flex; } /* Show app nav */
    
    body { padding-bottom: 85px; } /* Space for bottom nav */
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    
    .search-box {
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    
    .btn-glow {
        width: 100%;
        text-align: center;
    }
    
    .job-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}