/* ==========================================================================
   cssKH.css - King Hendo Site Styles
   ========================================================================== */

/* Design Tokens / Variables */
:root {
  --primary: #0066cc;
  --primary-dark: #004080;
  --success: #28a745;
  --danger: #dc3545;
  --text: #1a1a1a;
  --text-light: #555;
  --bg-card: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.2s ease;
}

/* ==========================================================================
   Global / Base Styles
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  background: linear-gradient(to right, #4e83c4, #9ad8e7);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* ==========================================================================
   Layout / Containers
   ========================================================================== */

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ==========================================================================
   Typography & Headings
   ========================================================================== */

h1, h2, h3 {
  margin: 0.5em 0;
}

h1 {
  font-size: 2.6rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-align: center;
}

h2 {
  font-size: 2.1rem;
  color: white;
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

/* ==========================================================================
   Navigation / Links
   ========================================================================== */

li {
  display: inline;
  padding: 0.4rem 0.8rem;
  background-color: #647891;
  border: 1px solid darkkhaki;
  border-radius: 6px;
  font-size: 1.1rem;
  margin: 0 0.3rem;
}

a {
  color: black;
  text-decoration: none;
  transition: var(--transition);
}

a:visited {
  color: black;
}

a:hover {
  color: tomato;
}

/* ==========================================================================
   Buttons (general)
   ========================================================================== */

button {
  cursor: pointer;
  transition: var(--transition);
}

button:active {
  background-color: white;
}



/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .page-container {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .form-container {
    padding: 1.8rem 1.4rem;
  }
}

@media (max-width: 480px) {
  li {
    display: block;
    margin: 0.6rem 0;
    text-align: center;
  }
}

/* Force centering for the football table specifically */
#matchupTable {
  margin: 2.5rem auto !important;
  max-width: 700px;
  width: 100%;
}
/* ==========================================================================
   Poker Page - Dates List (override global li styling)
   ========================================================================== */

/* Completely disable default browser bullets and use custom pseudo-element instead */
#poker-dates ul,
.poker-dates-list {
  list-style: none !important;     /* removes default disc bullet */
  padding-left: 2.4rem !important;
  margin: 1.5rem 0 2rem 1rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

#poker-dates li,
.poker-dates-list li {
  position: relative !important;
  padding-left: 2.2rem !important;
  margin-bottom: 0.9rem;
  background: none !important;
  border: none !important;
  display: list-item !important;
}

/* Custom blue bullet using ::before (reliable, no double-bullet issue) */
#poker-dates li::before,
.poker-dates-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  font-weight: bold;
}

/* Mobile adjustment */
@media (max-width: 480px) {
  #poker-dates ul,
  .poker-dates-list {
    padding-left: 2rem;
    margin-left: 0.8rem;
    font-size: 1.05rem;
  }

  #poker-dates li::before,
  .poker-dates-list li::before {
    font-size: 1.4rem;
  }
}

/* Mobile tweak */
@media (max-width: 480px) {
  #poker-dates ul,
  .poker-dates-list {
    margin-left: 1.5rem;
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   Navigation Dropdown (for Football)
   ========================================================================== */

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown button/link */
.dropbtn {
  background-color: #647891;
  color: black;
  padding: 0.4rem 0.8rem;
  border: 1px solid darkkhaki;
  border-radius: 6px;
  font-size: 1.1rem;
  margin: 0 0.3rem;
  cursor: pointer;
  transition: var(--transition);
}

.dropbtn:hover {
  color: tomato;
  border-color: tomato;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%); /* center under parent */
}

/* Links inside dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  background: #fff;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: var(--primary);
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile: tap to toggle (optional enhancement) */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(100, 120, 145, 0.95); /* semi-transparent to match nav */
  }

  .dropdown-content a {
    color: white;
    padding: 1rem;
    text-align: center;
  }

  .dropdown-content a:hover {
    background: rgba(255,255,255,0.2);
  }
}