/* ============================================
   New Grad Jobs - Premium Dark/Light Theme
   Animated • Glassmorphism • Modern
   ============================================ */

/* CSS Variables - Dark Theme (Default) */
:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f1629;
    --bg-card: rgba(20, 29, 47, 0.7);
    --bg-card-solid: #141d2f;
    --bg-card-hover: rgba(26, 37, 64, 0.8);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #8896ab;

    --border-color: rgba(30, 41, 59, 0.8);
    --border-color-hover: rgba(51, 65, 85, 0.9);

    /* Gradient Accent */
    --accent-start: #6366f1;
    --accent-mid: #8b5cf6;
    --accent-end: #a855f7;
    --accent-gradient: linear-gradient(135deg, var(--accent-start) 0%, var(--accent-mid) 50%, var(--accent-end) 100%);

    /* Glow */
    --glow-color: rgba(99, 102, 241, 0.15);
    --glow-color-strong: rgba(99, 102, 241, 0.25);

    --success: #10b981;
    --warning: #f59e0b;

    /* Glassmorphism */
    --glass-bg: rgba(20, 29, 47, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px var(--glow-color);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Animated background colors */
    --mesh-color-1: rgba(99, 102, 241, 0.15);
    --mesh-color-2: rgba(139, 92, 246, 0.12);
    --mesh-color-3: rgba(168, 85, 247, 0.08);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-solid: #ffffff;
    --bg-card-hover: rgba(248, 250, 252, 0.9);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;

    --border-color: rgba(226, 232, 240, 0.8);
    --border-color-hover: rgba(203, 213, 225, 0.9);

    --glow-color: rgba(99, 102, 241, 0.1);
    --glow-color-strong: rgba(99, 102, 241, 0.15);

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --mesh-color-1: rgba(99, 102, 241, 0.08);
    --mesh-color-2: rgba(139, 92, 246, 0.06);
    --mesh-color-3: rgba(168, 85, 247, 0.04);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-slow), color var(--transition-slow);
    position: relative;
}

/* Animated Gradient Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, var(--mesh-color-1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, var(--mesh-color-2), transparent),
        radial-gradient(ellipse 50% 50% at 50% 80%, var(--mesh-color-3), transparent);
    animation: meshFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes meshFloat {

    0%,
    100% {
        background-position: 0% 0%, 100% 0%, 50% 100%;
    }

    25% {
        background-position: 10% 10%, 90% 15%, 45% 95%;
    }

    50% {
        background-position: 5% 5%, 95% 10%, 55% 90%;
    }

    75% {
        background-position: 15% 0%, 85% 5%, 50% 95%;
    }
}

a {
    color: var(--accent-start);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-mid);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Display font for headlines */
h1,
h2,
h3 {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ============================================
   Header - Minimal & Clean
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.logo-emoji {
    font-size: 1.25rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: scale(1.05);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all var(--transition-normal);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    color: #f59e0b;
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: var(--accent-mid);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.github-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.github-link:hover {
    background: var(--bg-card);
    border-color: var(--border-color-hover);
    color: var(--text-primary);
}

.github-link:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

.github-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Hero Section - Premium & Animated
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Floating Blob Shapes */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: blobFloat 15s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--mesh-color-1);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--mesh-color-2);
    top: 20%;
    right: 15%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--mesh-color-3);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* Radial glow behind headline */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--glow-color-strong) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Large, bold headline */
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Gradient accent text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.7;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-color-hover);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-start);
    color: var(--text-primary);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

/* Trust Stats */
.trust-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    letter-spacing: 0.02em;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   Search Section
   ============================================ */
.search-section {
    padding: 0 2rem 4rem;
    max-width: 700px;
    margin: -2rem auto 0;
    position: relative;
    z-index: 2;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3.5rem;
    font-size: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-start);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-md);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: var(--border-color-hover);
    color: var(--text-primary);
}

/* ============================================
   Filters
   ============================================ */
.filters-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Chip with Ripple Effect */
.chip {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.chip:active::after {
    width: 200px;
    height: 200px;
}

.chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
}

.chip:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

.chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    transition: all var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--border-color-hover);
}

.filter-select:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

/* ============================================
   Results Info
   ============================================ */
.results-info {
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.results-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.last-updated {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ============================================
   Job Cards - Glassmorphism
   ============================================ */
.jobs-section {
    padding: 1rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.jobs-container {
    display: grid;
    gap: 0.75rem;
}

/* Skeleton Loading */
.loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.skeleton-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.skeleton-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--border-color-hover) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 70%;
}

.skeleton-line.long {
    width: 90%;
}

.skeleton-btn {
    width: 80px;
    height: 36px;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--border-color-hover) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-full);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-start);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Job Card - Glassmorphism */
.job-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    transition: all var(--transition-fast);
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: var(--animation-delay, 0s);
    opacity: 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 80px;
}

.job-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-lg), 0 0 30px var(--glow-color);
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.job-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.company-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.company-badge {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.job-flags {
    display: flex;
    gap: 0.25rem;
}

.flag {
    font-size: 0.7rem;
}

.job-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.job-actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: flex-end;
}

.job-action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.apply-btn {
    padding: 0.625rem 1.25rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    color: white;
}

.apply-btn:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

.apply-btn.closed {
    background: var(--bg-primary);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

/* Action Icons (Bookmark & Copy) */
.action-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.action-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    color: var(--accent-start);
    transform: scale(1.1);
}

.action-icon:focus-visible {
    outline: 2px solid var(--accent-start);
    outline-offset: 2px;
}

.action-icon.bookmarked {
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.posted-date {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all var(--transition-normal);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.back-to-top:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer-section p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

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

.footer-section li {
    margin-bottom: 0.375rem;
}

.footer-section a {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-section a:hover {
    color: var(--accent-start);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-tagline {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        padding: 0.75rem 1rem;
    }

    .github-link span {
        display: none;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .trust-stats {
        gap: 2rem;
    }

    .filters-section {
        padding: 1rem;
    }

    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .chip {
        flex-shrink: 0;
    }

    .jobs-section {
        padding: 1rem;
    }

    .job-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .job-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .job-action-buttons {
        order: 2;
    }

    .posted-date {
        order: 1;
    }

    .results-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }

    .blob {
        opacity: 0.4;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {

    .header,
    .hero,
    .search-section,
    .filters-section,
    .back-to-top,
    .footer {
        display: none;
    }

    .job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}