/* base.css */

/* CSS Variables for main and secondary colors */
:root {
    --main-color: #007bff;
    --secondary-color: #343a40;
    --main-color-hover: #0056b3;
    --background-color: #f8f9fa;
    --container-bg: #fff;
    --text-color: #222;
}

/* Reset some default styles */
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container for main content */
.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Header styles */
header {
    background: var(--secondary-color);
    color: #fff;
    padding: 24px 0;
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

/* Navigation styles */
nav {
    margin: 16px 0;
    text-align: center;
}

nav a {
    color: var(--main-color);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--main-color-hover);
}

/* Footer styles */
footer {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 16px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 40px;
    border-radius: 0 0 8px 8px;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Button styles */
.button, button, input[type="submit"] {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background: var(--main-color-hover);
}

/* Language Picker */
.lang-picker {
  position: relative;
}

.lang-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary, #6b7280);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-picker-trigger:hover {
  color: var(--text, #1f2937);
  background-color: var(--bg-hover, rgba(0, 0, 0, 0.04));
  border-color: var(--border, #e5e7eb);
}

.lang-picker-trigger svg {
  color: var(--text-muted, #9ca3af);
  transition: transform 0.15s ease;
}

.lang-picker-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  min-width: 140px;
  background-color: var(--card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 4px;
}

.lang-picker-dropdown.open {
  display: flex;
  flex-direction: column;
}

.lang-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-secondary, #6b7280);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.lang-picker-option:hover {
  background-color: var(--bg-hover, rgba(0, 0, 0, 0.04));
  color: var(--text, #1f2937);
}

.lang-picker-option.active {
  color: var(--accent-color, #10a37f);
  font-weight: 600;
}

.lang-picker-code {
  font-weight: 600;
  min-width: 24px;
}

.lang-picker-name {
  font-weight: 400;
}

.header-actions-account {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 0 8px;
    }
    header h1 {
        font-size: 1.5rem;
    }
}
