/* ================================
   BET LIVRE - PALPITES PAGE STYLES
   Complementary styles for dashboard dark theme
   ================================ */

/* Ensure palpite cards use dashboard styling with better organization */
.game-card {
    /* Inherit dashboard game-card styles */
    opacity: 1 !important;
    transform: translateY(0) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Better card header organization */
.game-header {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.game-info {
    flex: 1;
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 0.5rem;
}

.team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.team-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.2;
}

.vs {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 10px;
    margin: 0 1rem;
}

/* Game details with better spacing */
.game-details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.tournament {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

.game-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Status badge positioning */
.game-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Status badges for palpites with better visibility */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 2px solid transparent;
}

.status-pendente {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.status-ganho {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.4);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.status-perdido {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.4);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* Card content with better organization */
.game-content {
    flex: 1;
    padding: 1.25rem;
    padding-top: 0;
}

/* Palpite-specific card content */
.palpite-summary {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.palpite-summary h6 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.predictions-summary {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.predictions-count {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.predictions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
}

.predictions-list i {
    margin-right: 0.375rem;
    font-size: 0.9rem;
}

/* Card actions with better spacing */
.game-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    margin-top: auto;
}

.palpite-date {
    flex: 1;
}

.palpite-date small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Button styling for cards */
.game-actions .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
    font-weight: 500;
}

/* Modal enhancements for better readability */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.01);
}

/* Better text contrast in modal */
.modal-body h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-body h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Improved text visibility for game details */
.modal-body .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

.modal-body .text-muted i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Enhanced close button with better visibility */
.btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    padding: 0.75rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
    color: #dc3545;
    transform: scale(1.05);
}

.btn-close:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
    outline: none;
}

/* Better styling for palpite details section */
.palpite-detail h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.palpite-detail .row {
    align-items: center;
}

.palpite-detail .col-md-8 p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.palpite-detail .col-md-4 {
    text-align: end;
}

.modal-body .bet-category {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.modal-body .bet-category h6 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.modal-body .bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-body .bet-item:last-child {
    border-bottom: none;
}

.modal-body .bet-item span:first-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.modal-body .bet-item span:last-child {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Empty State */
.no-palpites {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.no-palpites i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading Animation for Palpites */
.palpite-skeleton {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.palpite-skeleton .skeleton-line {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.palpite-skeleton .skeleton-line.short {
    width: 60%;
}

.palpite-skeleton .skeleton-line.medium {
    width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teams {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .team {
        justify-content: center;
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .vs {
        margin: 0;
        align-self: center;
    }
    
    .game-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .game-actions .btn {
        width: 100%;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body .bet-category {
        padding: 1rem;
    }
    
    .modal-body .bet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Custom Scrollbar for Dark Theme */
.content-area::-webkit-scrollbar {
    width: 6px;
}

.content-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.8);
}