/* Chess Masters Online - Main Stylesheet */

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #1a2530; /* Escurecido para melhor contraste */
    --secondary-color: #0f6bb9; /* Escurecido para melhor contraste */
    --accent-color: #c0392b; /* Escurecido para melhor contraste */
    --light-color: #ecf0f1;
    --dark-color: #1a2530; /* Escurecido para melhor contraste */
    --text-color: #222; /* Escurecido para melhor contraste */
    --text-light: #ffffff; /* Mais claro para melhor contraste */
    --border-color: #bbb; /* Escurecido para melhor contraste */
    --success-color: #1e8449; /* Escurecido para melhor contraste */
    --warning-color: #d35400; /* Escurecido para melhor contraste */
    --error-color: #a93226; /* Escurecido para melhor contraste */
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

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

/* ===== HEADER ===== */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-light);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

nav ul li a.active {
    border-bottom: 2px solid var(--accent-color);
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTIONS ===== */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/chess-hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 5rem 0;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.about-hero, .contact-hero, .privacy-hero, .terms-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/chess-board.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    padding: 3rem 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: #33bbff;
    color: var(--text-light);
    font-weight: 600; /* Aumentado para melhor contraste */
}

.btn-primary:hover {
    background-color: #0a5a9e; /* Escurecido para melhor contraste */
    color: var(--text-light);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600; /* Aumentado para melhor contraste */
}

.btn-secondary:hover {
    background-color: #bdc3c7;
    text-decoration: none;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-weight: 600; /* Aumentado para melhor contraste */
}

.btn-accent:hover {
    background-color: #a82315; /* Escurecido para melhor contraste */
    color: var(--text-light);
    text-decoration: none;
}

/* ===== HOME PAGE SECTIONS ===== */
.features-section {
    padding: 4rem 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.how-to-play {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonials {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.testimonials h2 {
    color: var(--text-light);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.15); /* Aumentado para melhor contraste */
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Adicionado para melhor contraste */
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-weight: 500; /* Aumentado para melhor contraste */
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.cta-section {
    padding: 4rem 0;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

/* ===== ABOUT PAGE ===== */
.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-content {
    padding: 4rem 0;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-submit {
    text-align: right;
}

.form-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* ===== PRIVACY & TERMS PAGES ===== */
.privacy-content,
.terms-content {
    padding: 4rem 0;
}

.privacy-section,
.terms-section {
    margin-bottom: 2.5rem;
}

.privacy-section:last-child,
.terms-section:last-child {
    margin-bottom: 0;
}

.privacy-section h4,
.terms-section h4 {
    margin-top: 1.5rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem; /* Mantendo o tamanho de h4 mas usando h3 na estrutura */
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

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

.footer-links ul li a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 2.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form-container,
    .contact-methods,
    .feature-card,
    .step-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .features-section,
    .how-to-play,
    .testimonials,
    .cta-section,
    .about-content,
    .contact-content,
    .privacy-content,
    .terms-content {
        padding: 2.5rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo,
    .footer-links,
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
