* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #222;
    color: #fff;
}

header {
    background: linear-gradient(105deg, #8b0000 0%, #8b0000 28%, #d50000 28.1%, #d50000 100%);
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 65px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
    font-weight: 900;
    font-size: 26px;
    font-style: italic;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -1px;
    margin-right: 60px; /* Space between logo and nav */
    z-index: 2; /* Ensure logo is above background */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

nav a:hover {
    text-decoration: underline;
}

nav a.active {
    color: #ffcc00; /* Gold color for active state */
    text-decoration: underline;
    font-weight: bold;
}

.discord-container {
    display: flex;
    flex-direction: row; /* Side by side */
    justify-content: flex-end; /* Align to the right */
    align-items: center; /* Vertically center */
    gap: 15px; /* Space between search and button */
    margin-bottom: 20px; /* Adjusted margin */
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 15px 10px 40px; /* Left padding for icon */
    border-radius: 6px;
    border: 2px solid #5865F2; /* Make border visible and match discord button */
    background-color: #ffffff; /* White background for maximum visibility */
    color: #000000; /* Black text */
    font-size: 16px;
    outline: none;
    width: 300px;
    height: 44px; /* Match button height approx */
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1); /* Glow effect */
}

.search-input:focus {
    background-color: #ffffff;
    border-color: #4752c4;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #555; /* Darker icon for white background */
    pointer-events: none;
    z-index: 10;
}

.discord-btn {
    background-color: #5865F2;
    color: white;
    padding: 10px 20px; /* Bigger button */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    height: 44px; /* Match search input height */
    transition: background-color 0.2s;
}

.discord-btn:hover {
    background-color: #4752c4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.league-card {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    color: #000000;
}

.league-header {
    background-color: #ffffff; /* Match card background or keep slight contrast */
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 900; /* Extra bold like screenshots */
    text-transform: uppercase; /* Ensure uppercase */
    font-family: 'Arial Black', 'Arial', sans-serif; /* Thick font */
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000000;
    border-bottom: 2px solid #f0f0f0; /* Slightly thicker border */
    letter-spacing: 0.5px;
}

.league-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none; /* For anchor tags */
    color: #000000; /* Inherit text color */
}

.match-row:last-child {
    border-bottom: none;
}

.match-row:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Very subtle light black/gray */
}

.match-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sport-type {
    font-size: 12px;
    color: #333;
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold; /* Added bold */
}

.separator {
    color: #555;
}

.teams {
    font-weight: bold; /* Increased font weight */
    font-size: 16px; /* Increased font size */
    display: flex;
    align-items: center;
    gap: 10px;
}

.teams-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 28px; /* Slightly larger logos */
    height: 28px;
    object-fit: contain;
}

.match-status {
    font-size: 14px;
    color: #666;
    font-weight: 500; /* Added weight */
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #d50000;
    font-weight: bold;
    font-size: 14px; /* Increased size */
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #d50000;
    border-radius: 50%;
}

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

/* SEO Article Styles */
.seo-article {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: #1a1a1a;
    border-radius: 8px;
    color: #ddd;
    line-height: 1.6;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.seo-article h1 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.seo-article h2 {
    color: #d50000; /* Use theme red */
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seo-article p {
    margin-bottom: 15px;
}

.seo-article a {
    color: #d50000;
    text-decoration: none;
}

.seo-article a:hover {
    text-decoration: underline;
}

.seo-article ul, .seo-article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-article li {
    margin-bottom: 8px;
}

.quick-links {
    margin: 20px 0;
    padding: 15px;
    background-color: #222;
    border-left: 4px solid #d50000;
}

.quick-links a {
    margin-right: 15px;
    font-weight: bold;
}

.explore-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #d50000;
    color: white !important;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.explore-link:hover {
    background-color: #b30000;
    text-decoration: none !important;
}

.tip {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #ffd700; /* Gold for tips */
    color: #eee;
}

/* SEO Grid Styles */
.seo-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.seo-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.seo-card-icon {
    font-size: 30px;
    color: #fff;
    background-color: #333;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* Custom icon colors based on sport */
.seo-card:nth-child(1) .seo-card-icon { color: #1d428a; } /* NBA Blue */
.seo-card:nth-child(2) .seo-card-icon { color: #d50a0a; } /* NFL Red */
.seo-card:nth-child(3) .seo-card-icon { color: #002D62; } /* MLB Blue */
.seo-card:nth-child(4) .seo-card-icon { color: #ce1126; } /* NHL Red */
.seo-card:nth-child(5) .seo-card-icon { color: #FF1801; } /* F1 Red */
.seo-card:nth-child(6) .seo-card-icon { color: #d20a0a; } /* UFC Red */
.seo-card:nth-child(7) .seo-card-icon { color: #e71313; } /* WWE Red */
.seo-card:nth-child(8) .seo-card-icon { color: #000; background-color: #fff; } /* Soccer B&W */

.seo-card-content {
    flex: 1;
}

.seo-card-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.seo-card-content h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #aaa;
}

.seo-card-content p {
    margin: 0;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

/* Footer Styles */
footer {
    background-color: #000000;
    color: white;
    padding: 20px 40px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    border-top: 1px solid #333; /* Subtle separation */
}

.footer-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}