/* aiia-base.css — shared base styles for aiia-frame.work templates */

:root {
  --bg: #e6e6e6; /* fondo gris 10% black */
  --surface: #ffffff;
  --surface-2: #d9d9d9;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

html { font-size: 17px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.aiia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
}
.aiia-header .brand, .aiia-header nav a, .aiia-nav a, .gks-auth-username { color: #f8fafc !important; }
.aiia-header .aiia-nav a, .aiia-header nav a { color: #cbd5e1 !important; }

.aiia-header .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.aiia-header nav, .aiia-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.aiia-header nav a, .aiia-nav a {
  color: var(--text-muted);
  font-size: 1rem;
}

.aiia-header nav a:hover, .aiia-nav a:hover { color: var(--text); }

.nav-dropdown { position: relative; display: inline-flex; align-items: center; padding-bottom: 0.5rem; margin-bottom: -0.5rem; }
.nav-dropdown .nav-parent { cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0; }
.nav-dropdown .caret { font-size: 0.7rem; opacity: 0.7; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 0.35rem 0;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; flex-direction: column; }
.nav-dropdown-item {
  padding: 0.5rem 1rem;
  color: #000000 !important;
  font-weight: 700;
  white-space: nowrap;
}
.nav-dropdown-item:hover { background: #cbd5e1; color: #000000 !important; text-decoration: none; }
.nav-dropdown-menu { background: #ffffff !important; border: 1px solid #94a3b8 !important; box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important; }

.aiia-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gks-auth-username {
  font-weight: 600;
  color: var(--accent);
}

.aiia-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 70px);
  padding: 2rem 1rem;
}

.aiia-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.aiia-card h1 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  text-align: center;
}

.aiia-form-row {
  margin-bottom: 1rem;
}

.aiia-form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.aiia-form-row input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.aiia-form-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.aiia-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #082f49;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.aiia-btn:hover { background: var(--accent-hover); }

.aiia-btn.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.aiia-btn.secondary:hover { background: #475569; }

.aiia-msg {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4rem;
}

.aiia-msg.success { color: var(--success); }
.aiia-msg.error { color: var(--danger); }

.aiia-hero {
  text-align: center;
  max-width: 720px;
}

.aiia-hero h1 { font-size: 2.4rem; margin-bottom: 0.75rem; }
.aiia-hero p { color: var(--text-muted); font-size: 1.2rem; }

.hidden { display: none !important; }

@media (max-width: 480px) {
  .aiia-header { flex-wrap: wrap; gap: 0.5rem; }
  .aiia-card { padding: 1.5rem; }
}
