/* =========================================================
  Loliando - style.css (estilos globales)
  ---------------------------------------------------------
  - Variables de color y tamaños
  - Reset básico
  - Utilidades comunes
  ========================================================= */

/* ------------------ Variables globales ------------------ */
:root {
  --brand-green: #4CAF50;
  --brand-green-dark: #368b38;
  --brand-green-light: #e8f8e8;
  --brand-accent: #007bff;
  --brand-accent-dark: #0056b3;
  --danger: #f44336;
  --danger-dark: #d32f2f;
  --bg-page: #f8f8f8;
  --bg-card: #ffffff;
  --text-main: #333;
  --text-muted: #666;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-md: 0 2px 10px rgba(0,0,0,0.12);
  --header-h: 64px;
  --trans-fast: 0.15s;
  --trans-med: 0.25s;
  font-size: 16px;
}

/* ------------------ Reset ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
}

/* A11y helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

/* ------------------ Links & Buttons base ------------------ */
a {
  color: var(--brand-green);
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

button {
  background-color: var(--brand-green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

button:hover {
  background-color: var(--brand-green-dark);
}

button[disabled],
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
  FOOTER
  ========================================================= */
footer {
  background-color: var(--brand-green);
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

footer a {
  color: white;
  text-decoration: underline;
}

/* =========================================================
  UTILIDADES COMUNES
  ========================================================= */
.main-container {
  margin: 40px auto;
  max-width: 1200px;
  padding: 0 15px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.btn-primary {
  background-color: var(--brand-green);
  color: white;
}

.btn-primary:hover {
  background-color: var(--brand-green-dark);
}

.btn-secondary {
  background-color: var(--brand-accent);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--brand-accent-dark);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: var(--danger-dark);
}

/* =========================================================
  MEDIA QUERIES (Responsive global)
  ========================================================= */
@media (max-width: 900px) {
  :root { font-size: 15px; }
}

@media (max-width: 600px) {
  :root { font-size: 15px; }
}

@media (max-width: 400px) {
  :root { font-size: 14px; }
}

/* Para settings.html - inputs de username */
#accUsername {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

#accUsername:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

#accUsername::placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}