/* ========================================
   CSS Custom Properties (LinkedIn-Inspired Colors)
   ======================================== */
:root {
    /* Primary LinkedIn Blue */
    --linkedin-blue: #0A66C2;
    --linkedin-blue-dark: #004182;
    --linkedin-blue-light: #378fe9;
    
    /* Neutral Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Success & Status Colors */
    --success-green: #057642;
    --success-light: #d4edda;
    --warning-amber: #915907;
    --warning-light: #fff4e5;
    --info-blue: #0073b1;
    
    /* Border & Shadow */
    --border-color: #e0e0e0;
    --card-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.12);
}

/* ========================================
   Global Resets & Base Styles
   ======================================== */
html {
    font-size: 12.8px; /* 16px × 0.8 = 12.8px */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-100);
    line-height: 1.5;
}

/* ========================================
   Site Header (LinkedIn Style)
   ======================================== */
.site-header {
    background-color: white;
    color: var(--gray-700);
    box-shadow: 0 0.8px 1.6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 19.2px;
    height: 44.8px;
}

.site-header h1 {
    font-size: 19.2px;
    font-weight: 600;
    margin: 0;
    color: var(--linkedin-blue);
    letter-spacing: -0.4px;
}

.site-logo {
    height: 32px;
    width: auto;
    display: block;
}

.site-header a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s;
}

.site-header a:hover {
    color: var(--linkedin-blue);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-title {
    color: var(--linkedin-blue);
    font-size: 11.2px;
    font-weight: 700;
}

/* Desktop page title - visible on desktop */
.page-title-desktop {
    display: inline;
}

/* Mobile page title row - hidden on desktop */
.page-title-row {
    display: none;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.main-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 11.2px;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--linkedin-blue);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    color: var(--gray-700);
    font-size: 11.2px;
    font-weight: 500;
    cursor: pointer;
    padding: 6.4px 9.6px;
    border-radius: 3.2px;
    transition: color 0.2s, background-color 0.2s;
}

.nav-dropdown-toggle:hover {
    color: var(--linkedin-blue);
    background-color: var(--gray-100);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 3.2px;
    background-color: white;
    box-shadow: 0 3.2px 9.6px rgba(0,0,0,0.15);
    border-radius: 6.4px;
    min-width: 160px;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 9.6px 12.8px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 11.2px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.nav-dropdown-menu a:hover {
    background-color: var(--gray-100);
    color: var(--linkedin-blue);
}

/* Hamburger Button - Hidden on Desktop */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation - Hidden by Default */
.main-nav-mobile {
    display: none;
    flex-direction: column;
    background-color: white;
    border-top: 1px solid var(--border-color);
}

.main-nav-mobile a {
    display: block;
    padding: 12px 19.2px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 11.2px;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s;
}

.main-nav-mobile a:hover {
    background-color: var(--gray-100);
    color: var(--linkedin-blue);
}

.main-nav-mobile.active {
    display: flex;
}

.login-btn {
    background-color: transparent;
    color: var(--linkedin-blue);
    border: 1px solid var(--linkedin-blue);
    padding: 6.4px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 19.2px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.login-btn:hover {
    background-color: #e9f5ff;
    box-shadow: inset 0 0 0 1px var(--linkedin-blue);
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-name {
    color: var(--gray-700);
    font-size: 11.2px;
    font-weight: 600;
    cursor: pointer;
    padding: 6.4px 9.6px;
    border-radius: 3.2px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.user-name:hover {
    background-color: var(--gray-100);
}

.logout-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 3.2px;
    background-color: white;
    box-shadow: 0 3.2px 9.6px rgba(0,0,0,0.15);
    border-radius: 6.4px;
    min-width: 128px;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.user-menu:hover .logout-dropdown {
    display: block;
}

.logout-dropdown a {
    display: block;
    padding: 9.6px 12.8px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 11.2px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.logout-dropdown a:hover {
    background-color: var(--gray-100);
}

/* ========================================
   Mobile Responsive Styles (< 768px)
   ======================================== */
@media (max-width: 767px) {
    /* Hide desktop navigation */
    .main-nav-desktop {
        display: none;
    }

    /* Show hamburger button */
    .hamburger-btn {
        display: flex;
    }

    /* Hide desktop page title */
    .page-title-desktop {
        display: none;
    }

    /* Show mobile page title row */
    .page-title-row {
        display: block;
        padding: 6px 19.2px;
        background-color: var(--gray-50);
        border-top: 1px solid var(--border-color);
    }

    .page-title-mobile {
        color: var(--linkedin-blue);
        font-size: 10px;
        font-weight: 600;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Adjust login button for mobile */
    .login-btn {
        padding: 5px 12px;
        font-size: 10px;
    }

    /* Adjust user name for mobile */
    .user-name {
        font-size: 10px;
        padding: 5px 8px;
    }
}

/* ========================================
   Button Styles (LinkedIn-like)
   ======================================== */
.btn {
    font-weight: 600;
    border-radius: 19.2px;
    padding: 6.4px 12.8px;
    font-size: 11.2px;
    transition: all 0.2s;
    border: 1px solid;
}

.btn-outline-primary {
    color: var(--linkedin-blue);
    border-color: var(--linkedin-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: #e9f5ff;
    color: var(--linkedin-blue-dark);
    border-color: var(--linkedin-blue-dark);
}

.btn-sm {
    padding: 4.8px 11.2px;
    font-size: 10.4px;
}

/* ========================================
   Border Utilities
   ======================================== */
.border {
    border: 1px solid var(--border-color) !important;
}

.border-primary {
    border-color: var(--linkedin-blue) !important;
}

.border-top {
    border-top: 1px solid var(--gray-200) !important;
}

/* ========================================
   Text Utilities
   ======================================== */
.text-primary {
    color: var(--linkedin-blue) !important;
}

.text-secondary {
    color: var(--gray-600) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.text-dark {
    color: var(--gray-900) !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fst-italic {
    font-style: italic !important;
}

/* ========================================
   Spacing Utilities
   ======================================== */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.me-2 { margin-right: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pb-5 { padding-bottom: 3rem; }
.p-4 { padding: 1.5rem; }

/* ========================================
   Layout Utilities
   ======================================== */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-grow-1 {
    flex-grow: 1;
}

.gap-3 {
    gap: 1rem;
}

/* ========================================
   Typography Utilities
   ======================================== */
.h5 {
    font-size: 14.4px;
    font-weight: 600;
    line-height: 1.3;
}

.h6 {
    font-size: 12.8px;
    font-weight: 600;
    line-height: 1.3;
}

.small {
    font-size: 10.4px;
}

.fs-1 {
    font-size: 1.6rem;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* ========================================
   Responsive Grid
   ======================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -4.8px;
    margin-right: -4.8px;
}

.g-4 > * {
    padding-left: 9.6px;
    padding-right: 9.6px;
    margin-bottom: 19.2px;
}

.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
}

.h-100 {
    height: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* ========================================
   Emoji Adjustments (More Professional)
   ======================================== */
.fs-1 {
    opacity: 0.7;
    filter: grayscale(20%);
}