/* =============================================
   JOBHIVE - MAIN STYLESHEET
   ============================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --surface: #f8fafc;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --gradient: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0ea5e9 100%);
    --card-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    --hover-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: #fafbff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- BRAND ---- */
.brand-icon {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.brand-icon-inner {
    position: absolute;
    font-size: 14px;
    color: white;
}
.brand-name {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}
.brand-icon-sm { font-size: 24px; }
.brand-name-sm {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
}

/* ---- NAVBAR ---- */
.navbar { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}
.dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
}
.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.15s;
}
.dropdown-item:hover { background: var(--primary-light); }
.avatar-sm {
    width: 28px; height: 28px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

/* ---- HERO ---- */
.hero-section {
    background: var(--gradient);
    min-height: 520px;
    display: flex; align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
    background: #fafbff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.hero-stats { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.hero-stats strong { color: white; }

/* Search Box */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    gap: 8px;
    align-items: center;
}
.search-box .form-control, .search-box .form-select {
    border: none;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    box-shadow: none !important;
}
.search-divider {
    width: 1px; height: 36px;
    background: var(--border);
    flex-shrink: 0;
}
.search-box .btn { border-radius: 10px; padding: 0.7rem 1.5rem; }

/* ---- CATEGORY CARDS ---- */
.category-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text);
}
.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    color: var(--primary);
}
.category-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin: 0 auto 0.75rem;
    transition: all 0.25s;
}
.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}
.category-name { font-weight: 600; font-size: 0.9rem; }
.category-count { font-size: 0.8rem; color: var(--text-muted); }

/* ---- JOB CARDS ---- */
.job-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    height: 100%;
}
.job-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.job-card:hover {
    border-color: var(--primary);
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
}
.job-card:hover::before { transform: scaleX(1); }

.company-logo-sm {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.job-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.job-title a { text-decoration: none; color: inherit; }
.job-title a:hover { color: var(--primary); }
.job-company { font-size: 0.85rem; font-weight: 500; color: var(--primary); }
.job-meta { font-size: 0.82rem; color: var(--text-muted); }
.job-meta i { color: var(--primary); }
.salary-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: #ecfdf5; color: #059669;
    border-radius: 8px; padding: 4px 10px;
    font-size: 0.82rem; font-weight: 600;
}

/* Save Button */
.save-btn {
    width: 36px; height: 36px;
    border-radius: 10px; border: 1px solid var(--border);
    background: white; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
    font-size: 16px;
}
.save-btn:hover, .save-btn.saved { color: var(--accent); border-color: var(--accent); }
.save-btn.saved { background: #fffbeb; }

/* ---- JOB DETAIL ---- */
.job-detail-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.job-detail-body {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.detail-section h5 {
    font-weight: 700;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.skill-tag {
    display: inline-flex; align-items: center;
    background: var(--primary-light); color: var(--primary);
    border-radius: 8px; padding: 4px 12px;
    font-size: 0.82rem; font-weight: 600;
    margin: 3px;
}

/* ---- COMPANY CARDS ---- */
.company-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text);
    display: block;
    height: 100%;
}
.company-card:hover {
    border-color: var(--primary);
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
    color: var(--text);
}
.company-logo-lg {
    width: 72px; height: 72px;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ---- SIDEBAR WIDGETS ---- */
.sidebar-widget {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}
.sidebar-widget h6 {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}
.filter-check { margin-bottom: 0.5rem; }
.filter-check .form-check-label { cursor: pointer; font-size: 0.9rem; }

/* ---- STAT CARDS ---- */
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.25s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ---- DASHBOARD ---- */
.dashboard-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    height: 100%;
}
.dashboard-card h5 {
    font-weight: 700; 
    margin-bottom: 1.25rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.quick-stat {
    background: var(--gradient);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.quick-stat::before {
    content: '';
    position: absolute; top: -20px; right: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.quick-stat-num { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.quick-stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ---- FORMS ---- */
.auth-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.1);
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }
.form-text { font-size: 0.8rem; color: var(--text-muted); }

/* Input Icons */
.input-group-text {
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 10px 0 0 10px;
}
.input-group .form-control { border-left: none; border-radius: 0 10px 10px 0; }
.input-group:focus-within .input-group-text { border-color: var(--primary); }

/* ---- BUTTONS ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); font-weight: 600; border-radius: 10px; }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-lg { padding: 0.75rem 1.75rem; border-radius: 12px; }
.btn-apply {
    background: var(--gradient);
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}
.btn-apply:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); color: white; }

/* ---- BADGES ---- */
.badge { border-radius: 6px; font-weight: 600; }

/* ---- TABLE ---- */
.table-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}
.table { margin: 0; }
.table thead th {
    background: var(--surface);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.table tbody td { padding: 1rem 1.25rem; vertical-align: middle; }
.table tbody tr:hover { background: var(--surface); }

/* ---- SECTION STYLES ---- */
.section-title { 
    font-family: 'Lora', serif;
    font-weight: 600; 
    color: var(--secondary);
}
.section-subtitle { color: var(--text-muted); }
.section-divider {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.section-divider .divider-line {
    flex: 1; height: 1px; background: var(--border);
}
.view-all-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex; align-items: center; gap: 4px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    padding: 0.4rem 1rem;
    transition: all 0.2s;
}
.view-all-btn:hover { background: var(--primary); color: white; }

/* ---- TESTIMONIAL ---- */
.testimonial-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}
.testimonial-card blockquote { font-style: italic; color: var(--text-muted); font-size: 0.95rem; }

/* ---- CTA SECTION ---- */
.cta-section {
    background: var(--gradient);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    text-align: center;
    color: white;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.cta-section > * { position: relative; z-index: 1; }

/* ---- FOOTER ---- */
.footer-section {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-section h6 { color: white; }
.social-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 16px;
}
.social-icon:hover { background: var(--primary); color: white; }

/* ---- ALERTS ---- */
.alert { border: none; border-radius: 12px; }
.alert-success { background: #ecfdf5; color: #065f46; }
.alert-danger { background: #fef2f2; color: #991b1b; }
.alert-info { background: #eff6ff; color: #1e40af; }
.alert-warning { background: #fffbeb; color: #92400e; }

/* ---- PAGINATION ---- */
.pagination .page-link { border-radius: 8px; margin: 0 2px; border: 1px solid var(--border); color: var(--primary); font-weight: 600; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---- PAGE HEADER ---- */
.page-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.page-header h1 { font-family: 'Lora', serif; font-weight: 600; color: var(--secondary); }

/* ---- PROGRESS ---- */
.progress { border-radius: 8px; height: 8px; background: var(--border); }
.progress-bar { background: var(--gradient); }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 1rem; }
.empty-state h5 { color: var(--text); font-weight: 600; }

/* ---- UTILITIES ---- */
.text-primary { color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.rounded-xl { border-radius: 16px !important; }
.hover-lift { transition: transform 0.25s; }
.hover-lift:hover { transform: translateY(-4px); }

/* ---- MODAL ---- */
.modal-content { border-radius: 20px; border: none; }
.modal-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.modal-footer { border-top: 1px solid var(--border); padding: 1.25rem 1.5rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
    .hero-title { font-size: 1.8rem; }
    .search-box { flex-direction: column; }
    .search-divider { width: 100%; height: 1px; }
    .auth-card { padding: 1.5rem; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s ease forwards; }

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
