/* AIKA GameHost — Dashboard stilusok */

.dashboard {
  padding-top: 5rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Attekinto kartyak ────────────────────────────────────────────────────── */
.dash-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.dash-stat-card:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.dash-stat-card__icon {
  font-size: 1.75rem;
}

.dash-stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.dash-stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Tabok ─────────────────────────────────────────────────────────────────── */
.dash-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.dash-tab {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.dash-tab:hover {
  color: var(--text-primary);
  background: rgba(139, 92, 246, 0.1);
}

.dash-tab--active {
  color: var(--accent-cyan);
  border-color: var(--border-color);
  border-bottom-color: var(--bg-primary);
  background: var(--bg-card);
}

/* ── Panelek ──────────────────────────────────────────────────────────────── */
.dash-panel {
  margin-bottom: 2rem;
}

.dash-panel__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 0.95rem;
}

/* ── Szerver kartyak ──────────────────────────────────────────────────────── */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.server-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.server-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

.server-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.server-card__name {
  font-size: 1.1rem;
  font-weight: 700;
}

.server-card__game {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.server-card__status {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.server-card__status--running {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.server-card__status--stopped {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.server-card__status--pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.server-card__status--expired {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.server-card__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.server-card__info-item {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.server-card__info-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.server-card__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.server-card__actions button {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.server-card__actions button:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.server-card__actions button.btn-start {
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--accent-green);
}

.server-card__actions button.btn-stop {
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.server-card__actions button.btn-restart {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-orange);
}

/* ── Szerver reszletek panel ──────────────────────────────────────────────── */
.server-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.server-detail__back {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s;
}

.server-detail__back:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.server-detail__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.server-detail__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
}

.detail-meta-card__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.detail-meta-card__value {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* Konzol */
.server-console {
  background: #0a0a14;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.server-console__output {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--accent-green);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0.75rem;
}

.server-console__input-row {
  display: flex;
  gap: 0.5rem;
}

.server-console__input-row input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.server-console__input-row input:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.server-console__input-row button {
  padding: 0.5rem 1rem;
  background: var(--accent-purple);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── Uj szerver form ──────────────────────────────────────────────────────── */
.new-server-form {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Trial ────────────────────────────────────────────────────────────────── */
.trial-info {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.trial-info__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.trial-info p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.trial-info ul {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.trial-info ul li {
  padding: 0.3rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.trial-info ul li::before {
  content: '✓ ';
  color: var(--accent-green);
  font-weight: 700;
}

.trial-form {
  max-width: 500px;
}

/* ── Szamlazas ────────────────────────────────────────────────────────────── */
.billing-table {
  width: 100%;
  border-collapse: collapse;
}

.billing-table th,
.billing-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.billing-table th {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.billing-table td {
  color: var(--text-secondary);
}

.billing-status {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.billing-status--paid {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
}

.billing-status--pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

/* ── Fiok beallitasok ─────────────────────────────────────────────────────── */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.account-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.account-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.account-section .form-group {
  margin-bottom: 0.75rem;
}

/* ── Ures allapot ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state__text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ── Navbar user ──────────────────────────────────────────────────────────── */
.navbar__user {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Reszponziv ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .dash-overview {
    grid-template-columns: 1fr 1fr;
  }
  .servers-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .dash-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .server-detail__meta {
    grid-template-columns: 1fr 1fr;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
}
