/* static/css/styles.css */

/* Theme Variables */
:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-soft: #f8f9fb;
  --text: #2c3e50;
  --muted: #5a6c7d;
  --accent: #1a2a6c;
  --accent-strong: #2a3a8c;
  --accent-soft: rgba(26, 42, 108, 0.12);
  --accent-ios: #007AFF;
  --accent-ios-strong: #0056CC;
  --link: #1a2a6c;
  --border: #e1e4e8;
  --header-text: #1a2a6c;
  --hero-gradient: linear-gradient(to right, #1a2a6c, #b21f1f, #fdbb2d);
  --footer-bg: #333;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --panel: #111727;
  --panel-soft: #141c2d;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --accent: #58a6ff;
  --accent-strong: #4a8fd9;
  --accent-soft: rgba(88, 166, 255, 0.12);
  --accent-ios: #007AFF;
  --accent-ios-strong: #0056CC;
  --link: #58a6ff;
  --border: #1f2a3c;
  --header-text: #58a6ff;
  --hero-gradient: linear-gradient(135deg, #1a2a6c 0%, #2a3a8c 50%, #4a5aa0 100%);
  --footer-bg: #111727;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --panel: #111727;
    --panel-soft: #141c2d;
    --text: #e6edf3;
    --muted: #9fb0c3;
    --accent: #58a6ff;
    --accent-strong: #4a8fd9;
    --accent-soft: rgba(88, 166, 255, 0.12);
    --accent-ios: #007AFF;
    --accent-ios-strong: #0056CC;
    --link: #58a6ff;
    --border: #1f2a3c;
    --header-text: #58a6ff;
    --hero-gradient: linear-gradient(135deg, #1a2a6c 0%, #2a3a8c 50%, #4a5aa0 100%);
    --footer-bg: #111727;
  }
}

/* Reset some default styles */
body, h1, p, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Shared layout with mygarage-site */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 18px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--header-text);
    flex: 0 0 auto;
}

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    min-height: 32px;
}

[data-theme="dark"] header {
    background-color: rgba(13, 17, 23, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.2em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
    flex: 0 0 auto;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--panel);
}

.header-left .logo {
    height: 40px;
}

.header-right .button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    margin-left: 10px;
    border-radius: 5px;
}

.header-right .button:hover {
    background-color: #45a049;
}

/* View Mode Selection - Positioned at the top */
.view-mode-selection {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-mode-selection h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffcc00;
}

.mode-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #444;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mode-option.active {
    background-color: #222;
    border-color: #ffcc00;
    font-weight: bold;
}

.mode-option input[type="radio"] {
    margin-right: 8px;
}

/* Main content styles */
main {
    padding: 20px;
    background-color: var(--panel);
    margin: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

main h1 {
    margin-bottom: 20px;
}

main p {
    margin-bottom: 10px;
}

/* Footer styles - preferred bluish background with white text */
footer {
    background-color: #1a2a6c;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    width: 100%;
    border-top: 1px solid transparent;
    transition: background-color 0.3s ease;
    margin-top: 3rem;
}

[data-theme="dark"] footer {
    background-color: #111727;
}