/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #2d5016;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #2d5016;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    font-weight: bold;
    color: #fff;
}

.credits {
    background-color: #4a7c59;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.btn-add-credit {
    background-color: #ffd700;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s;
}

.btn-add-credit:hover {
    background-color: #ffed4e;
}

.btn-logout {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c82333;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login, .btn-register {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-login {
    background-color: #007bff;
    color: #fff;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-register {
    background-color: #28a745;
    color: #fff;
}

.btn-register:hover {
    background-color: #1e7e34;
}

/* Hero Section - Layout Simples */
.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.welcome-box {
    background-color: rgba(45, 80, 22, 0.9);
    padding: 25px 35px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.welcome-box h1 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.subtitle-box {
    background-color: rgba(45, 80, 22, 0.8);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.subtitle-box p {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.cta-box {
    background-color: rgba(255, 215, 0, 0.9);
    padding: 20px 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.cta-box p {
    font-size: 18px;
    color: #000;
    font-weight: bold;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Games Section */
.games-section {
    background-color: #2d5016;
    padding: 40px 0;
    min-height: 100vh;
    position: relative;
}

.games-section .container {
    position: relative;
}

/* Botão Ver Jogos Anteriores - Canto Superior Direito */
.previous-games-btn-container {
    position: absolute;
    top: -50px;
    right: 0;
    z-index: 10;
}

.btn-previous-games {
    background-color: #28a745;
    color: white;
    border: 2px solid #000;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-previous-games:hover {
    background-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Layout Principal */
.games-layout {
    display: flex;
    gap: 30px;
    margin-top: 80px;
    align-items: flex-start;
}

/* Coluna da Esquerda - Jogos */
.games-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Subseções de Jogos */
.games-subsection {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.subsection-title {
    color: #2d5016;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #000;
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.game-card {
    background-color: #f8f9fa;
    border: 3px solid #000;
    border-radius: 15px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background-color: #e8f5e8;
}

.game-card.selected {
    border-style: dashed;
    background-color: #fff3cd;
}

.game-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}

.team-name {
    font-weight: bold;
    color: #333;
    text-align: center;
    font-size: 14px;
}

.vs {
    font-size: 20px;
    font-weight: bold;
    color: #666;
}

.game-info {
    margin-bottom: 15px;
    text-align: center;
}

.game-info p {
    margin-bottom: 6px;
    color: #666;
    font-size: 13px;
}

.game-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.btn-bet, .btn-view-bets {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-bet {
    background-color: #28a745;
    color: #fff;
}

.btn-bet:hover {
    background-color: #1e7e34;
}

.btn-bet:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-view-bets {
    background-color: #007bff;
    color: #fff;
}

.btn-view-bets:hover {
    background-color: #0056b3;
}

/* Coluna da Direita - Ganhadores */
.winners-column {
    flex: 1;
    max-width: 350px;
}

.winners-panel-inline {
    background-color: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 3px solid #2d5016;
    height: fit-content;
}

.winners-header-inline {
    background-color: #2d5016;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    justify-content: center;
}

.winners-content-inline {
    color: #333;
}

.winner-item-inline {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.winner-name-inline {
    font-weight: bold;
    color: #2d5016;
    font-size: 15px;
    flex: 1;
}

.winner-amount-inline {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
    flex: 1;
}

.winner-status-inline {
    font-size: 12px;
    color: #dc3545;
    font-weight: bold;
    flex: 1;
}

.no-winners-inline {
    text-align: center;
    color: #666;
    padding: 30px 20px;
    font-size: 16px;
}

.no-winners-inline p {
    margin-bottom: 10px;
}

.no-winners-inline i {
    color: #ff69b4;
    margin-top: 15px;
    font-size: 24px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    color: #333;
    animation: slideIn 0.3s;
}

.modal-header {
    background-color: #2d5016;
    color: #fff;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.7;
}

.modal form {
    padding: 20px 30px 30px 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #2d5016;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #2d5016;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1e3a0f;
}

/* Credit Modal Styles */
.credit-info {
    background-color: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 30px;
    text-align: center;
}

.credit-info p {
    margin: 0;
    color: #2d5016;
    font-weight: bold;
}

.credit-info i {
    margin-right: 8px;
    color: #28a745;
}

.credit-options {
    padding: 0 30px;
}

.credit-options h4 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.credit-btn {
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.credit-btn:hover {
    border-color: #2d5016;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.credit-btn.selected {
    border-color: #2d5016;
    background-color: #2d5016;
    color: #fff;
}

.credit-value {
    font-size: 16px;
    font-weight: bold;
    color: #2d5016;
}

.credit-btn.selected .credit-value {
    color: #fff;
}

.credit-credits {
    font-size: 12px;
    color: #666;
}

.credit-btn.selected .credit-credits {
    color: #fff;
}

.selected-credit {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #2d5016;
    text-align: center;
    margin: 20px 30px;
}

.selected-info h4 {
    color: #2d5016;
    margin-bottom: 10px;
}

.selected-info p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: bold;
}

.btn-pay {
    background-color: #00a650;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.btn-pay:hover {
    background-color: #008f45;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-pay:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Bet Modal Specific Styles */
.bet-info {
    padding: 30px;
}

.bet-info .teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.bet-info .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bet-info .team img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.bet-info .vs {
    font-size: 20px;
    font-weight: bold;
    color: #666;
}

.bet-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bet-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.bet-option:hover {
    border-color: #2d5016;
    background-color: #e8f5e8;
}

.score-input-section {
    width: 100%;
    text-align: center;
}

.score-input-section h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.score-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.score-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score-input-group label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.score-input-group input {
    width: 60px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.score-input-group input:focus {
    border-color: #28a745;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.vs-separator {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    margin: 0 10px;
}

.score-preview {
    background-color: #e8f5e8;
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #28a745;
    margin-top: 10px;
}

.score-preview span {
    color: #155724;
    font-size: 16px;
}

.score-preview strong {
    font-size: 18px;
    color: #28a745;
}

.bet-amount {
    margin-bottom: 20px;
}

.bet-amount label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.bet-amount input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.forgot-password-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    text-align: center;
}

.forgot-password-btn:hover {
    color: #0056b3;
}

/* Bets List */
.bets-list {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.bet-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #2d5016;
}

.bet-user {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.bet-details {
    color: #666;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .games-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .winners-column {
        max-width: 100%;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .previous-games-btn-container {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 40vh;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .welcome-box h1 {
        font-size: 28px;
    }
    
    .subtitle-box p {
        font-size: 16px;
    }
    
    .cta-box p {
        font-size: 14px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .games-subsection {
        padding: 20px;
    }
    
    .subsection-title {
        font-size: 20px;
    }
    
    .modal-content {
        margin: 1% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal form {
        padding: 15px 20px 20px 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .bet-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 35vh;
    }
    
    .welcome-box {
        padding: 15px 20px;
    }
    
    .welcome-box h1 {
        font-size: 22px;
    }
    
    .subtitle-box {
        padding: 15px 20px;
    }
    
    .subtitle-box p {
        font-size: 14px;
    }
    
    .cta-box {
        padding: 15px 20px;
    }
    
    .cta-box p {
        font-size: 12px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .game-card {
        padding: 15px;
    }
    
    .game-teams {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs {
        order: -1;
    }
    
    .modal form {
        padding: 10px 15px 15px 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .bet-info {
        padding: 20px;
    }
}

/* Botão do Painel Admin removido - acesso via /admin */
.admin-link {
    display: none !important;
}

.admin-btn {
    display: none !important;
}