/* CHAOS SPORTS - Styles */

:root {
    --bg-dark: #0a0a0a;
    --bg-section: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-red: #dc2626;
    --accent-yellow: #eab308;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-orange: #f97316;
    --border-color: #2a2a2a;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-display: 'Oswald', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.5;
}

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

a:hover {
    color: var(--accent-red);
}

/* BREAKING BANNER */
.breaking-banner {
    background: linear-gradient(90deg, var(--accent-red), #991b1b);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.breaking-label {
    background: #fff;
    color: var(--accent-red);
    padding: 2px 8px;
    font-weight: 700;
    font-size: 10px;
    border-radius: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.breaking-text {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* HEADER */
.header {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-red);
}

.tagline {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

/* NAV */
.nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    overflow-x: auto;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.nav-link {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}

.nav-link.active {
    color: var(--accent-red);
    border-bottom-color: var(--accent-red);
}

/* STATS BAR */
.stats-bar {
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-yellow);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* MAIN LAYOUT */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SECTIONS */
.section {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.section-header {
    background: var(--bg-card);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title.football { color: var(--accent-orange); }
.section-title.basketball { color: var(--accent-blue); }
.section-title.baseball { color: var(--accent-green); }
.section-title.nil { color: var(--accent-yellow); }
.section-title.cfp { color: var(--accent-red); }

.section-count {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-dark);
    padding: 3px 8px;
    border-radius: 2px;
}

.section-body {
    padding: 15px;
}

/* HEADLINES */
.headline-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.headline-item:last-child {
    border-bottom: none;
}

.headline-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-live {
    background: var(--accent-red);
    color: white;
    animation: pulse 1.5s infinite;
}

.tag-hot {
    background: var(--accent-orange);
    color: white;
}

.tag-new {
    background: var(--accent-green);
    color: white;
}

.headline-link {
    font-size: 12px;
    line-height: 1.4;
}

.headline-link:hover {
    color: var(--accent-red);
}

/* PORTAL ENTRIES */
.portal-entry {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.portal-entry:last-child {
    border-bottom: none;
}

.portal-player {
    font-weight: 600;
    margin-bottom: 3px;
}

.portal-player a:hover {
    color: var(--accent-red);
}

.pos-tag {
    font-size: 9px;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 2px 5px;
    border-radius: 2px;
    margin-left: 6px;
}

.portal-details {
    font-size: 11px;
    color: var(--text-secondary);
}

/* BOWL GAMES */
.subsection-title {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--accent-red);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subsection-title.yellow { color: var(--accent-yellow); }
.subsection-title.muted { color: var(--text-muted); margin-top: 15px; }

.bowl-game {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 4px;
    margin-bottom: 8px;
}

.bowl-game.championship {
    border: 1px solid var(--accent-yellow);
}

.bowl-game.completed {
    background: transparent;
    padding: 5px 0;
    opacity: 0.7;
}

.bowl-date {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-yellow);
    width: 45px;
    flex-shrink: 0;
}

.bowl-info {
    flex: 1;
}

.bowl-name {
    font-size: 11px;
    color: var(--text-muted);
}

.bowl-matchup {
    font-weight: 600;
    font-size: 13px;
}

.bowl-time {
    font-size: 10px;
    color: var(--text-secondary);
    text-align: right;
}

.bowl-result {
    font-size: 11px;
    color: var(--text-secondary);
}

/* COLLECTIVES */
.collective-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.collective-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.collective-item:last-child {
    border-bottom: none;
}

.collective-school {
    color: var(--text-secondary);
}

.collective-item a {
    color: var(--text-primary);
    font-weight: 500;
}

.collective-item a:hover {
    color: var(--accent-yellow);
}

/* TEAM CARDS */
.team-card {
    padding: 10px;
    background: var(--bg-card);
    border-radius: 4px;
    margin-bottom: 8px;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
}

.team-result {
    font-size: 11px;
    color: var(--text-secondary);
}

/* RANKINGS */
.ranking-item {
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ranking-item:last-child {
    border-bottom: none;
}

/* SOURCE LIST */
.source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-list a {
    font-size: 11px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 3px;
    color: var(--text-secondary);
}

.source-list a:hover {
    background: var(--accent-red);
    color: white;
}

/* NIL ITEMS */
.nil-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.nil-item:last-child {
    border-bottom: none;
}

.nil-term {
    font-weight: 600;
    color: var(--accent-yellow);
    margin-bottom: 4px;
}

.nil-def {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* QUICK LINKS */
.quick-links {
    padding: 10px 15px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-link {
    font-size: 11px;
    color: var(--accent-red);
    font-weight: 500;
}

.quick-link:hover {
    text-decoration: underline;
}

/* FOOTER */
.footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-sub {
    font-size: 10px;
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 15px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .stats-bar {
        gap: 20px;
    }
    
    .main {
        padding: 15px;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .bowl-game {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bowl-time {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .breaking-banner {
        padding: 6px 10px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 12px;
    }
}
