/* ============================
   Giliw-Elo Rating System CSS
   Updated: Oct 2025
   Mobile + Desktop Responsive
=============================== */

:root {
  --bg: #f8f9fb;
  --text: #222;
  --accent: #0077ff;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* --- Base --- */
body {
  font-family: system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --- Header --- */
header {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 4px var(--shadow);
}

header h1 {
  font-size: 1.6rem;
  margin: 0;
}

header p {
  font-size: 0.95rem;
  margin: 0.4rem 0 0.8rem;
}

/* --- Navigation --- */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

nav a.active {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}

/* --- Main Content --- */
main {
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px var(--shadow);
}

h2 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-top: 0;
}

h3 {
  color: #333;
  margin-top: 1.2rem;
}

/* --- Tables --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow);
}

.info-table th,
.info-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  background: #f0f2f5;
  font-weight: 600;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover {
  background: #f9fafc;
}

/* --- Blockquote --- */
blockquote {
  border-left: 4px solid var(--accent);
  background: #eef5ff;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-style: italic;
  border-radius: 6px;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 1rem;
  color: #666;
  font-size: 0.9rem;
  background: #f4f6f9;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

/* --- Mobile Optimization --- */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.3rem;
  }
  header p {
    font-size: 0.85rem;
  }
  nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .content {
    padding: 1rem;
  }
  .info-table, 
  .info-table thead, 
  .info-table tbody, 
  .info-table th, 
  .info-table td, 
  .info-table tr {
    display: block;
  }
  .info-table thead {
    display: none;
  }
  .info-table tr {
    margin-bottom: 0.8rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    padding: 0.8rem;
  }
  .info-table td {
    border: none;
    padding: 0.3rem 0;
  }
  .info-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    display: block;
    font-size: 0.8rem;
  }
}
