/**
 * JobConnect - AIjobs.ai Inspired Design
 * Modern Job Portal Styles
 */

:root {
    --primary-500: #0A65CC;
    --primary-600: #0851a4;
    --primary-200: #b6d1f0;
    --primary-100: #cee1f5;
    --primary-50: #eef5fc;
    --gray-900: #18191C;
    --gray-600: #5C636A;
    --gray-10: #F3F4F6;
    --white: #ffffff;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,44,109,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-500);
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-500);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-600);
    color: var(--white);
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-500);
    color: var(--primary-500);
}

.btn-outline-primary:hover {
    background: var(--primary-50);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 32px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
}

.brand-ph {
    background: linear-gradient(135deg, #0A65CC 0%, #22C55E 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--gray-600);
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: all 0.2s;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-500);
    background: var(--primary-50);
}

.nav-menu li a.active {
    color: var(--primary-500);
    background: var(--primary-50);
    font-weight: 600;
}

.nav-menu li a.nav-highlight {
    color: var(--primary-500);
    font-weight: 600;
}

.nav-menu li a.nav-highlight:hover {
    background: var(--primary-50);
}

.nav-menu li a.nav-highlight.active {
    background: var(--primary-50);
    color: var(--primary-500);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1px solid #E5E7EB;
}

.header-btn-outline:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    background: var(--primary-50);
}

.header-btn-primary {
    background: var(--primary-500);
    color: white;
    border: none;
}

.header-btn-primary:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 101, 204, 0.3);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-nav .nav-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-600);
    padding: 10px 0;
}

.user-nav .nav-link:hover {
    color: var(--primary-500);
}

.user-dropdown {
    position: relative;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-500);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-dropdown-btn:hover {
    background: var(--primary-600);
}

.user-dropdown-btn i:first-child {
    font-size: 18px;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

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

.user-dropdown:active .user-dropdown-menu,
.user-dropdown:focus-within .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-900);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown-menu a:hover {

.user-dropdown-menu .badge {
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}
    background: var(--gray-10);
    color: var(--primary-500);
}

.user-dropdown-menu a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 8px 0;
}

.user-dropdown-menu .logout-link {
    color: var(--danger);
}

.user-dropdown-menu .logout-link:hover {
    background: #fee2e2;
    color: var(--danger);
}

.search-wrapper {
    position: relative;
    width: 280px;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--gray-10);
}

.search-wrapper input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: var(--white);
}

.search-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #eef5fc 0%, #dce8f7 50%, #eef5fc 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 101, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-500);
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(10, 101, 204, 0.1);
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-highlight {
    color: var(--primary-500);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(10, 101, 204, 0.2);
    border-radius: 4px;
    z-index: -1;
}

.hero-text p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-trusted {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-trusted span {
    font-size: 13px;
    color: var(--gray-600);
}

.trusted-logos {
    display: flex;
    gap: 24px;
}

.trusted-logos span {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-600);
    opacity: 0.6;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 3;
    animation: float 3s ease-in-out infinite;
}

.float-card-1 {
    top: 20%;
    left: -30px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 15%;
    right: -30px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-icon-jobs {
    background: rgba(10, 101, 204, 0.1);
    color: var(--primary-500);
}

.float-icon-success {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

.float-content strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.float-content span {
    font-size: 12px;
    color: var(--gray-600);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-500) 0%, rgba(10, 101, 204, 0.3) 100%);
    top: -40px;
    right: -40px;
    opacity: 0.1;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: var(--primary-500);
    bottom: -20px;
    left: -20px;
    opacity: 0.08;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: #22C55E;
    top: 40%;
    right: -10px;
    opacity: 0.15;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    align-items: stretch;
}

.hero-search input,
.hero-search select {
    flex: 1 1 auto;
    min-width: 180px;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--gray-10);
}

.hero-search input:focus,
.hero-search select:focus {
    outline: none;
    border-color: var(--primary-500);
}

.hero-search button {
    padding: 14px 32px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 48px 0;
    border-bottom: 1px solid #E5E7EB;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: var(--gray-10);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-500);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
}

/* Featured Jobs Section */
.featured-section {
    padding: 60px 0;
}

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

.section-title {
    font-size: 24px;
    font-weight: 600;
}

.section-title span {
    color: var(--primary-500);
}

/* Job Cards */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    margin-bottom: 16px;
}

.job-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-200);
}

.job-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    object-fit: contain;
    flex-shrink: 0;
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-info {
    flex: 1;
    min-width: 0;
}

.job-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.job-title:hover {
    color: var(--primary-500);
}

.badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.badge-full-time {
    background: var(--primary-50);
    color: var(--primary-500);
}

.badge-part-time {
    background: #FEF3C7;
    color: #D97706;
}

.badge-contract {
    background: #ECFDF5;
    color: #059669;
}

.badge-internship {
    background: #F3E8FF;
    color: #7C3AED;
}

.job-company {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-600);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-meta svg {
    width: 16px;
    height: 16px;
    color: #C5C9D6;
}

.job-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.job-salary {
    font-weight: 600;
    color: var(--primary-500);
    font-size: 14px;
}

.job-actions {
    display: flex;
    gap: 8px;
}

/* Categories */
.categories-section {
    padding: 60px 0;
    background: var(--gray-10);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.category-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary-200);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    color: var(--primary-500);
    border-radius: var(--radius);
    font-size: 18px;
}

.category-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-900);
}

/* Companies */
.companies-section {
    padding: 60px 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.company-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.company-card:hover {
    box-shadow: var(--shadow);
}

.company-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 12px;
}

.company-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.company-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.company-card p {
    font-size: 12px;
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    background: var(--primary-500);
    padding: 60px 0;
    color: var(--white);
}

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

.cta-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cta-text p {
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--primary-500);
    padding: 16px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--gray-10);
    color: var(--primary-500);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
    color: white;
}

.footer-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-brand-text {
    color: white;
}

.footer-description {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9CA3AF;
    font-size: 14px;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-10);
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary-500);
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #ECFDF5;
    color: #059669;
}

.alert-danger {
    background: #FEF2F2;
    color: var(--danger);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-wrapper {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #E5E7EB;
    }
    
    .cta-grid {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Logo Carousel */
.logo-carousel-section {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.logo-carousel-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-carousel-section .section-title {
    font-size: 28px;
    font-weight: 700;
}

.logo-carousel-section .section-title span {
    color: var(--primary-500);
}

.logo-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.logo-track {
    display: flex;
    gap: 48px;
    width: 200%;
    animation: scroll-logos 20s linear infinite;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    flex: 0 0 auto;
    min-width: 120px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
    border-radius: 8px;
}

.logo-item:hover {
    background: var(--primary-500);
    color: white;
    transform: scale(1.1);
}

.logo-item .logo-text {
    white-space: nowrap;
}
