/* assets/css/early2000s-v2.css */

/* ================================
   2002–2003 Retro Styling (max‑500px)
   ================================ */

/* — Variables & Dark Mode Switch — */
:root {
  --maxw:        500px;
  --pad:         8px;
  --border-c:    #888;
  --bg-light:    #f0f0f0;
  --surface:     #fff;
  --text:        #000;
  --link:        #0000ee;
  --link-hover:  #551a8b;

  --bg-dark:     #1a1a1a;
  --surface-d:   #2a2a2a;
  --text-d:      #ddd;
  --link-d:      #e2e9f2;
  --link-hover-d:#99ccff;
}

html.light {
  --bg:      var(--bg-light);
  --surface: var(--surface);
  --text:    var(--text);
  --link:    var(--link);
  --link-hover: var(--link-hover);
}
html.dark {
  --bg:      var(--bg-dark);
  --surface: var(--surface-d);
  --text:    var(--text-d);
  --link:    var(--link-d);
  --link-hover: var(--link-hover-d);
}
h1{
  font-size: 1.5em;
  margin: 0;
  margin-bottom: 10px;
}

h2{
  font-size: 1.25em;
  margin: 0;
  margin-bottom: 10px;
}

a{
  text-decoration:none;
  color: var(--link);
}


body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
}

/* — Container Wrapper — */
.container {
  width: auto;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-c);
  padding: var(--pad);
}

/* — Header & Navbar — */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border-c);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 16px;
  font-weight: bold;
}
.logo img {
  height: 32px;
}
.nav-bar {
  max-width: 520px;
  margin: auto;
  padding: 3px;
  display: flex;
  gap: var(--pad);
  justify-content: space-between;
}
.nav-bar li {
  /* no extra styling */
}
.nav-bar a {
  color: var(--link);
  text-decoration: none;
}

html.dark .nav-bar a {
  background: var(--surface-d);
  border-color: #555;
  color: var(--link-d);
}
html.dark .nav-bar a:hover {
  background: var(--link-hover-d);
  color: #000;
}

/* — Dark Mode Toggle & Profile Icon — */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--pad);
}
.nav-actions button,
.nav-actions a.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: none;
  cursor: pointer;
}
html.dark .nav-actions button,
html.dark .nav-actions a.icon {
  background: var(--surface-d);
  border-color: #555;
}

/* — Main Content — */
.site-main {
  padding: var(--pad) 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  margin-bottom: var(--pad);
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--pad);
}
.nav-list li {
  margin: 0;
}
.nav-list a {
  color: var(--link);
  text-decoration: none;
  padding: 2px 5px;
  border: 1px solid var(--border-c);
}

.profile-card {
  border: 1px solid var(--border-c);
  padding: var(--pad);
}

.profile-card p {
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
}

.col-auto {
  display: inline-block;
  width: auto;
}
.withdrawal-form {
  border: 1px solid var(--border-c);
  padding: var(--pad);
}

.withdrawal-form form {
  margin: 0;
  padding: 0;
  margin-bottom: 5px;
}


/* — Match Cards — */
.match-list {
  list-style: none;
  margin: var(--pad) 0;
  padding: 0;
}
.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border-c);
  padding: var(--pad);
  margin-bottom: var(--pad);
}

.match-info{
  text-align: center;
}

html.dark .match-item {
  background: var(--surface-d);
  border-color: #555;
}

.match-details{
  border: 1px solid var(--border-c);
  padding: var(--pad);
}

.match-details h4 {
  margin: 0;
  padding: 0;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.team {
  display: flex;
  align-items: center;
  width: 40%;
}

.match-list a{
  color: var(--link);
  text-decoration: none;
}
.team.home {
  justify-content: flex-start;
}
.team.away {
  justify-content: flex-end;
}
.team img {
  width: 32px;
  height: 32px;
  margin-right: 6px;
}
html.dark .team img {
  border-color: #555;
}
.match-center {
  text-align: center;
  width: 20%;
}
.match-center .score {
  font-weight: bold;
}
.match-center .time {
  font-size: 0.85em;
  color: var(--text);
}
html.dark .match-center .time {
  color: var(--text-d);
}
.badge.live {
  background: #c00;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.75em;
}

/* — Links & Footer Links — */
.links {
  display: flex;
  justify-content: center;
  gap: var(--pad);
  margin: var(--pad) 0;
}
.links a {
  color: var(--link);
  text-decoration: none;
}
.links a:hover {
  text-decoration: underline;
}
html.dark .links a {
  color: var(--link-d);
}

/* — Buttons & Forms — */
button, .btn {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border-c);
  cursor: pointer;
}
html.dark button, html.dark .btn {
  background: var(--surface-d);
  border-color: #555;
  color: var(--text-d);
}
button:hover, .btn:hover {
  background: var(--border-c);
  color: #fff;
}

ul.list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.list-unstyled li {
  margin-bottom: var(--pad);
  padding: 5px;
  border: 1px solid var(--border-c);
  background: var(--surface);
}


ul.list-unstyled li a {
  color: var(--link);
  text-decoration: none;
}

ul.list-unstyled h3{
  margin: 0;
  padding: 0;
  font-size: 1em;
}

.mb-3 {
  margin-bottom: 1rem;
}

.category-filter {
  display: flex;
  gap: var(--pad);
}
.category-filter a {
  padding: 2px 5px;
  background: var(--surface);
  border: 1px solid var(--border-c);
  color: var(--text);
  text-decoration: none;
}
.category-filter a.active {
  background: var(--border-c);
  color: #fff;
}

/* — Inputs — */
input, select, textarea {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--border-c);
  margin-bottom: var(--pad);
}
html.dark input, html.dark select, html.dark textarea {
  background: var(--surface-d);
  border-color: #555;
  color: var(--text-d);
}

/* — Tables — */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--pad) 0;
}
th, td {
  border: 1px solid var(--border-c);
  padding: 6px;
  text-align: left;
}
th {
  background: var(--surface);

}
html.dark th {
  background: var(--surface-d);
}
html.dark td {
  border-color: #555;
}

/* — Footer — */
.site-footer {
  text-align: center;
  font-size: 12px;
  padding: var(--pad) 0;
  border-top: 1px solid var(--border-c);
}
html.dark .site-footer {
  border-color: #555;
}

.btn{
  border: 1px solid var(--border-c);
  color: var(--text);
  padding: 2px 5px;
}

a.btn {
  color: var(--link);
  text-decoration: none;
}

a.cat-link {
  color: var(--link);
  text-decoration: none;
}

/* Prediction Form Styling */
.prediction-form {
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: var(--pad);
}

.score-input-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--pad);
}

.score-input {
  display: flex;
  align-items: center;
}

.score-input button {
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
html.dark .score-input button {
  background: var(--surface-d);
  border-color: #555;
  color: var(--text-d);
}
.score-input button:hover {
  background: var(--border-c);
  color: #fff;
}
html.dark .score-input button:hover {
  background: #555;
  color: var(--text-d);
}

.score-input input[type="number"] {
  width: 40px;
  text-align: center;
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  margin: 0 0px;
  padding: 4px;
  background: var(--surface);
  font-size: 1rem;
  color: var(--text);
}
html.dark .score-input input[type="number"] {
  background: var(--surface-d);
  border-color: #555;
  color: var(--text-d);
}

.score-input-container .mx-2 {
  margin: 0 var(--pad);
  font-size: 1.25rem;
  color: var(--text);
}
html.dark .score-input-container .mx-2 {
  color: var(--text-d);
}

/* Submit Button */
.prediction-form .btn {
  display: inline-block;
  width: 100%;
  padding: 6px 0;
  background: var(--surface);
  border: 1px solid var(--border-c);
  border-radius: var(--radius);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  color: var(--text);
}
html.dark .prediction-form .btn {
  background: var(--surface-d);
  border-color: #555;
  color: var(--text-d);
}
.prediction-form .btn:hover {
  background: var(--border-c);
  color: #fff;
}
html.dark .prediction-form .btn:hover {
  background: #555;
  color: var(--text-d);
}


.footer-links-container {
  display: flex;
  justify-content: center;
  gap: var(--pad);
  margin-top: var(--pad);
}
ul.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
ul.footer-links li {
  margin: 0;
}
ul.footer-links a {
  color: var(--link);
  font-size: 10px;
  text-decoration: underline;
  padding: 2px 5px;
}

/* Alert base */
.alert {
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-c);
  font-size: 13px;
}

/* Success */
.alert-success {
  background: #dff0d8;
  border-color: #d0e9c6;
  color: #3c763d;
}
html.dark .alert-success {
  background: #28422a;
  border-color: #475e4c;
  color: #a8d5a8;
}

/* Info */
.alert-info {
  background: #d9edf7;
  border-color: #bcdff1;
  color: #31708f;
}
html.dark .alert-info {
  background: #25363f;
  border-color: #3b515f;
  color: #9cc4d6;
}

/* Secondary */
.alert-secondary {
  background: #f7f7f7;
  border-color: #e1e1e1;
  color: #555;
}
html.dark .alert-secondary {
  background: #3a3a3a;
  border-color: #555;
  color: #ccc;
}

/* Alert – Danger */
.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c2c7;
  color: #842029;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

html.dark .alert-danger {
  background: #4f1a1a;
  border-color: #663b3b;
  color: #f8d7da;
}

/* Main wrapper to position arrows relative to the list */
.scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Your original list with horizontal scrolling */
.category-filter {
  display: flex;
  overflow-x: auto;
  /* Add some padding so content doesn't hide under the arrows */
 
  /* Hide scrollbar for all browsers */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  scroll-snap-type: x mandatory;
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter > a {
  width: auto;
  flex-shrink: 0;
  text-align: center;
  scroll-snap-align: start; /* This is the new property */
}

/* Styling for the arrow buttons */
.arrow-btn {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: white;
  border: 1px solid #ddd;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: opacity 0.3s;
  padding: 0 !important;
}

#scroll-left {
  left: 0;
}

#scroll-right {
  right: 0;
}

/* Class to hide arrows when not needed */
.arrow-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Compact Rewards Banner */
.rewards-info-compact {
  display: flex;
  align-items: center;
  border: 1px dashed #CCC;
  padding: 6px 10px 6px 6px;
  gap: 8px;
  font-size: 0.9rem;
  margin: 16px 0;
}
.dark .rewards-info-compact {
  background: var(--surface-d);
  border-color: var(--border-d);
}

.rewards-info-compact .icon {
  font-size: 2.5rem;
}

.rewards-info-compact .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.rewards-info-compact .info span:first-child {
  font-weight: bold;
}

.rewards-info-compact a{
  color: var(--link);
  text-decoration: none;
}