/* g_styles.css — minimalistyczny zestaw klas, ciemny motyw z jednostkami względnymi */

/* Root */
:root {
  --bg: #0b0f14;
  --card: #0f1720;
  --muted: #9aa6b2;
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --surface-2: #0d1116;
}

*{
  font-family: 'Roboto', 'Arial', 'sans-serif';
  overflow-wrap: break-word;
  word-wrap: break-word; /* stary alias dla starszych przeglądarek */
  box-sizing: border-box;
}
/* Layout */
.app-root {
  background: var(--bg);
  color: #e6eef6;
  min-height: 100vh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 64rem; /* 1024px */
  margin: 2.25rem auto; /* 36px */
  padding: 1.25rem; /* 20px */
  width: 100%;
}

.header {
  margin-bottom: 1.125rem; /* 18px */
}

.title {
  font-size: 1.6rem;
  margin: 0 0 0.5rem; /* 8px */
  text-align: center;
}

.lead {
  color: var(--muted);
  margin: 0;
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-radius: 0.75rem; /* 12px */
  padding: 1.125rem; /* 18px */
  margin-bottom: 0.875rem; /* 14px */
  box-shadow: 0 0.375rem 1.125rem rgba(2, 6, 23, 0.6);
  border: 0.0625rem solid rgba(255, 255, 255, 0.02); /* 1px */
  width: 100%;
}

.card.small {
  max-width: 48rem; /* 640px */
  width: 100%;
  margin: 0 auto;
  padding: 1.125rem;
}

.card-title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.card-body {
  margin: 0 0 0.75rem;
  color: #d8e6f2;
}

/* Buttons & links */
.btn {
  display: inline-block;
  padding: 0.5rem 0.75rem; /* 8px 12px */
  border-radius: 0.5rem; /* 8px */
  background: var(--accent);
  color: #032;
  cursor: pointer;
  border: none;
  font-weight: 600;
  text-decoration: none;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links li {
  margin: 0.5rem 0; /* 8px */
}

/* Utilities */
.row {
  display: flex;
  gap: 0.75rem; /* 12px */
  align-items: center;
}

.col {
  flex: 1;
}

.small {
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.features {
  margin: 0.5rem 0;
  padding-left: 1.125rem; /* 18px */
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.125rem 0; /* 18px */
  background: transparent;
}

.container.small {
  max-width: 48rem; /* 768px */
  width: 100%;
  padding: 1.125rem;
}

/* License modal */
.license-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3, 6, 10, 0.6);
  z-index: 9999;
}

.license-modal.active {
  display: flex;
}

.license-dialog {
  background: var(--card);
  max-width: 48rem; /* 768px */
  width: 92%;
  padding: 1.125rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 0.625rem 2.5rem rgba(2, 6, 23, 0.7);
}

.license-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.license-body {
  max-height: 56vh;
  overflow: auto;
  margin-bottom: 0.75rem;
  color: #d3e6f8;
  user-select: none;
}

.license-actions {
  text-align: right;
}

.license-actions .btn {
  background: transparent;
  border: 0.0625rem solid rgba(255, 255, 255, 0.04);
  color: var(--accent-2);
  padding: 0.5rem 0.625rem; /* 8px 10px */
}

/* Prevent selection for protected areas */
.no-select {
  user-select: none;
}
