/* Copyright (c) 2026 DEEP Measures Oy. All rights reserved. */

/* CSS Variables */
:root {
  --font-family:
    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Light mode colors */
  --bg-color: #ffffff;
  --text-color: #070808;
  --text-muted: #74777d;
  --nav-bg: #ffffff;
  --border-color: #e0e0e0;

  /* Brand colors */
  --primary-gradient: linear-gradient(180deg, #b366bf 0%, #3872f6 100%);
  --primary-color: #3872f6;
  --secondary-color: #347b9b;

  /* Button colors - DEEP Design System */
  --button-primary-bg: #097696;
  --button-primary-text: #e0eced;
  --button-primary-hover-bg: #0e5f7a;
  --button-secondary-bg: #c5dadb;
  --button-secondary-text: #324147;
  --button-secondary-hover-bg: #b3cbcc;
  --button-border-accent: #0e5f7a;

  /* Button radius */
  --button-radius: 12px;

  /* Error colors */
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-text: #dc2626;
}

/* Dark mode */
.dark {
  --bg-color: #121212;
  --text-color: #f9f9f9;
  --text-muted: #a0a0a0;
  --nav-bg: #1a1a1a;
  --border-color: #333333;

  /* Button colors - DEEP Design System (dark mode) */
  --button-primary-bg: #097696;
  --button-primary-text: #e0eced;
  --button-primary-hover-bg: #0e5f7a;
  --button-secondary-bg: #1f3d45;
  --button-secondary-text: #e0eced;
  --button-secondary-hover-bg: #2a4d56;
  --button-border-accent: #61ecff;

  --error-bg: #2d1f1f;
  --error-border: #5c2626;
  --error-text: #f87171;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Navigation */
.navigation {
  background-color: var(--nav-bg);
  height: 90px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 34px;
  width: auto;
}

/* Logo visibility based on theme */
.light .logo-dark,
.dark .logo-light {
  display: none;
}

.light .logo-light,
.dark .logo-dark {
  display: block;
}

/* Main Container */
.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 24px;
}

/* Error Container */
.error-container {
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}

.error-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  color: var(--error-text);
}

.error-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

#error-message {
  font-size: 14px;
  font-weight: 500;
}

/* Content Container */
.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 84px;
  max-width: 1400px;
  padding: 0 60px;
  text-align: center;
}

/* Header */
.header {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.2;
}

/* Subheader */
.subheader {
  font-size: 30px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 1100px;
}

.subheader.small {
  font-size: 18px;
  font-weight: 400;
}

/* Button Container */
.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  padding: 0 100px;
}

/* Standard Button - DEEP Design System */
.rounded-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--button-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
  border: none;
  min-height: 48px;
}

.rounded-button.primary {
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.rounded-button.primary:hover {
  background-color: var(--button-primary-hover-bg);
}

.rounded-button.secondary {
  background-color: var(--button-secondary-bg);
  color: var(--button-secondary-text);
}

.rounded-button.secondary:hover {
  background-color: var(--button-secondary-hover-bg);
}

.button-icon {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .content-container {
    padding: 0 40px;
  }

  .button-container {
    padding: 0 50px;
  }
}

@media screen and (max-width: 1100px) {
  .main-container {
    padding: 20px;
  }

  .content-container {
    padding: 0 20px;
    gap: 48px;
  }

  .header {
    font-size: 44px;
  }

  .subheader {
    font-size: 28px;
  }

  .button-container {
    padding: 0;
    gap: 24px;
  }
}

@media screen and (max-width: 768px) {
  .navigation {
    height: 64px;
    padding: 0 20px;
  }

  .logo {
    height: 28px;
  }

  .header {
    font-size: 36px;
  }

  .subheader {
    font-size: 20px;
  }

  .subheader.small {
    font-size: 15px;
  }

  .content-container {
    gap: 32px;
  }

  .button-container {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .rounded-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .navigation {
    height: 64px;
    padding: 0 16px;
  }

  .main-container {
    padding: 16px;
  }

  .header {
    font-size: 32px;
  }

  .subheader {
    font-size: 18px;
  }

  .error-box {
    padding: 12px 16px;
  }

  #error-message {
    font-size: 13px;
  }
}

/* =====================================================
   404 Page Styles
   ===================================================== */

.not-found-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--bg-color);
}

.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.not-found-code {
  font-size: 220px;
  font-weight: 700;
  line-height: 1;
  color: #e8e8e8;
  letter-spacing: -0.02em;
  margin-bottom: -20px;
}

.dark .not-found-code {
  color: #2a2a2a;
}

.not-found-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--text-color);
  margin: 0 0 32px 0;
}

.not-found-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--button-radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 36px;
}

.not-found-button:hover {
  background-color: var(--button-primary-hover-bg);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .not-found-code {
    font-size: 150px;
    margin-bottom: -10px;
  }

  .not-found-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .not-found-button {
    padding: 12px 28px;
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .not-found-code {
    font-size: 120px;
    margin-bottom: -5px;
  }

  .not-found-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
}
