/* ── Bonga Jobs — custom.css ─────────────────────────────────────── */

/* 1. Base */
*, *::before, *::after { box-sizing: border-box; }

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. Job card hover lift */
.job-card {
    will-change: transform, box-shadow;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(217, 119, 6, 0.12), 0 2px 8px -2px rgba(0,0,0,0.06);
}

/* 3. Active filter chips */
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background-color: #fef3c7;
    color: #b45309;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #fde68a;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
}
.filter-chip:hover {
    background-color: #fde68a;
}

/* 4. Prose-like job description */
.prose-job {
    max-width: none;
    line-height: 1.75;
    color: #374151;
}
.prose-job p   { margin-bottom: 0.75rem; }
.prose-job ul  { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose-job ol  { list-style: decimal; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose-job li  { margin-bottom: 0.25rem; }
.prose-job h2,
.prose-job h3  { font-weight: 600; color: #111827; margin: 1.25rem 0 0.5rem; }
.prose-job strong { font-weight: 600; }

/* 5. Ad slots */
.ad-slot {
    background-color: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.75rem;
    color: #94a3b8;
    font-size: 0.72rem;
    text-align: center;
    user-select: none;
}

/* ── Ad slot size caps — prevent AdSense from blowing up height ── */
.ad-leaderboard { min-height: 90px;  max-height: 100px; overflow: hidden; }
.ad-sidebar      { min-height: 250px; max-height: 250px; width: 300px; overflow: hidden; }
.ad-infeed       { min-height: 90px;  max-height: 280px; overflow: hidden; }
.ad-inarticle    { min-height: 90px;  max-height: 280px; overflow: hidden; }

/* Prevent the ins element itself from overflowing its wrapper */
.ad-slot ins.adsbygoogle { display: block !important; }

/* 6. Smooth page load fade-in */
body { animation: pageFadeIn 0.3s ease; }
@keyframes pageFadeIn {
    from { opacity: 0.6; }
    to   { opacity: 1;   }
}

/* 7. Focus ring — consistent, accessible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 8. Line clamp fallback */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 9. Skeleton loader (for future AJAX use) */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* 10. Scrollbar */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 11. Floating hero badge decorators */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
@keyframes floatMedium {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}
@keyframes floatFast {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}
.animate-float-slow   { animation: floatSlow   5s ease-in-out infinite; }
.animate-float-medium { animation: floatMedium 4s ease-in-out infinite; }
.animate-float-fast   { animation: floatFast   3.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* 12. Category card hover */
.category-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -4px rgba(0,0,0,0.10); }

/* 13. Hero gradient text animation */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-gradient-text {
    background: linear-gradient(135deg, #fcd34d, #f97316, #2dd4bf, #fcd34d);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}
