/* Hotel Yorum Botu Dashboard — stil */

:root {
  --surface-1:      #fcfcfb;
  --page-plane:      #f9f9f7;
  --text-primary:    #0b0b0b;
  --text-secondary:  #52514e;
  --text-muted:      #898781;
  --gridline:        #e1e0d9;
  --baseline:        #c3c2b7;
  --border:          rgba(11,11,11,0.10);

  --status-good:      #0ca30c;
  --status-warning:   #fab219;
  --status-serious:   #ec835a;
  --status-critical:  #d03b3b;

  --series-1: #2a78d6; /* blue      - Booking.com   */
  --series-2: #008300; /* green     - Google        */
  --series-3: #e87ba4; /* magenta   - Expedia       */
  --series-4: #eda100; /* yellow    - TripAdvisor   */
  --series-5: #1baf7a; /* aqua      - Trip.com      */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page-plane);
  color: var(--text-primary);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 700; font-size: 16px; }
.topbar nav a { margin-right: 18px; color: var(--text-secondary); font-weight: 500; }
.topbar nav a.active { color: var(--text-primary); }
.topbar .user { color: var(--text-muted); font-size: 13px; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.flash {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.flash.success { background: rgba(12,163,12,0.12); color: var(--status-good); }
.flash.error { background: rgba(208,59,59,0.12); color: var(--status-critical); }

/* --- Stat tiles --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.stat-tile .value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.stat-tile .label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.stat-tile.accent-good .value { color: var(--status-good); }
.stat-tile.accent-warning .value { color: #b8790a; }
.stat-tile.accent-critical .value { color: var(--status-critical); }

/* --- Bar chart (categorical, plain HTML/CSS) --- */
.bar-chart { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 22px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 10px; }
.bar-row .bar-label { font-size: 13px; color: var(--text-secondary); text-align: right; }
.bar-track { background: var(--gridline); border-radius: 4px; height: 10px; position: relative; }
.bar-fill { height: 10px; border-radius: 4px; min-width: 3px; }
.bar-row .bar-count { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.section-title { font-size: 15px; font-weight: 700; margin: 28px 0 10px; }

/* --- Table --- */
table.reviews-table { width: 100%; border-collapse: collapse; background: var(--surface-1); border-radius: 10px; overflow: hidden; }
table.reviews-table th, table.reviews-table td {
  text-align: left; padding: 10px 12px; font-size: 13.5px;
  border-bottom: 1px solid var(--gridline);
}
table.reviews-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
table.reviews-table tr:hover td { background: var(--page-plane); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge.good { background: rgba(12,163,12,0.12); color: #0a7f0a; }
.badge.warning { background: rgba(250,178,25,0.18); color: #8a5a00; }
.badge.critical { background: rgba(208,59,59,0.12); color: var(--status-critical); }
.badge.muted { background: rgba(137,135,129,0.15); color: var(--text-secondary); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.filters select, .filters input[type=text] {
  padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13.5px; background: var(--surface-1); color: var(--text-primary);
}
.filters button {
  padding: 7px 14px; border: none; border-radius: 8px; background: var(--series-1);
  color: white; font-weight: 600; font-size: 13.5px; cursor: pointer;
}

.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }

.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin: 18px 0 6px; }
.detail-grid h3:first-child { margin-top: 0; }
.text-block { white-space: pre-wrap; line-height: 1.5; font-size: 14.5px; }
.screenshot-preview { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); margin-top: 8px; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; border: none;
  background: var(--status-good); color: white; font-weight: 600; cursor: pointer; font-size: 14px;
}

.login-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.login-box {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; width: 320px;
}
.login-box h1 { font-size: 18px; margin: 0 0 20px; }
.login-box input {
  width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px;
}
.login-box button {
  width: 100%; padding: 10px; border: none; border-radius: 8px; background: var(--series-1);
  color: white; font-weight: 700; font-size: 14px; cursor: pointer;
}

.pagination { display: flex; gap: 10px; margin-top: 16px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }

.empty-state { color: var(--text-muted); font-size: 14px; padding: 20px 0; }
