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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
}

/* Navigation */
.navigation {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #10b981;
}

.nav-link.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #10b981, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.update-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.data-note {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn.primary {
    background: white;
    color: #667eea;
}

.hero-btn.secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn.primary:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-btn.secondary:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
}

/* Rankings Container */
.rankings-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Ad Container */
.ad-container-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.ad-link {
    display: block;
    max-width: 100%;
}

.ad-image {
    width: 320px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

input.filter-select {
    cursor: text;
    min-width: 200px;
}

.filter-select:hover {
    border-color: #10b981;
}

.filter-select:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.export-btn {
    margin-left: auto;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Rankings Table */
.rankings-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table thead {
    background: #f8f9fa;
}

.rankings-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.rankings-table td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.rankings-table tbody tr {
    transition: background 0.3s ease;
}

.rankings-table tbody tr:hover {
    background: #f8f9fa;
}

/* Special styling for top 3 - removed per request */

.rank-cell {
    font-weight: 700;
    color: #333;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
}


.team-cell {
    padding: 0.75rem 1rem;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-details strong {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.team-city {
    font-size: 0.85rem;
    color: #999;
}

.record-cell {
    font-weight: 600;
    color: #333;
}

.elo-cell {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.elo-positive {
    color: #10b981 !important;
}

.elo-negative {
    color: #ef4444 !important;
}

.trend-cell {
    font-weight: 600;
}

.trend-up {
    color: #4caf50;
}

.trend-down {
    color: #f44336;
}

.trend-same {
    color: #999;
}

/* Matchup Predictor */
.matchup-predictor-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
}

.matchup-predictor-section.featured {
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border: 3px solid #10b981;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
    margin-top: 0;
    margin-bottom: 3rem;
}

.predictor-badge {
    position: absolute;
    top: -15px;
    right: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.predictor-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.predictor-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.matchup-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.team-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-selector label {
    font-weight: 600;
    color: #555;
    font-size: 1rem;
    text-align: center;
}

.team-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.team-dropdown:hover {
    border-color: #10b981;
}

.team-dropdown:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.team-info-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.team-preview-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.team-preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-preview-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.team-preview-elo {
    color: #666;
    font-size: 0.9rem;
}

.team-preview-elo strong {
    color: #667eea;
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.vs-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.calculate-btn {
    display: block;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calculate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.matchup-results {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.probability-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.prob-box {
    text-align: center;
}

.prob-team-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.prob-percentage {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.team1-probability .prob-percentage {
    color: #667eea;
}

.team2-probability .prob-percentage {
    color: #10b981;
}

.prob-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
}

.team1-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.team2-fill {
    background: linear-gradient(90deg, #10b981, #059669);
}

.elo-difference {
    text-align: center;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    color: #555;
    font-weight: 500;
}


/* Rankings Footer */
.methodology-full-width {
    margin-top: 3rem;
}

.methodology {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.methodology h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
}

.methodology-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.methodology-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.methodology-section h4 {
    color: #10b981;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.methodology p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.methodology a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.methodology a:hover {
    text-decoration: underline;
}


/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-page h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-page .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.legal-page section {
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-page p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-page ul {
    color: #555;
    line-height: 1.6;
    margin: 1rem 0 1rem 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Contact Page */
.contact-page {
    max-width: 1000px;
    margin: 2rem auto;
}

.contact-page h1 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-faq {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h2,
.contact-faq h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-method {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-method h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-method p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-email {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

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

.faq-item h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* Page Footer */
.page-footer {
    background: #333;
    color: white;
    margin-top: 4rem;
    padding: 2rem;
}

.page-footer .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.affiliate-notice {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 1rem;
    font-style: italic;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .rankings-table {
        font-size: 0.9rem;
    }
    
    .rankings-table th,
    .rankings-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    input.filter-select {
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .export-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    
    .rankings-table-container {
        overflow-x: auto;
    }
    
    .rankings-table {
        min-width: 700px;
    }
    
    .team-logo {
        width: 35px;
        height: 35px;
    }
    
    .matchup-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .vs-divider {
        order: 2;
        margin: 1rem 0;
    }
    
    .team-selector:first-child {
        order: 1;
    }
    
    .team-selector:last-child {
        order: 3;
    }
    
    .team-selector {
        width: 100%;
        max-width: 100%;
    }
    
    .team-dropdown {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .team-info-box {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.75rem;
    }
    
    .probability-display {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .matchup-predictor-section {
        padding: 1.5rem;
        margin: 0 0 3rem 0;
        overflow: hidden;
    }
    
    .matchup-predictor-section.featured {
        margin: 0 0 3rem 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .rankings-container {
        padding: 0 1rem;
    }
    
    .predictor-badge {
        top: -10px;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-btn {
        font-size: 0.9rem;
        padding: 0.85rem 1.5rem;
    }
    
    .update-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }
    
    .team-preview-logo {
        width: 40px;
        height: 40px;
    }
    
    .prob-percentage {
        font-size: 2rem;
    }
    
    .matchup-container {
        padding: 0;
    }
    
    .team-dropdown {
        font-size: 0.9rem;
    }
    
    .team-info-box {
        padding: 0.75rem 0.5rem;
    }
    
    .team-preview-details {
        min-width: 0;
        flex: 1;
    }
    
    .team-preview-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-logo {
        font-size: 0.8rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .predictor-title {
        font-size: 1.4rem;
    }
    
    .predictor-subtitle {
        font-size: 0.9rem;
    }
    
    .team-selector label {
        font-size: 0.9rem;
    }
    
    .team-dropdown {
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
    }
    
    .vs-text {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .calculate-btn {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .prob-percentage {
        font-size: 1.8rem;
    }
    
    .prob-team-name {
        font-size: 0.95rem;
    }
    
    .rankings-table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .rankings-table th,
    .rankings-table td {
        padding: 0.6rem 0.5rem;
    }
    
    .team-logo {
        width: 30px;
        height: 30px;
    }
    
    .team-details strong {
        font-size: 0.85rem;
    }
    
    .team-city {
        font-size: 0.75rem;
    }
    
    .legal-page {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-faq {
        padding: 1.5rem;
    }
    
    .contact-page {
        margin: 1rem;
    }
    
    .contact-page h1 {
        font-size: 2rem;
    }
}