/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

button {
    font: inherit;
}

/* ===== THEME ===== */
/* Default Light Theme */
:root {
    /* Colors */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --muted: #64748b;
    --text: #0f172a;
    --text-light: #475569;
    --brand: #6366f1;
    --brand-dark: #4f46e5;
    --brand-light: #818cf8;
    --brand-2: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing Scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */

    /* Effects */
    --ring: 0 0 0 3px color-mix(in oklab, var(--brand) 25%, transparent);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glass: linear-gradient(180deg, rgba(10, 20, 60, .04), rgba(10, 20, 60, .02));

    /* Layout */
    --grid: min(1200px, 92vw);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Manual Dark Theme */
:root.dark-theme {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-2: #334155;
    --muted: #94a3b8;
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --brand: #818cf8;
    --brand-dark: #6366f1;
    --brand-light: #a5b4fc;
    --brand-2: #22d3ee;
    --success: #34d399;
    --warning: #fbbf24;
    --error: #f87171;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --glass: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

body {
    background: radial-gradient(1200px 600px at 80% -10%, color-mix(in oklab, var(--brand) 15%, transparent), transparent),
        radial-gradient(800px 400px at 10% 10%, color-mix(in oklab, var(--brand-2) 12%, transparent), transparent), var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-xl);
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    line-height: 1.7;
    color: var(--text-light);
    margin: 0 0 var(--space-md) 0;
}

.lead {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    color: var(--muted);
}

.container {
    width: var(--grid);
    margin-inline: auto;
}

.center {
    text-align: center;
}

.muted {
    color: var(--muted);
    font-weight: 500;
}

.grad {
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: color-mix(in oklab, var(--bg) 85%, transparent);
    border-bottom: 1px solid color-mix(in oklab, var(--text) 8%, transparent);
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
}

.logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: conic-gradient(from 210deg, var(--brand), var(--brand-2));
    box-shadow: var(--shadow);
}

.brand-text {
    font-weight: 800;
}

.menu {
    justify-self: center;
    display: flex;
    gap: 18px;
}

.menu a {
    opacity: .85;
    padding: 8px 10px;
    border-radius: 10px;
}

.menu a:hover {
    background: color-mix(in oklab, var(--text) 8%, transparent);
    opacity: 1;
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--surface);
    z-index: 999;
    padding: 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu nav a {
    padding: 12px 16px;
    border-radius: 10px;
    background: color-mix(in oklab, var(--text) 4%, transparent);
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-menu nav a:hover {
    background: color-mix(in oklab, var(--text) 8%, transparent);
    transform: translateX(4px);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    padding: 0;
}

.theme-toggle:hover {
    background: color-mix(in oklab, var(--text) 8%, transparent);
    transform: rotate(20deg);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block; /* Default: show moon (since default is light theme) */
}

/* Show moon icon in light theme */
:root.light-theme .theme-toggle .moon-icon {
    display: block;
}

:root.light-theme .theme-toggle .sun-icon {
    display: none;
}

/* Show sun icon in dark theme */
:root.dark-theme .theme-toggle .sun-icon {
    display: block;
}

:root.dark-theme .theme-toggle .moon-icon {
    display: none;
}

.actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions > .muted {
    margin-right: 6px;
    padding: 10px 14px;
    background: color-mix(in oklab, var(--text) 4%, transparent);
    border-radius: 999px;
    font-size: 0.95rem;
}

.actions-separator {
    width: 1px;
    height: 24px;
    background: color-mix(in oklab, var(--text) 12%, transparent);
    margin: 0 4px;
}

/* ===== BUTTONS & CHIPS ===== */
.btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 1.5px solid color-mix(in oklab, var(--text) 12%, transparent);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: -0.01em;
    transition: all var(--transition);
    cursor: pointer;
    min-height: 44px;
    text-decoration: none;
    color: var(--text);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in oklab, var(--text) 20%, transparent);
}

.btn:active {
    transform: translateY(0);
}

.btn.outline {
    background: transparent;
    box-shadow: none;
}

.btn.outline:hover {
    background: color-mix(in oklab, var(--brand) 8%, transparent);
    border-color: var(--brand);
    color: var(--brand);
}

.btn.primary {
    background: var(--brand);
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.btn.primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.small {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-xs);
    min-height: 36px;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== FORM INPUTS ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1.5px solid color-mix(in oklab, var(--text) 15%, transparent);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: var(--font-size-base);
    font-family: var(--font-sans);
    transition: var(--transition);
    min-height: 44px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--ring);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="password"]:disabled,
input[type="number"]:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--surface-2);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text);
}

.chip {
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
}

.chip.is-active {
    border-color: transparent;
    background: color-mix(in oklab, var(--brand) 20%, transparent);
}

/* ===== HERO ===== */
.hero {
    padding: 64px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 12px;
}

.lead {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0 0 20px;
}

.search {
    display: grid;
    grid-template-columns: 1fr 200px auto;
    gap: 10px;
    background: var(--surface);
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
}

.search input {
    border: none;
    background: transparent;
    padding: 14px 12px;
    color: var(--text);
    outline: none;
    border-radius: 12px;
}

.search input::placeholder {
    color: color-mix(in oklab, var(--muted) 80%, transparent);
}

.quick-tags {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.quick-tags a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .92rem;
    background: color-mix(in oklab, var(--text) 6%, transparent);
}

.hero-art {
    position: relative;
    min-height: 320px;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(16px);
    opacity: .6;
}

.orb.a {
    width: 180px;
    height: 180px;
    top: -20px;
    right: 30%;
    background: radial-gradient(circle at 30% 30%, var(--brand), transparent 70%);
}

.orb.b {
    width: 220px;
    height: 220px;
    bottom: 10%;
    right: 5%;
    background: radial-gradient(circle at 30% 30%, var(--brand-2), transparent 70%);
}

.grid-cards {
    position: absolute;
    inset: auto 0 0 auto;
    display: grid;
    gap: 12px;
    width: min(380px, 90%);
    right: 0;
}

.mini-card {
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow);
}

.mini-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section--alt {
    background: color-mix(in oklab, var(--text) 4%, transparent);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 1.6rem;
}

.section-head .link {
    color: var(--muted);
}

.section-head.with-filters {
    align-items: end;
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== CATEGORIES ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.category {
    display: grid;
    gap: 6px;
    align-content: start;
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease;
}

.category:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklab, var(--brand) 30%, transparent);
}

.category .emoji {
    font-size: 1.3rem;
}

.category .count {
    color: var(--muted);
    font-size: .92rem;
}

/* ===== JOBS ===== */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 12px;
}

.job-card {
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 10px;
}

.job-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.job-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
}

.job-title {
    margin: 0;
    font-size: 1.1rem;
}

.job-meta {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .95rem;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    background: color-mix(in oklab, var(--brand) 25%, transparent);
}

.job-snippet {
    margin: 0;
    color: var(--muted);
}

.job-foot {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pill {
    background: color-mix(in oklab, var(--text) 8%, transparent);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .86rem;
}

.pill.pay {
    background: color-mix(in oklab, var(--brand-2) 18%, transparent);
}

.spacer {
    flex: 1;
}

/* ===== STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step {
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
}

.step h3 {
    margin: 0 0 6px;
}

.step p {
    margin: 0;
    color: var(--muted);
}

/* ===== CTA ===== */
.cta {
    padding: 64px 0;
}

.cta-inner {
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    border-radius: calc(var(--radius) + 4px);
    padding: 28px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    text-align: center;
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.cta-form input {
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    background: transparent;
    padding: 12px;
    border-radius: 12px;
    color: var(--text);
}

.cta-form input::placeholder {
    color: color-mix(in oklab, var(--muted) 80%, transparent);
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid color-mix(in oklab, var(--text) 8%, transparent);
    padding: 18px 0;
}

.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foot-links {
    display: flex;
    gap: 14px;
}

/* ===== RESPONSIVE ===== */

/* Tablet & Medium Screens */
@media (max-width: 1000px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 240px;
    }

    :root {
        --grid: min(1200px, 94vw);
    }
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        padding: 12px 0;
    }

    /* Make menu more compact on tablets - show all items */
    .menu {
        gap: 16px;
    }

    .menu a {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    /* Show mobile menu button on tablets */
    .mobile-menu-btn {
        display: flex;
    }

    /* Hide desktop-only buttons on tablets to save space */
    .hide-mobile {
        display: none !important;
    }

    /* Fix primary button (Ανάρτηση) alignment on tablets */
    .btn.primary {
        flex-direction: row !important;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
    :root {
        --grid: min(1200px, 90vw);
        --radius: 12px;
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        padding: 40px 0 32px;
    }

    .hero-copy h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .lead {
        font-size: 1rem;
    }

    /* Better button sizes for touch */
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
        min-height: 44px;
    }

    .btn.small {
        padding: 10px 16px;
        min-height: 40px;
    }

    /* Navigation improvements */
    .actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .actions > .muted {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

/* Mobile Phones */
@media (max-width: 640px) {
    :root {
        --grid: min(1200px, 88vw);
    }

    .nav {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    /* Completely hide menu on mobile - items go to hamburger menu */
    .menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .actions {
        justify-self: end;
        width: auto;
        margin-top: 0;
        gap: 6px;
    }

    .actions-separator {
        display: none;
    }

    /* Make buttons more compact on mobile */
    .actions .btn.primary {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .actions .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .actions .mobile-menu-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .search {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .search input {
        padding: 12px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category {
        padding: 14px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 40px 0;
    }

    .cta-inner {
        padding: 24px 20px;
    }

    .cta-form {
        grid-template-columns: 1fr;
    }

    /* Job cards on mobile */
    .job-card {
        padding: 14px;
    }

    .job-head {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    .job-logo {
        width: 36px;
        height: 36px;
    }

    .job-title {
        font-size: 1rem;
    }

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

    .pill {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    /* Footer */
    .foot {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .foot-brand {
        flex-direction: column;
    }

    /* Quick tags on homepage - better mobile */
    .quick-tags {
        flex-wrap: wrap;
        gap: 8px;
    }

    .quick-tags a {
        padding: 8px 14px;
        font-size: 0.9rem;
        min-height: 40px;
    }

    /* Improve link touch targets */
    a:not(.btn):not(.category):not(.job-card) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Search form spacing on mobile */
    .search {
        gap: 10px;
    }

    .search button {
        padding: 12px 20px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    :root {
        --grid: min(1200px, 92vw);
    }

    .hero-copy h1 {
        font-size: 1.6rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn.outline {
        width: auto;
    }

    /* Keep header buttons compact on mobile */
    .actions .btn,
    .actions .btn.primary,
    .actions .btn.outline {
        width: auto !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }

    /* Show mobile-only elements */
    .show-mobile-only {
        display: inline-flex !important;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filters {
        width: 100%;
    }

    .chip {
        flex: 1;
        text-align: center;
    }

    /* Statistics cards - smaller on tiny screens */
    div[style*="grid-template-columns"][style*="repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: var(--space-sm) !important;
    }

    div[style*="grid-template-columns"][style*="repeat(auto-fit"] .job-card {
        padding: var(--space-md) !important;
    }

    div[style*="grid-template-columns"][style*="repeat(auto-fit"] div[style*="font-size: var(--font-size-4xl)"] {
        font-size: var(--font-size-3xl) !important;
    }
}

/* Κάρτα λίστας αγγελίας */
.job-card--list {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 6%, transparent);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
    transition: all var(--transition);
    overflow: hidden;
}

@media (hover:hover) {
    .job-card--list:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
        border-color: color-mix(in oklab, var(--brand) 20%, transparent);
    }
}

/* Τίτλος */
.job-card__header {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.job-card__title {
    font-size: 1.15rem;
    margin: 0;
    flex: 1;
    min-width: 0; /* Allow text to shrink */
}

.job-card__title a {
    text-decoration: none;
    color: var(--text);
    word-wrap: break-word;
}

.job-card__title a:hover {
    text-decoration: underline;
}

.job-card__date {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Grid μεταδεδομένων (responsive) */
.job-card__meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 10px 16px;
    align-items: start;
}

/* Responsive job cards - Medium mobile */
@media (max-width: 720px) {
    .job-card__meta-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 12px 12px;
    }

    .job-card--list {
        padding: 14px 16px;
    }

    /* Fix header padding on mobile */
    .job-card__header[style*="padding-left"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 60px !important; /* Space for both badges */
    }

    /* Reposition badges on mobile - stack them vertically */
    .job-card--list > div[style*="position: absolute"]:first-of-type {
        top: 10px !important;
        left: 10px !important;
        right: auto !important;
    }

    .job-card--list > div[style*="position: absolute"]:nth-of-type(2) {
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .job-card__meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .job-card__title {
        font-size: 1.05rem;
        width: 100%;
    }

    .job-card__date {
        width: 100%;
        text-align: left;
        margin-top: 4px;
    }

    .job-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== MODAL RESPONSIVENESS ===== */
@media (max-width: 768px) {
    /* Advanced Search Modal */
    #advancedSearchModal > div {
        max-width: 95vw !important;
        margin: 20px auto !important;
        padding: 24px 20px !important;
    }

    /* Sort Menu Modal */
    #sortMenuModal > div {
        max-width: 95vw !important;
        margin: 80px auto !important;
        padding: 24px 20px !important;
    }

    /* Save Search Modal */
    #saveSearchModal > div {
        max-width: 95vw !important;
        margin: 60px auto !important;
        padding: 24px 20px !important;
    }

    /* Modal titles */
    #advancedSearchModal h2,
    #sortMenuModal h2,
    #saveSearchModal h2 {
        font-size: 1.3rem !important;
    }

    /* Modal buttons */
    #advancedSearchModal .btn,
    #sortMenuModal .btn,
    #saveSearchModal .btn {
        min-height: 44px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    /* Filter buttons on jobs page */
    .job-card + div {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .job-card + div .btn {
        width: 100%;
    }
}

/* ===== FORM RESPONSIVENESS ===== */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    select {
        padding: 12px !important;
    }
}

/* ===== TABLE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table th,
    table td {
        white-space: nowrap;
    }
}

/* ===== UTILITY CLASSES ===== */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }

    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    /* Fix any text overflow */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Ensure job code doesn't overflow */
    .job-card--list > div[style*="text-align: right"] {
        text-align: left !important;
        font-size: 0.85rem !important;
        margin-top: 10px !important;
    }

    /* Filter buttons on jobs list page - make them full width on mobile */
    form.search + div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    form.search + div[style*="display: flex"] .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Results count on mobile - full width */
    form.search + div[style*="display: flex"] .muted {
        margin-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
        padding-top: var(--space-sm);
        border-top: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
    }

    /* Action buttons in job cards - better mobile layout */
    .job-card--list > div[style*="margin-top"][style*="display: flex"][style*="gap"] {
        flex-direction: column !important;
    }

    .job-card--list > div[style*="margin-top"][style*="display: flex"] .btn {
        width: 100% !important;
    }

    .job-card--list > div[style*="margin-top"][style*="display: flex"] form {
        width: 100%;
    }

    .job-card--list > div[style*="margin-top"][style*="display: flex"] form .btn {
        width: 100% !important;
    }

    /* Delete button should stay at bottom */
    .job-card--list > div[style*="margin-top"][style*="display: flex"] .btn[onclick*="confirmDelete"] {
        margin-top: var(--space-sm) !important;
        margin-left: 0 !important;
        border-color: var(--error) !important;
        color: var(--error) !important;
    }
}

@media (min-width: 641px) {
    .show-mobile-only {
        display: none !important;
    }
}

/* Στοιχείο μεταδεδομένων */
.meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta__label {
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--muted);
}

.meta__value {
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.meta__badge {
    display: inline-block;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand) 25%, transparent);
    color: var(--brand);
    line-height: 1;
    width: fit-content;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: var(--surface);
    max-width: 600px;
    margin: 40px auto;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    color: var(--text);
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: color-mix(in oklab, var(--text) 10%, transparent);
    color: var(--text);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
    }
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--text);
    min-height: 44px;
}

.user-dropdown-btn:hover {
    background: color-mix(in oklab, var(--text) 8%, transparent);
    border-color: color-mix(in oklab, var(--text) 25%, transparent);
}

.user-icon {
    font-size: 18px;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.user-dropdown-btn:hover .dropdown-arrow {
    transform: translateY(2px);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid color-mix(in oklab, var(--text) 14%, transparent);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 240px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.user-dropdown-menu a:hover {
    background: color-mix(in oklab, var(--brand) 12%, transparent);
    color: var(--brand);
}

.user-dropdown-menu a span:first-child {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: color-mix(in oklab, var(--text) 10%, transparent);
    margin: 8px 0;
}

.logout-link {
    color: var(--muted) !important;
}

.logout-link:hover {
    background: color-mix(in oklab, #ef4444 12%, transparent) !important;
    color: #ef4444 !important;
}
/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-consent-actions button {
        flex: 1;
    }
}

/* Dark Theme Support */
.dark-theme .cookie-consent-banner {
    background: var(--surface);
    border-top-color: var(--border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}
