/* ==========================================================================
   KineticPro Base Styles
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input, button, select, textarea {
  font-size: 16px; /* Prevent iOS zoom on focus */
}

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

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

/* Selection */
::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

/* ==========================================================================
   Layout
   ========================================================================== */

/* Container — max-width based on DESIGN.md (max-w-screen-2xl = 1536px) */
.container {
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}

/* ==========================================================================
   Header — Glassmorphism Style
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(25, 28, 30, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Logo */
.logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* City indicator */
.city-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary-container);
  padding-bottom: 2px;
}

.city-indicator--active {
  color: var(--secondary);
  border-bottom-color: var(--secondary-container);
}

.city-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Navigation */
.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}

.header-nav__link:hover {
  color: var(--primary);
}

.header-nav__link--active {
  color: var(--primary);
  font-weight: 700;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--on-surface-variant);
  transition: background 0.15s, color 0.15s;
}

.header-actions__btn:hover {
  background: var(--surface-container-low);
  color: var(--on-surface);
}

.header-actions__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface-container-high);
}

.header-actions__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
  padding-top: 64px; /* Account for fixed header */
  min-height: 100vh;
}

.site-main--with-sidebar {
  display: flex;
}

.site-main--with-sidebar .content-canvas {
  flex: 1;
  padding: 32px;
}

@media (max-width: 1023px) {
  .site-main--with-sidebar {
    flex-direction: column;
  }

  .sidebar-filters {
    display: none;
  }

  .site-main--with-sidebar .content-canvas {
    padding: 16px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 48px 0 24px;
  margin-top: 64px;
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
}

.site-footer__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .site-footer__content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer__brand {
  max-width: 280px;
}

.site-footer__logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.site-footer__column h5 {
  font-family: var(--font-label);
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.site-footer__column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__column a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  transition: color 0.15s;
}

.site-footer__column a:hover {
  color: var(--primary);
}

.site-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer__copyright {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--outline);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, .h1 {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-bottom: 16px;
}

h2, .h2 {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin-bottom: 12px;
}

h3, .h3 {
  font-family: var(--font-headline);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--on-surface);
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  h1, .h1 {
    font-size: 3rem;
  }
  h2, .h2 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Mobile refinements
   ========================================================================== */

@media (max-width: 640px) {
  h1, .h1 {
    font-size: 1.75rem;
  }

  .vacancy-detail__income {
    font-size: 1.25rem;
  }
}
