@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ==========================================================================
	 Base styles and resets
	 ========================================================================== */
*, *::before, *::after {
		box-sizing: border-box;
}

:root {
  /* Primary & Secondary */
  --color-primary: #FF4D4D;
  --color-primary-hover: #FF6B6B;
  --color-primary-shadow: rgba(255, 77, 77, 0.25);
  --color-secondary: #438BFC;

  /* Backgrounds */
  --color-bg: #2B2F3A;              /* Body background */
  --color-surface: #1E2129;         /* Cards, panels */
  --color-surface-alt: #3F444F;     /* Hovers, toggles */
  --color-bg-light: #3F444F;        /* Light surface/hovers */

  /* Text */
  --color-text: #E6E9EF;
  --color-text-muted: #9CA3B0;
  --color-heading: #FFFFFF;

  /* UI lines & borders */
  --border-color: #5C6270;

  /* Fonts */
  --font-main: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --transition-default: all 0.2s ease;
}



body, h1, h2, h3, h4, h5, h6, ul, ol, p, figure {
	font-family: var(--font-main);
	margin: 0;
	padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
}

/* ==========================================================================
	 Typography
	 ========================================================================== */
h1 {
	font-size: 1.5rem;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: var(--transition-default);
}

a:hover {
		color: var(--color-primary-hover);
}

/* ==========================================================================
	 Layout
	 ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background: none; /* Let the body control this */
}

.card {
	background-color: var(--color-surface);
	border-radius: var(--border-radius);
	padding: 12px 16px;
	box-shadow: var(--box-shadow);
	margin: 16px;
}

.table-card {
	background-color: var(--color-surface);
	border-radius: var(--border-radius);
	padding: 0;
	box-shadow: var(--box-shadow);
	margin: 16px;
}

.center {
	text-align: center !important;
}

/* ==========================================================================
	 Form elements
	 ========================================================================== */
.form-control {
	background: var(--color-bg-light);
	color: var(--color-text);
	border: 1px solid #2c4d78;
	border-radius: 6px;
	padding: 0.6em 1em;
	margin-bottom: 0.7em;
	font-size: 1em;
	width: 100%;
}

.form-control:focus {
	outline: 2px solid var(--color-primary);
	border-color: var(--color-primary);
}

.btn {
	background: var(--color-primary);
	color: #fff; /* don't use dark background as text color */
	font-weight: 600;
	cursor: pointer;
	border: none;
	border-radius: 6px;
	padding: 0.6em 1.2em;
	transition: background 0.2s, transform 0.1s;
	box-shadow: 0 2px 8px var(--color-primary-shadow);
	text-align: center;
}


.btn:hover {
	background: var(--color-primary-hover);
	color: var(--color-bg-dark);
}

.btn:active {
	transform: translateY(1px);
	box-shadow: 0 1px 3px var(--color-primary-shadow);
}

.btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-bg-lighter);
}

/* ==========================================================================
	 Navigation
	 ========================================================================== */
.navbar {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}


.navbar-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 16px;
	position: relative;
}

.navbar-brand {
	font-size: 1.5em;
	font-weight: bold;
	color: var(--color-primary);
	letter-spacing: 0.03em;
	margin-left: 8px;
}

.navbar-nav {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

.nav-item {
	display: inline;
}

.nav-link {
	color: var(--color-text);
	font-weight: 600;
	padding: 4px 12px;
	transition: var(--transition-default);
}

.nav-link:hover, .nav-link.active {
	color: var(--color-primary-hover);
}

/* ==========================================================================
	 Content components
	 ========================================================================== */
.list-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.8em 1em;
	background: var(--color-bg-light);
	margin-bottom: 0.6em;
	border-radius: var(--border-radius);
	transition: var(--transition-default);
}

.list-item:hover {
	background: var(--color-bg-lighter);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.list-item-title {
	color: var(--color-primary);
	font-size: 1.08em;
	font-weight: 500;
}

.list-item-action {
	margin-left: 1em;
}

/* ==========================================================================
	 Pagination
	 ========================================================================== */
.pagination {
	margin-top: 1em;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1em;
}

.pagination-link {
	color: var(--color-primary);
	background: var(--color-bg-light);
	padding: 0.6em 1em;
	border-radius: 6px;
	font-weight: 500;
	transition: var(--transition-default);
}

.pagination-link:hover {
	background: var(--color-primary);
	color: var(--color-bg-dark);
	transform: translateY(-2px);
}

.pagination-text {
	color: var(--color-text-muted);
	font-size: 1.05em;
}

/* ==========================================================================
	 Mobile navigation
	 ========================================================================== */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 36px;
	height: 36px;
	cursor: pointer;
	background: none;
	border: none;
	z-index: 1001;
}

.hamburger-line {
	display: block;
	width: 26px;
	height: 4px;
	margin: 3px 0;
	background: var(--color-primary);
	border-radius: 2px;
	transition: 0.3s;
}

.nav-toggle {
	display: none;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.navbar-nav.main-nav {
    display: flex;
}

.navbar-nav.auth-nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: block;
    width: 100%;
    text-align: center;
}

.nav-divider {
    display: none;
}

/* ==========================================================================
	 Media Queries
	 ========================================================================== */
@media (min-width: 701px) {
    .navbar-brand {
        display: none;
    }
    
    .nav-wrapper {
        flex: 1;
    }
    
    .nav-item {
        display: flex;
    }
}

/* Mobile layout */
@media (max-width: 700px) {
	.card {
		margin: 16px 8px;
		padding: 8px;
	}

    .hamburger {
        display: flex;
    }

    .nav-wrapper {
        flex-direction: column;
        position: absolute;
        top: 54px;
        left: 0;
        background: var(--color-surface);
        width: 100%;
        box-shadow: var(--box-shadow);
        display: none;
        z-index: 1000;
    }
    
    .nav-toggle:checked + .hamburger + .nav-wrapper {
        display: flex;
    }
    
    .navbar-nav {
        flex-direction: column;
		padding: 8px 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        text-align: left;
        padding: 8px 12px;
    }
    
    .nav-divider {
        display: block;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 0;
        width: 100%;
    }

	.table-card {
		margin: 8px;
	}
}

/* ==========================================================================
	 Custom scrollbar
	 ========================================================================== */
::-webkit-scrollbar {
	width: 10px;
	background: var(--color-bg-medium);
}

::-webkit-scrollbar-thumb {
	background: var(--color-primary);
	border-radius: 5px;
}
























/* ==========================================================================
	 Sort later Section
	 ========================================================================== */

/* Match prediction styling */
.match-prediction-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin: 1.5em 0;
}

.match-card {
    background: var(--color-surface-alt);
    border-radius: var(--border-radius);
    padding: 1em;
    box-shadow: var(--box-shadow);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8em;
    padding-bottom: 0.8em;
    border-bottom: 1px solid var(--border-color);
}

.match-teams {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-heading);
}

.match-kickoff {
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.match-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.prediction-container, .result-container {
    padding: 0.8em;
    border-radius: var(--border-radius);
}

.prediction-container,
.result-container {
    background: var(--color-surface);
}

.prediction-label, .result-label {
    font-size: 0.9em;
    color: var(--color-primary);
    margin-bottom: 0.4em;
    font-weight: 500;
}

.prediction-score, .result-score {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-heading);
}

.prediction-container {
    margin-top: 16px;
}

.prediction-outcome {
    font-size: 0.9em;
    margin-top: 0.3em;
    color: var(--color-text-muted);
}

.prediction-outcome ul {
    list-style: none;
}

.no-prediction, .no-result {
    color: var(--color-text-muted);
    font-style: italic;
}

.prediction-cluster {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.prediction-header,
.prediction-value {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .match-details {
        grid-template-columns: 1fr;
    }
}

/* Team sheets styling */
.team-sheets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin-top: 1.2em;
}

.team-sheet {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 12px;
    position: relative;
}

.team-sheet strong {
    color: var(--color-heading);
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 6px;
    font-size: 1.05em;
}

.team-sheet:first-child {
    border-left: 3px solid var(--color-secondary);
}

.team-sheet:last-child {
	border-left: 3px solid var(--color-primary);
}

.team-sheet ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.team-sheet li {
    padding: 0;
    font-size: 0.95em;
}

.team-sheet li .position {
    color: var(--color-text-muted);
    font-size: 0.9em;
}

/* Responsive layout */
@media (max-width: 768px) {
    .team-sheets {
        grid-template-columns: 1fr;
    }
    
    .team-sheet:last-child {
        margin-top: 1em;
    }
}
