/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a551; /* Verde */
    --secondary-color: #0077cc; /* Azul */
    --accent-color: #ffcc00; /* Amarelo */
    --bg-light: #f5f5f5;
    --bg-dark: #222;
    --text-primary: #333;
    --text-secondary: #555;
    --text-light: #fff;
    --text-muted: #888;
    --border-color: #e1e1e1;
    --radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

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

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

a:hover {
    color: #008945;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #008945;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Acessibilidade */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-nav:focus {
    top: 0;
}

/* Header e navegação */
.main-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 90;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 5px;
}

.nav-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(0, 165, 81, 0.1);
}

.user-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #009048 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.results-hero {
    padding: 40px 0;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Results Nav Section */
.results-nav-section {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.sport-tabs {
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sport-tabs::-webkit-scrollbar {
    display: none;
}

.sport-tab {
    padding: 12px 24px;
    margin-right: 10px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
}

.sport-tab i {
    margin-right: 8px;
}

.sport-tab.active {
    background: var(--primary-color);
    color: white;
}

.sport-tab:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.search-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.date-filter {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 5px 10px;
}

.date-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.date-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.current-date {
    margin: 0 10px;
    font-weight: 600;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 5px 10px;
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 8px;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.search-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Results Content Section */
.results-content-section {
    padding: 30px 0 60px;
}

.sport-content {
    display: none;
}

.sport-content.active {
    display: block;
}

.competitions-grid {
    display: grid;
    gap: 30px;
}

.competition-group {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.competition-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.competition-header img {
    margin-right: 15px;
}

.competition-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.match-results {
    padding: 10px;
}

.match-result {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

.match-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team {
    display: flex;
    align-items: center;
    max-width: 40%;
}

.home-team {
    text-align: right;
    justify-content: flex-end;
}

.away-team {
    text-align: left;
}

.team-logo {
    margin: 0 10px;
}

.team-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.score-separator {
    margin: 0 5px;
    color: var(--text-muted);
}

.match-score.upcoming {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.match-status {
    font-size: 0.85rem;
    text-align: center;
}

.match-status.completed {
    color: var(--text-muted);
}

.match-status.upcoming {
    color: var(--secondary-color);
    font-weight: 600;
}

.match-details {
    text-align: center;
}

.details-link, .bet-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.bet-link {
    color: var(--secondary-color);
}

.details-link:hover, .bet-link:hover {
    text-decoration: underline;
}

.details-link i, .bet-link i {
    margin-left: 5px;
    font-size: 0.8rem;
}

/* Set Scores for Tennis */
.set-scores {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border-radius: var(--radius) 0 0 var(--radius);
    border: none;
    outline: none;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--radius) var(--radius) 0;
    padding-left: 20px;
    padding-right: 20px;
}

.form-note {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0055aa 100%);
    color: white;
    padding: 70px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Rodapé */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 70px 0 0;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.responsible-gaming {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    margin-top: 20px;
}

.responsible-gaming h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.responsible-gaming p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-methods h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.copyright p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links a {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.7;
}

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

/* Media Queries */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .main-nav {
        flex-basis: 100%;
        order: 4;
        margin-top: 20px;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        padding: 12px 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .user-actions {
        margin-left: auto;
        order: 2;
    }

    .match-teams {
        flex-direction: column;
        gap: 10px;
    }

    .team {
        max-width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .newsletter-form button {
        border-radius: 0 0 var(--radius) var(--radius);
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .search-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .date-filter {
        width: 100%;
        justify-content: center;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .copyright {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}
