/**
 * StreamTech Pro - Main Professional Stylesheet
 * Indeed & LinkedIn Inspired Design System
 */

:root {
    --stp-navy: #0A2540;
    --stp-navy-dark: #06182B;
    --stp-navy-light: #12375F;
    --stp-blue: #2563EB;
    --stp-blue-hover: #1D4ED8;
    --stp-blue-light: #EFF6FF;
    --stp-teal: #0D9488;
    --stp-success: #10B981;
    --stp-warning: #F59E0B;
    --stp-danger: #EF4444;
    --stp-slate-900: #0F172A;
    --stp-slate-800: #1E293B;
    --stp-slate-700: #334155;
    --stp-slate-600: #475569;
    --stp-slate-500: #64748B;
    --stp-slate-400: #94A3B8;
    --stp-slate-200: #E2E8F0;
    --stp-slate-100: #F1F5F9;
    --stp-bg-light: #F8FAFC;
    --stp-card-shadow: 0 4px 6px -1px rgba(10, 37, 64, 0.04), 0 2px 4px -2px rgba(10, 37, 64, 0.02);
    --stp-hover-shadow: 0 16px 28px -6px rgba(10, 37, 64, 0.09), 0 6px 12px -4px rgba(10, 37, 64, 0.04);
    --stp-radius-sm: 8px;
    --stp-radius-md: 12px;
    --stp-radius-lg: 16px;
    --stp-radius-pill: 9999px;
    --stp-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--stp-font);
    background-color: var(--stp-bg-light);
    color: var(--stp-slate-700);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--stp-navy);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--stp-blue);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--stp-blue-hover);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.stp-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--stp-slate-200);
    padding: 0.875rem 0;
    transition: all 0.2s ease-in-out;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.stp-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--stp-navy);
    text-decoration: none;
}

.stp-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--stp-navy) 0%, var(--stp-blue) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--stp-radius-md);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
    font-size: 1.15rem;
}

.nav-link {
    font-weight: 600;
    color: var(--stp-slate-600);
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--stp-radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--stp-blue);
    background-color: var(--stp-blue-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background-color: var(--stp-blue);
    border-color: var(--stp-blue);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--stp-radius-md);
    padding: 0.625rem 1.35rem;
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--stp-blue-hover);
    border-color: var(--stp-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-navy {
    background-color: var(--stp-navy);
    border-color: var(--stp-navy);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--stp-radius-md);
    padding: 0.625rem 1.35rem;
}

.btn-navy:hover {
    background-color: var(--stp-navy-dark);
    border-color: var(--stp-navy-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.btn-outline-navy {
    color: var(--stp-navy);
    border-color: var(--stp-slate-200);
    background-color: #ffffff;
    font-weight: 600;
    border-radius: var(--stp-radius-md);
}

.btn-outline-navy:hover {
    background-color: var(--stp-slate-100);
    border-color: var(--stp-slate-400);
    color: var(--stp-navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    border-bottom: 1px solid var(--stp-slate-200);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--stp-navy);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--stp-slate-600);
    margin-bottom: 2rem;
    max-width: 680px;
}

/* Search Bar (Indeed / LinkedIn Inspired) */
.stp-search-box {
    background-color: #ffffff;
    border-radius: var(--stp-radius-lg);
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08), 0 1px 3px rgba(10, 37, 64, 0.04);
    border: 1px solid var(--stp-slate-200);
    padding: 0.6rem;
}

.search-field-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field-group i {
    position: absolute;
    left: 1rem;
    color: var(--stp-slate-400);
    font-size: 1rem;
}

.search-field-group input, .search-field-group select {
    border: none;
    padding-left: 2.75rem;
    font-weight: 500;
    height: 3.1rem;
    border-radius: var(--stp-radius-md);
    background-color: transparent;
}

.search-field-group input:focus, .search-field-group select:focus {
    box-shadow: none;
    background-color: var(--stp-slate-100);
}

.search-divider {
    width: 1px;
    height: 36px;
    background-color: var(--stp-slate-200);
}

/* ==========================================================================
   Cards & Profile Badges
   ========================================================================== */
.stp-card {
    background-color: #ffffff;
    border: 1px solid var(--stp-slate-200);
    border-radius: var(--stp-radius-md);
    box-shadow: var(--stp-card-shadow);
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.stp-card:hover {
    border-color: #CBD5E1;
    box-shadow: var(--stp-hover-shadow);
    transform: translateY(-2px);
}

/* Profile Card Specifics */
.profile-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.profile-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    padding: 1.35rem 1.35rem 0.75rem;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-avatar-lg {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.online-dot {
    width: 14px;
    height: 14px;
    background-color: var(--stp-success);
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.profile-headline {
    font-size: 0.9rem;
    color: var(--stp-slate-600);
    line-height: 1.4;
    margin-top: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Verified Badges */
.badge-verified {
    background-color: #E0F2FE;
    color: #0284C7;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: var(--stp-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-featured {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #B45309;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: var(--stp-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #FCD34D;
}

/* Skill & Platform Pills */
.skill-tag {
    background-color: var(--stp-slate-100);
    color: var(--stp-slate-700);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--stp-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--stp-slate-200);
}

.skill-tag:hover {
    background-color: var(--stp-blue-light);
    color: var(--stp-blue);
    border-color: #BFDBFE;
}

.platform-badge {
    background-color: #ffffff;
    border: 1px solid var(--stp-slate-200);
    padding: 0.3rem 0.65rem;
    border-radius: var(--stp-radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--stp-slate-800);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Availability Status */
.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--stp-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-available {
    background-color: #DCFCE7;
    color: #15803D;
}

.status-part_time {
    background-color: #FEF3C7;
    color: #B45309;
}

.status-busy {
    background-color: #FEE2E2;
    color: #B91C1C;
}

/* ==========================================================================
   Directory & Filters
   ========================================================================== */
.filter-card {
    background-color: #ffffff;
    border: 1px solid var(--stp-slate-200);
    border-radius: var(--stp-radius-md);
    padding: 1.35rem;
}

.filter-heading {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--stp-slate-500);
    margin-bottom: 0.85rem;
}

.form-check-label {
    font-size: 0.88rem;
    color: var(--stp-slate-700);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--stp-blue);
    border-color: var(--stp-blue);
}

/* Results Count & Sort */
.results-header {
    background-color: #ffffff;
    border: 1px solid var(--stp-slate-200);
    border-radius: var(--stp-radius-md);
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   Public Profile Page (2-Column Layout)
   ========================================================================== */
.profile-hero-card {
    background-color: #ffffff;
    border: 1px solid var(--stp-slate-200);
    border-radius: var(--stp-radius-lg);
    padding: 2.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--stp-card-shadow);
    position: relative;
    overflow: hidden;
}

.profile-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(135deg, #0A2540 0%, #1E3A8A 50%, #2563EB 100%);
}

.profile-hero-content {
    position: relative;
    padding-top: 35px;
}

.profile-section-card {
    background-color: #ffffff;
    border: 1px solid var(--stp-slate-200);
    border-radius: var(--stp-radius-md);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--stp-card-shadow);
}

.profile-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--stp-navy);
    border-bottom: 1px solid var(--stp-slate-100);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Work Experience Timeline */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background-color: var(--stp-slate-200);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--stp-blue);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.stp-footer {
    background-color: var(--stp-navy-dark);
    color: var(--stp-slate-400);
    padding: 4rem 0 2rem;
    margin-top: auto;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stp-footer h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.stp-footer a {
    color: var(--stp-slate-400);
    transition: color 0.15s ease;
}

.stp-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.75rem;
    margin-top: 3rem;
    font-size: 0.82rem;
}

/* Independent Directory Notice */
.disclaimer-banner {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--stp-radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--stp-slate-400);
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.15rem;
    }
    .search-divider {
        display: none;
    }
}
