/* /tournaments/style.css */

/* reset + základ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: linear-gradient(to bottom, #f8fafc, #ffffff, #f8fafc);
}

body {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* HEADER */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #020617;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
  font-size: 18px;
}

.logo-text {
  line-height: 1.1;
}

.logo-title {
  font-weight: 600;
  font-size: 15px;
}

.logo-subtitle {
  font-size: 11px;
  color: #64748b;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}

.nav-item {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: #1e293b;
  cursor: pointer;
}

.nav-item:hover {
  background: #e5e7eb;
}

.nav-item-active {
  background: #020617;
  color: #fff;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* buttons */

.btn-primary,
.btn-secondary,
.btn-ghost {
  border-radius: 999px;
  border: none;
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: #020617;
  color: #fff;
}

.btn-primary:hover {
  background: #111827;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d1d5db;
}

.btn-secondary.small,
.btn-primary.small {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-ghost {
  background: transparent;
  color: #1e293b;
}

.btn-ghost:hover {
  background: #e5e7eb;
}

.btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #e5e7eb;
  cursor: pointer;
}

.btn-circle:hover {
  background: #d1d5db;
}

/* MAIN */

.app-main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.page {
  display: none;
}

.page-active {
  display: block;
}

/* CARDS */

.card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.card-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
}

.card-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-body {
  padding: 14px 16px 16px;
}

/* LAYOUTS */

.grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .header-nav {
    margin-left: 0;
  }
  .grid-2col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FIELDS */

.field-label {
  font-size: 12px;
  color: #64748b;
}

.field-label.small {
  font-size: 11px;
}

.field-select,
.field-input {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  font-size: 13px;
  background: #fff;
}

.field-input.small {
  padding: 4px 8px;
  font-size: 12px;
  width: 60px;
}

/* PILLS */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #e5e7eb;
  color: #334155;
}

.pill-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.pill-row {
  gap: 6px;
}

/* TEXT */

.text-muted {
  color: #64748b;
}

.small {
  font-size: 12px;
}

/* EDITOR */

.editor {
  margin-top: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: #f9fafb;
}

.editor-title {
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
}

.toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.toolbar-btn {
  border: none;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
  background: #e5e7eb;
  color: #111827;
}

.toolbar-btn:hover {
  background: #d1d5db;
}

.editor-area {
  min-height: 160px;
  padding: 10px 12px 12px;
  font-size: 14px;
  outline: none;
}

/* NEWS LIST placeholder */

.news-list {
  margin-top: 12px;
}

/* TABLES */

.table-wrapper {
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table thead {
  background: #f9fafb;
}

.table th,
.table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.table th {
  font-weight: 600;
  color: #475569;
}

/* CALENDAR */

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-month {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  color: #0f172a;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding-bottom: 2px;
}

.calendar-cell {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 4px 6px;
  min-height: 52px;
  background: #ffffff;
}

.calendar-cell-out {
  background: #f3f4f6;
  color: #9ca3af;
}

.calendar-day {
  font-size: 12px;
}

/* FOOTER */

.app-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 16px;
  font-size: 11px;
  color: #94a3b8;
}
