:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #00ff88;
    /* Neon Green */
    --secondary-color: #7000ff;
    /* Neon Purple */
    --accent-color: #ff0055;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, #0d0d1a 0%, #16213e 100%);
    padding: 20px 0;
    border-bottom: 1px solid rgba(112, 0, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

.site-title {
    display: flex;
    flex-direction: column;
}

.site-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    /* Aumentado para destaque */
    margin: 0;
    line-height: 1;
    letter-spacing: -0.5px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, #a0a0ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-title p {
    font-size: 0.85rem;
    color: #a0a0b0;
    margin: 4px 0 0 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

#main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

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

.nav-link:not(.premium-link)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:not(.premium-link):hover::after {
    width: 100%;
}

.premium-link {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.premium-link:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        text-align: center;
    }

    .logo-area {
        flex-direction: column;
        gap: 10px;
    }

    #main-nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 25px;
    width: 250px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Container para sistema de dois níveis */
.filter-level {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.sport-level {
    margin-bottom: 5px;
}

.championship-level {
    padding: 10px;
    background: rgba(112, 0, 255, 0.05);
    border-radius: 15px;
    min-height: 50px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.championship-level .filter-btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* Responsivo */
@media (max-width: 768px) {
    .filter-level {
        gap: 8px;
    }

    .championship-level .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
}

.league-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    font-weight: 500;
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 10px;
}

.team-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
}

.team {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.vs-row {
    display: none;
    /* Removed for a cleaner vertical look, but can be adjusted */
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 5px;
}

.odd-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
    cursor: help;
    position: relative;
}

.odd-box:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
}

/* Tooltip on hover */
.odd-box:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    margin-bottom: 8px;
    line-height: 1.3;
    pointer-events: none;
    white-space: normal;
}

.odd-label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

.odd-val {
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.predict-btn {
    width: 100%;
    margin-top: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border: none;
    padding: 12px;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.predict-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: white;
}

.prediction-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.prob-bars {
    margin: 20px 0;
}

.prob-bar-container {
    margin-bottom: 10px;
}

.prob-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.bar-bg {
    background: #333;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 1s ease-out;
}

.premium-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 3px solid var(--accent-color);
}

.premium-blur {
    filter: blur(5px);
    user-select: none;
    opacity: 0.5;
}

.premium-cta {
    text-align: center;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.premium-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
}

/* Ad Intervention Styles */
.interstitial-content {
    text-align: center;
    max-width: 500px;
    border-color: var(--secondary-color);
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.3);
}

.interstitial-header h3 {
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.interstitial-ad-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    margin: 25px 0;
    min-height: 250px;
}

.countdown-container {
    margin-bottom: 20px;
}

.countdown-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    border-left-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#countdown-number {
    animation: none;
    transform: none;
    display: block;
}

.skip-btn {
    background: #333;
    color: #888;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    cursor: default;
    font-weight: 600;
    transition: all 0.3s;
}

.skip-btn.ready {
    background: var(--primary-color);
    color: #000;
    cursor: pointer;
}

.skip-btn.ready:hover {
    transform: scale(1.05);
}

.modal-ad {
    margin-top: 30px;
    border-style: solid;
    background: rgba(0, 0, 0, 0.2);
}

.ai-reasoning {
    margin-top: 15px;
    font-style: italic;
    color: #ccc;
    font-size: 0.95rem;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

/* Google Ads Styling */
.ad-container {
    margin: 20px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ad-placeholder {
    font-size: 0.8rem;
    color: #444;
    font-style: italic;
}

.top-ad {
    margin-top: 30px;
}

.middle-ad {
    margin: 40px 0;
}

footer {
    padding: 20px 0;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
    margin-top: auto;
}

/* Contact Modal Styles */
.contact-content {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
}

.contact-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.contact-header h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.contact-header p {
    color: #aaa;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.4);
}

.close-contact-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-contact-modal:hover {
    color: white;
}

/* Footer Styles for Multi-Column Layout */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-bottom p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #555;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}