/* Estilos globais */
:root {
    --primary-color: #ff6600;
    --primary-hover: #ff8533;
    --secondary-color: #2e4da7;
    --secondary-hover: #3a5fd0;
    --accent-color: #ffcc00;
    --text-color: #333333;
    --text-light: #777777;
    --bg-color: #f8f9fa;
    --bg-dark: #242a38;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --header-height: 70px;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

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

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

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
}

.btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    position: relative;
    font-weight: 500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 10px;
}

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

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(rgba(46, 77, 167, 0.9), rgba(46, 77, 167, 0.8)),
                url('images/1.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

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

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

/* Lobby Layout */
.bingo-lobby {
    padding: 40px 0;
}

.lobby-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar */
.lobby-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-block {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-block h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Jackpot Block */
.jackpot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.jackpot-name {
    font-weight: 500;
}

.jackpot-value {
    font-weight: 700;
    color: var(--primary-color);
}

/* Filter Block */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    padding: 10px 15px;
    background-color: var(--bg-color);
    border-radius: var(--radius-sm);
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-option:hover,
.filter-option.active {
    background-color: var(--primary-color);
    color: white;
}

/* Chat Block */
.chat-container {
    background-color: var(--bg-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.chat-messages {
    height: 150px;
    overflow-y: auto;
    padding: 10px;
}

.chat-message {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.message-author {
    font-weight: 600;
    color: var(--secondary-color);
}

.chat-input {
    display: flex;
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 10px;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-right: 10px;
}

/* Sidebar Promo */
.sidebar-promo {
    text-align: center;
}

.sidebar-promo img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
}

.sidebar-promo h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sidebar-promo p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Lobby Content */
.lobby-content {
    flex-grow: 1;
}

.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lobby-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.lobby-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.view-btn.active span {
    background-color: white;
}

.grid-icon, .list-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.grid-icon::before,
.grid-icon::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: var(--text-color);
}

.grid-icon::before {
    top: 0;
    left: 0;
}

.grid-icon::after {
    top: 0;
    right: 0;
}

.grid-icon span::before,
.grid-icon span::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: var(--text-color);
}

.grid-icon span::before {
    bottom: 0;
    left: 0;
}

.grid-icon span::after {
    bottom: 0;
    right: 0;
}

.list-icon::before,
.list-icon::after {
    content: '';
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    background-color: var(--text-color);
}

.list-icon::before {
    top: 3px;
}

.list-icon::after {
    top: 9px;
}

.list-icon span {
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    top: 15px;
    background-color: var(--text-color);
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.room-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.room-card.featured {
    border: 2px solid var(--accent-color);
}

.featured-tag {
    position: absolute;
    top: 10px;
    right: 0;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    z-index: 1;
}

.room-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.room-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.room-type {
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--bg-color);
    padding: 3px 8px;
    border-radius: 20px;
}

.room-image {
    position: relative;
}

.room-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.online {
    background-color: var(--success-color);
}

.status-indicator.soon {
    background-color: var(--warning-color);
}

.room-info {
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-light);
}

.info-value {
    font-weight: 600;
}

.countdown {
    color: var(--danger-color);
}

.room-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.load-more {
    text-align: center;
    margin: 30px 0;
}

/* How to Play Section */
.how-to-play {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Special Tournaments */
.special-tournaments {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.tournament-banner {
    display: flex;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tournament-banner img {
    width: 40%;
    object-fit: cover;
}

.tournament-content {
    padding: 30px;
    flex-grow: 1;
}

.tournament-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.tournament-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tournament-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.tournament-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.tournament-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Newsletter */
.newsletter {
    padding: 40px 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 1rem;
    opacity: 0.9;
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 10px;
}

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

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.footer-column ul li a {
    opacity: 0.7;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom p:first-child {
    margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .lobby-layout {
        flex-direction: column;
    }
    
    .lobby-sidebar {
        width: 100%;
    }
    
    .tournament-banner {
        flex-direction: column;
    }
    
    .tournament-banner img {
        width: 100%;
        height: 200px;
    }
    
    .room-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .cta-buttons {
        display: none;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tournament-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo {
        min-width: auto;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-column {
        width: 100%;
    }
}
