RosterHash/static/style.css
2025-09-12 16:32:32 -07:00

1465 lines
29 KiB
CSS

.sidebar-link {
display: block;
padding: 12px 16px;
background: var(--bg-secondary);
border-radius: 8px;
color: var(--text-primary);
text-decoration: none;
margin-bottom: 10px;
transition: all 0.2s ease;
}
.sidebar-link:hover {
background: var(--bg-tertiary);
transform: translateX(5px);
}
.about-text {
background: var(--bg-secondary);
border-radius: 8px;
padding: 20px;
}
.about-text p {
color: var(--text-primary);
line-height: 1.6;
margin-bottom: 12px;
}
.about-text strong {
color: var(--accent);
}
.about-text ul {
margin-left: 20px;
margin-bottom: 12px;
}
.about-text li {
color: var(--text-secondary);
margin-bottom: 8px;
line-height: 1.5;
}
.about-text .cron-note {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 12px;
color: var(--accent);
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid var(--border-light);
font-style: italic;
}
/* Sidebar Overlay */
.sidebar-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* Removed .sidebar-overlay.active - now handled by checkbox state */
/* Brand styling */
.brand {
margin-bottom: 20px;
}
.app-logo {
max-width: 120px;
height: auto;
margin-bottom: 15px;
border-radius: 12px;
box-shadow: var(--shadow-sm);
}
.app-name {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
color: var(--text-primary);
margin-bottom: 8px;
font-size: 2.2rem;
font-weight: 600;
letter-spacing: -1px;
}
.tagline {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
color: var(--accent);
font-size: 0.9rem;
font-weight: 500;
opacity: 0.8;
}
/* Welcome page styles */
.welcome-container {
text-align: center;
background: var(--bg-primary);
padding: 40px;
border-radius: 12px;
box-shadow: var(--shadow-lg);
margin-top: 100px;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
.username-form {
display: flex;
flex-direction: column;
gap: 15px;
margin: 30px 0;
}
.username-form input {
padding: 15px;
border: 2px solid var(--border-primary);
border-radius: 8px;
font-size: 16px;
transition: border-color 0.3s;
background: var(--bg-primary);
color: var(--text-primary);
}
.username-form input:focus {
outline: none;
border-color: var(--accent);
}
.username-form button {
background: linear-gradient(45deg, var(--header-gradient-start), var(--header-gradient-end));
color: white;
padding: 15px 20px;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: transform 0.2s;
text-decoration: none;
display: inline-block;
text-align: center;
}
.username-form button:hover {
transform: translateY(-2px);
}
.btn {
background: linear-gradient(45deg, var(--header-gradient-start), var(--header-gradient-end));
color: white;
padding: 15px 20px;
border: none;
border-radius: 8px;
font-size: 16px;
cursor: pointer;
transition: transform 0.2s;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn:hover {
transform: translateY(-2px);
}
.example {
color: var(--text-muted);
font-size: 14px;
}
.example code {
background: var(--bg-secondary);
padding: 2px 6px;
border-radius: 4px;
font-family: monospace;
}
/* Dashboard header */
.dashboard-header {
background: var(--bg-primary);
padding: 20px;
border-radius: 12px;
margin-bottom: 20px;
box-shadow: var(--shadow-sm);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.dashboard-header h1 {
color: var(--text-primary);
font-size: 1.8rem;
}
/* Debug time picker styles */
.debug-time-picker {
background: var(--bg-secondary);
border: 2px solid #ff6b6b;
border-radius: 8px;
padding: 12px;
margin-top: 12px;
box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
width: 100%;
}
.debug-time-picker input[type="datetime-local"] {
background: var(--bg-color);
color: var(--text-color);
border: 2px solid #ff6b6b;
border-radius: 4px;
padding: 6px 10px;
font-family: inherit;
}
.debug-time-picker input[type="datetime-local"]:focus {
outline: none;
border-color: #ff4757;
box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}
.week-nav {
display: flex;
align-items: center;
gap: 15px;
}
.week-btn {
background: var(--bg-secondary);
color: var(--text-secondary);
padding: 8px 16px;
border-radius: 6px;
text-decoration: none;
transition: background 0.2s;
}
.week-btn:hover {
background: var(--bg-tertiary);
}
.current-week {
font-weight: bold;
color: var(--accent);
font-size: 1.1rem;
}
/* League scores - compact at top */
.scores-summary {
background: var(--bg-primary);
border-radius: 12px;
padding: 15px;
margin-bottom: 30px;
box-shadow: var(--shadow-sm);
}
.score-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--border-light);
}
.score-row:last-child {
border-bottom: none;
}
.league-info {
display: flex;
align-items: center;
gap: 8px;
min-width: 140px;
}
.league-info .league-dot {
width: 10px;
height: 10px;
}
.league-name {
font-weight: 600;
color: var(--text-primary);
font-size: 14px;
}
.league-name-link {
text-decoration: none;
color: inherit;
transition: color 0.2s ease;
}
.league-name-link:hover {
color: var(--accent);
}
.league-name-link:hover .league-name {
color: var(--accent);
}
/* League color dots */
.league-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
flex-shrink: 0;
}
.score-compact {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
}
.user-name, .opp-name {
font-weight: 500;
color: var(--text-secondary);
min-width: 80px;
}
.user-name {
text-align: right;
}
.score {
font-weight: bold;
color: var(--accent);
min-width: 30px;
text-align: center;
}
.vs-compact {
color: var(--text-muted);
font-size: 11px;
font-weight: 500;
}
/* Schedule section - main focus */
.schedule-section {
flex: 1;
}
.schedule-section h2 {
color: var(--text-light);
margin-bottom: 25px;
font-size: 1.8rem;
text-align: center;
}
.calendar-rows {
max-width: 1200px;
margin: 0 auto;
}
/* Day row styling */
.day-row {
background: var(--bg-primary);
border-radius: 16px;
margin-bottom: 20px;
box-shadow: var(--shadow-md);
overflow: hidden;
}
.day-header {
background: linear-gradient(45deg, var(--header-gradient-start), var(--header-gradient-end));
color: white;
padding: 15px 20px;
}
.day-header h3 {
margin: 0;
font-size: 1.2rem;
font-weight: 600;
}
.day-games {
padding: 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 15px;
}
/* Game card styling */
.game-card {
background: var(--bg-secondary);
border-radius: 12px;
padding: 15px;
border: 1px solid var(--border-secondary);
transition: all 0.2s ease;
}
.game-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-sm);
}
.game-info {
margin-bottom: 12px;
}
.game-time {
font-size: 12px;
color: var(--accent);
margin-bottom: 8px;
font-weight: 600;
text-align: center;
}
.matchup {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 14px;
font-weight: 600;
}
.away-team, .home-team {
color: var(--text-primary);
}
.at {
color: var(--text-muted);
font-size: 12px;
}
/* Game players section with league groups */
.game-players {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 12px;
}
.league-player-group {
display: flex;
flex-wrap: wrap;
gap: 4px;
padding: 6px;
background: var(--overlay-medium);
border-radius: 8px;
min-height: 28px;
}
.league-player-group .player-pill {
padding: 3px 6px;
font-size: 10px;
}
/* Player pills */
.player-pill {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-radius: 16px;
font-size: 11px;
border: 2px solid var(--border-secondary);
background: var(--bg-primary);
font-weight: 500;
transition: all 0.2s ease;
}
.player-pill:hover {
transform: scale(1.05);
}
/* Player pill links */
.player-pill-link {
text-decoration: none;
color: inherit;
display: inline-block;
}
.player-pill-link:hover .player-pill {
transform: scale(1.05);
cursor: pointer;
}
.player-pill .pos {
font-weight: bold;
font-size: 9px;
opacity: 0.8;
}
.player-pill .name {
font-weight: normal;
color: var(--player-name-color);
}
.player-pill .points {
font-weight: bold;
font-size: 9px;
opacity: 0.9;
background: rgba(255, 255, 255, 0.1);
padding: 1px 4px;
border-radius: 4px;
margin-left: auto;
}
.player-pill .league-dot {
display: none;
}
/* Position colors */
.player-pill.qb {
border-color: rgb(252, 43, 109);
background: rgba(252, 43, 109, 0.1);
color: rgb(252, 43, 109);
}
.player-pill.rb {
border-color: rgb(0, 206, 184);
background: rgba(0, 206, 184, 0.1);
color: rgb(0, 206, 184);
}
.player-pill.wr {
border-color: rgb(0, 186, 255);
background: rgba(0, 186, 255, 0.1);
color: rgb(0, 186, 255);
}
.player-pill.te {
border-color: rgb(255, 174, 88);
background: rgba(255, 174, 88, 0.1);
color: rgb(255, 174, 88);
}
.player-pill.k {
border-color: rgb(201, 108, 255);
background: rgba(201, 108, 255, 0.1);
color: rgb(201, 108, 255);
}
.player-pill.def {
border-color: rgb(191, 95, 64);
background: rgba(191, 95, 64, 0.1);
color: rgb(191, 95, 64);
}
.no-games-week {
text-align: center;
color: var(--text-light);
font-style: italic;
font-size: 16px;
padding: 60px 0;
background: var(--overlay-light);
border-radius: 12px;
margin: 20px 0;
}
/* App footer */
.app-footer {
text-align: center;
padding: 20px;
margin-top: 40px;
}
.version {
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
font-size: 11px;
color: var(--footer-text);
opacity: 0.8;
}
/* Error page */
.error-container {
text-align: center;
background: var(--bg-primary);
padding: 40px;
border-radius: 12px;
box-shadow: var(--shadow-lg);
margin-top: 100px;
max-width: 500px;
margin-left: auto;
margin-right: auto;
}
.error-container h1 {
color: var(--error-color);
margin-bottom: 20px;
}
.error-container p {
color: var(--text-muted);
margin-bottom: 30px;
line-height: 1.6;
}
/* Mobile responsive styles */
@media (max-width: 768px) {
.container {
padding: 15px;
}
.menu-toggle {
width: 40px;
height: 40px;
}
.menu-toggle .menu-icon {
font-size: 20px;
}
.sidebar {
width: 85%;
right: -85%;
}
.sidebar-content {
padding: 50px 20px 20px;
}
.dashboard-header {
flex-direction: column;
text-align: center;
}
.scores-summary {
padding: 12px;
}
.score-row {
flex-direction: column;
gap: 8px;
align-items: flex-start;
padding: 12px 0;
}
.league-info {
min-width: auto;
}
.score-compact {
align-self: stretch;
justify-content: space-between;
}
.day-games {
grid-template-columns: 1fr;
gap: 12px;
padding: 15px;
}
.day-header {
padding: 12px 15px;
}
.day-header h3 {
font-size: 1.1rem;
}
.schedule-section h2 {
font-size: 1.5rem;
}
.welcome-container {
margin-top: 50px;
padding: 30px 20px;
}
.app-name {
font-size: 1.6rem;
}
}
@media (max-width: 480px) {
.username-form {
gap: 12px;
}
.username-form input,
.username-form button {
padding: 12px;
font-size: 14px;
}
.week-nav {
flex-direction: column;
gap: 10px;
}
}
/* Original Theme Variables with improved light-dark() support */
:root {
color-scheme: light dark;
/* Theme colors using light-dark() where supported */
--bg-gradient-start: light-dark(#667eea, #1a1a2e);
--bg-gradient-end: light-dark(#764ba2, #16213e);
--bg-primary: light-dark(white, #1e1e2e);
--bg-secondary: light-dark(#f8f9fa, #2a2a3e);
--bg-tertiary: light-dark(#e9ecef, #35354a);
--text-primary: light-dark(#333, #e0e0e0);
--text-secondary: light-dark(#495057, #b0b0b0);
--text-muted: light-dark(#666, #888);
--text-light: light-dark(white, #e0e0e0);
--player-name-color: light-dark(#000, #e0e0e0);
--border-primary: light-dark(#e1e8ed, #3a3a4e);
--border-secondary: light-dark(#dee2e6, #4a4a5e);
--border-light: light-dark(#f1f3f4, #2a2a3e);
--shadow-sm: light-dark(0 4px 16px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3));
--shadow-md: light-dark(0 6px 24px rgba(0, 0, 0, 0.1), 0 6px 24px rgba(0, 0, 0, 0.4));
--shadow-lg: light-dark(0 8px 32px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(0, 0, 0, 0.5));
--accent: light-dark(#667eea, #8b7ff5);
--accent-hover: light-dark(#5a6fd8, #9d8ff7);
--header-gradient-start: light-dark(#667eea, #8b7ff5);
--header-gradient-end: light-dark(#764ba2, #a085e6);
--overlay-light: light-dark(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
--overlay-medium: light-dark(rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.3));
--footer-text: light-dark(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
--error-color: light-dark(#e74c3c, #ff6b6b);
--sidebar-bg: var(--bg-primary);
--sidebar-shadow: light-dark(0 0 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(0, 0, 0, 0.5));
}
/* Fallback for browsers that don't support light-dark() */
@supports not (color: light-dark(white, black)) {
:root {
/* Light theme (original colors) */
--bg-gradient-start: #667eea;
--bg-gradient-end: #764ba2;
--bg-primary: white;
--bg-secondary: #f8f9fa;
--bg-tertiary: #e9ecef;
--text-primary: #333;
--text-secondary: #495057;
--text-muted: #666;
--text-light: white;
--player-name-color: #000;
--border-primary: #e1e8ed;
--border-secondary: #dee2e6;
--border-light: #f1f3f4;
--shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.1);
--shadow-md: 0 6px 24px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
--accent: #667eea;
--accent-hover: #5a6fd8;
--header-gradient-start: #667eea;
--header-gradient-end: #764ba2;
--overlay-light: rgba(255, 255, 255, 0.1);
--overlay-medium: rgba(255, 255, 255, 0.6);
--footer-text: rgba(255, 255, 255, 0.6);
--error-color: #e74c3c;
--sidebar-bg: white;
--sidebar-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] {
--bg-gradient-start: #1a1a2e;
--bg-gradient-end: #16213e;
--bg-primary: #1e1e2e;
--bg-secondary: #2a2a3e;
--bg-tertiary: #35354a;
--text-primary: #e0e0e0;
--text-secondary: #b0b0b0;
--text-muted: #888;
--text-light: #e0e0e0;
--player-name-color: #e0e0e0;
--border-primary: #3a3a4e;
--border-secondary: #4a4a5e;
--border-light: #2a2a3e;
--shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
--shadow-md: 0 6px 24px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
--accent: #8b7ff5;
--accent-hover: #9d8ff7;
--header-gradient-start: #8b7ff5;
--header-gradient-end: #a085e6;
--overlay-light: rgba(0, 0, 0, 0.2);
--overlay-medium: rgba(0, 0, 0, 0.3);
--footer-text: rgba(255, 255, 255, 0.4);
--error-color: #ff6b6b;
--sidebar-bg: #1e1e2e;
--sidebar-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}
}
/* Reset and base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--text-primary);
background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
min-height: 100vh;
transition: background 0.3s ease, color 0.3s ease;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Pure CSS Hamburger Menu Button */
.menu-toggle-checkbox {
display: none;
}
.menu-toggle {
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
background: var(--bg-primary);
border: 2px solid var(--border-primary);
border-radius: 8px;
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
}
.menu-toggle:hover {
transform: scale(1.1);
box-shadow: var(--shadow-md);
}
.menu-toggle .menu-icon {
font-size: 24px;
color: var(--text-primary);
}
/* Sidebar */
.sidebar {
position: fixed;
top: 0;
right: -400px;
width: 400px;
height: 100%;
background: var(--sidebar-bg);
box-shadow: var(--sidebar-shadow);
transition: right 0.3s ease;
z-index: 1001;
overflow-y: auto;
}
/* Show sidebar when checkbox is checked */
.menu-toggle-checkbox:checked ~ .sidebar {
right: 0;
}
/* Show overlay when checkbox is checked */
.menu-toggle-checkbox:checked ~ .sidebar-overlay {
opacity: 1;
visibility: visible;
}
.close-btn {
position: absolute;
top: 15px;
right: 15px;
background: transparent;
border: none;
font-size: 28px;
color: var(--text-primary);
cursor: pointer;
padding: 5px;
}
.close-btn:hover {
opacity: 0.7;
}
.sidebar-content {
padding: 60px 30px 30px;
}
.sidebar-section {
margin-bottom: 35px;
}
.sidebar-section h3 {
color: var(--accent);
margin-bottom: 15px;
font-size: 1.1rem;
font-weight: 600;
}
.theme-button {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-secondary);
border: 2px solid var(--border-primary);
border-radius: 8px;
padding: 12px 20px;
cursor: pointer;
width: 100%;
transition: all 0.2s ease;
color: var(--text-primary);
font-size: 15px;
}
.theme-button:hover {
background: var(--bg-tertiary);
transform: translateY(-2px);
}
/* Refresh button */
.refresh-btn {
background: var(--accent);
color: white;
border: none;
border-radius: 6px;
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
margin-left: 10px;
}
.refresh-btn:hover {
background: var(--accent-hover);
transform: translateY(-1px);
}
/* Smaller refresh button */
.refresh-btn-small {
background: var(--accent);
color: white;
border: none;
border-radius: 4px;
padding: 4px 8px;
font-size: 12px;
cursor: pointer;
transition: all 0.2s ease;
margin-right: 8px;
}
.refresh-btn-small:hover {
background: var(--accent-hover);
transform: translateY(-1px);
}
/* Change username button */
.change-username-btn {
background: var(--bg-secondary);
color: var(--text-primary);
border: 1px solid var(--border-primary);
border-radius: 4px;
padding: 4px 8px;
font-size: 12px;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
display: inline-block;
}
.change-username-btn:hover {
background: var(--bg-tertiary);
border-color: var(--accent);
color: var(--accent);
transform: translateY(-1px);
}
/* Timezone info */
.timezone-info {
font-size: 0.8rem;
color: var(--text-secondary);
font-weight: normal;
opacity: 0.8;
}
/* Theme button styling */
.theme-button {
display: flex;
align-items: center;
gap: 10px;
background: var(--bg-secondary);
border: 2px solid var(--border-primary);
border-radius: 8px;
padding: 12px 20px;
cursor: pointer;
width: 100%;
transition: all 0.2s ease;
color: var(--text-primary);
font-size: 15px;
}
.theme-button:hover {
background: var(--bg-tertiary);
transform: translateY(-2px);
}
/* Player pill styling - starters vs bench */
.player-pill.starter {
/* Starters: normal styling */
opacity: 1;
font-weight: 500;
}
.player-pill.bench {
/* Bench players: greyed out */
opacity: 0.6;
font-weight: 400;
color: var(--text-muted);
}
.player-pill.bench .pos,
.player-pill.bench .name {
color: var(--text-muted);
opacity: 0.8;
}
/* League player group styling - use space-between to separate starters and bench */
.league-player-group {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 12px;
background: var(--bg-secondary);
border-radius: 8px;
margin-bottom: 8px;
justify-content: space-between; /* Push bench players to the right */
align-items: flex-start;
}
/* Create a container for starters (left side) */
.starters-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: flex-start;
}
/* Create a container for bench players (right side) */
.bench-container {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: flex-end;
margin-left: auto; /* Push to right */
}
/* Win/Loss Indicators */
.match-indicator {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
margin-right: 12px;
min-width: 32px;
justify-content: center;
}
.match-indicator.winning {
background-color: #10b981;
color: white;
}
.match-indicator.losing {
background-color: #ef4444;
color: white;
}
.match-indicator.tied {
background-color: #6b7280;
color: white;
}
.indicator-icon {
font-size: 14px;
}
.indicator-text {
font-weight: 700;
font-size: 11px;
letter-spacing: 0.5px;
}
/* Score row styling based on status */
.score-row.winning {
background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
border-left: 3px solid #10b981;
}
.score-row.losing {
background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
border-left: 3px solid #ef4444;
}
.score-row.tied {
background: linear-gradient(90deg, rgba(107, 114, 128, 0.1) 0%, transparent 100%);
border-left: 3px solid #6b7280;
}
/* User score color based on status */
.user-score.winning {
color: #10b981;
font-weight: 600;
}
.user-score.losing {
color: #ef4444;
font-weight: 600;
}
.user-score.tied {
color: #6b7280;
font-weight: 600;
}
/* Collapsible Day and Game Styling */
.day-header {
cursor: pointer;
user-select: none;
transition: background-color 0.2s ease;
padding: 12px;
border-radius: 8px;
}
.day-header:hover {
background-color: var(--bg-secondary);
}
.day-header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.collapse-indicator {
font-size: 14px;
color: var(--text-secondary);
transition: transform 0.2s ease;
min-width: 20px;
text-align: center;
}
.game-header {
cursor: pointer;
user-select: none;
transition: background-color 0.2s ease;
border-radius: 8px;
padding: 8px;
}
.game-header:hover {
background-color: var(--bg-tertiary);
}
.game-header .game-info {
display: flex;
justify-content: space-between;
align-items: center;
}
.game-collapse-indicator {
font-size: 12px;
color: var(--text-secondary);
transition: transform 0.2s ease;
min-width: 16px;
text-align: center;
margin-left: 12px;
}
/* Collapsed states */
.day-row.collapsed .day-games {
display: none;
}
.game-card.collapsed .game-content {
display: none;
}
/* Smooth transitions */
.day-games,
.game-content {
transition: opacity 0.3s ease;
}
/* Past date/game styling */
.day-row.collapsed .day-header {
opacity: 0.7;
}
.game-card.collapsed .game-header {
opacity: 0.7;
}
/* Improved game card structure */
.game-card {
border: 1px solid var(--border-light);
border-radius: 8px;
margin-bottom: 12px;
background: var(--bg-primary);
}
.game-content {
padding: 0 12px 12px 12px;
}
/* Player Injury Status Styling */
.injury-status {
color: #dc2626 !important; /* Red color */
font-weight: 700;
font-size: 10px;
margin-left: 4px;
padding: 1px 3px;
background-color: rgba(220, 38, 38, 0.1);
border: 1px solid #dc2626;
border-radius: 3px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Loading States and Animations */
.loading-section {
text-align: center;
background: var(--bg-primary);
border-radius: 12px;
padding: 40px;
margin: 20px 0;
box-shadow: var(--shadow-sm);
}
.loading-container {
max-width: 400px;
margin: 0 auto;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid var(--border-light);
border-top: 4px solid var(--accent);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-container h2 {
color: var(--text-primary);
margin-bottom: 10px;
font-size: 1.3rem;
}
.loading-container p {
color: var(--text-secondary);
margin-bottom: 20px;
}
.loading-progress {
width: 100%;
max-width: 300px;
margin: 0 auto;
}
.progress-bar {
width: 100%;
height: 6px;
background: var(--border-light);
border-radius: 3px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(45deg, var(--accent), var(--accent-hover));
animation: progress 2s ease-in-out infinite;
border-radius: 3px;
}
@keyframes progress {
0% { width: 0%; }
50% { width: 70%; }
100% { width: 100%; }
}
.loading-indicator {
opacity: 0.7;
animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 0.7; }
50% { opacity: 0.3; }
}
/* Skeleton Loading Styles */
.skeleton-score-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--border-light);
}
.skeleton-league-info {
display: flex;
align-items: center;
gap: 8px;
min-width: 140px;
}
.skeleton-dot {
width: 10px;
height: 10px;
background: var(--border-secondary);
border-radius: 50%;
animation: skeleton 1.5s ease-in-out infinite;
}
.skeleton-text {
height: 16px;
background: var(--border-secondary);
border-radius: 4px;
animation: skeleton 1.5s ease-in-out infinite;
}
.skeleton-league-name {
width: 120px;
}
.skeleton-score {
width: 200px;
}
.skeleton-timezone {
width: 150px;
height: 12px;
margin-top: 5px;
display: inline-block;
}
.skeleton-day-row {
background: var(--bg-primary);
border-radius: 16px;
margin-bottom: 20px;
box-shadow: var(--shadow-md);
overflow: hidden;
}
.skeleton-day-header {
background: var(--border-secondary);
padding: 15px 20px;
animation: skeleton 1.5s ease-in-out infinite;
}
.skeleton-day-name {
width: 150px;
height: 20px;
}
@keyframes skeleton {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* Disabled button states */
.week-btn.disabled,
.refresh-btn.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
/* Game league footer - subtle info at bottom of game cards */
.game-league-footer {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 12px;
padding-top: 8px;
border-top: 1px solid var(--border-light);
justify-content: center;
}
.league-footer-item {
display: flex;
align-items: center;
gap: 4px;
font-size: 10px;
color: var(--text-muted);
opacity: 0.7;
padding: 2px 6px;
border-radius: 10px;
background: var(--overlay-light);
}
.league-footer-item .league-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
.league-name-small {
font-weight: 500;
max-width: 80px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.player-count {
font-weight: 600;
color: var(--text-secondary);
opacity: 0.8;
}
/* Live game indicator */
.live-indicator {
display: inline-block;
width: 8px;
height: 8px;
background-color: #ff0000;
border-radius: 50%;
margin-left: 8px;
margin-right: 6px;
animation: pulse-red 1.5s ease-in-out infinite;
}
.live-text {
color: #ff0000;
font-weight: bold;
font-size: 11px;
letter-spacing: 0.5px;
}
@keyframes pulse-red {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.3;
transform: scale(1.2);
}
}