/* Стили для шорткода игр по отдельному провайдеру */

.spg-single-provider-games {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.spg-single-provider-games h2 {
    color: #ffb300;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.spg-single-provider-games h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffb300;
    border-radius: 2px;
}

.spg-provider-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #23242a;
    border-radius: 10px;
    border: 1px solid #444;
}

.spg-provider-header h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.spg-provider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.spg-provider-row h3 {
    flex: 1;
    min-width: 200px;
}

.spg-provider-jackpot {
    color: #ffb300;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    flex-shrink: 0;
}

.spg-provider-updated {
    color: #999;
    font-size: 12px;
}

.spg-provider-history-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.spg-provider-history-btn:hover {
    background: #17a2b8;
    border-color: #17a2b8;
}

.spg-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.spg-game-card {
    background: #23242a;
    border: 1px solid #444;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.spg-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: #ffb300;
}

.spg-game-header {
    padding: 15px 20px;
    background: #2a2b32;
    border-bottom: 1px solid #444;
}

.spg-game-name {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.spg-game-content {
    padding: 20px;
}

.spg-game-jackpot {
    background: linear-gradient(135deg, #ffb300, #ff8c00);
    color: #000;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(255, 179, 0, 0.3);
}

.spg-game-no-jackpot {
    background: #444;
    color: #999;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}



.spg-game-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.spg-action-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 100px;
}

.spg-history-btn:hover {
    background: #17a2b8;
    border-color: #17a2b8;
}

.spg-stats-btn:hover {
    background: #1e88e5;
    border-color: #1e88e5;
}

.spg-provider-history-btn:hover {
    background: #17a2b8;
    border-color: #17a2b8;
}

.spg-games-info {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
}

.spg-error {
    background: #ff4444;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}



#spg-history-header {

    background: #2c2c2c;

}

#spg-history-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

#spg-history-average {
    color: #ffb300;
    font-size: 14px;
    font-weight: 600;
}

#spg-history-content {
    padding: 20px;
}

#spg-stats-header {
    padding: 20px;
    background: #f5f2ed;
    border-bottom: 1px solid #e0dccc;
}

#spg-stats-title {
    color: #4a4a4a;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#spg-stats-modal-body {
    color: #4a4a4a;
}

/* Специальные стили для модального окна статистики */
#spg-stats-modal .jackpots-modal-content {
    background-color: #f5f2ed !important;
}

#spg-stats-modal .stats-container {
    background-color: transparent !important;
    color: #4a4a4a !important;
    padding: 0 !important;
    border-radius: 5px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

#spg-stats-modal .stats-header {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #c0392b !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e74c3c !important;
    margin-bottom: 15px !important;
}

#spg-stats-modal .stats-header.recent-wins {
    margin-top: 25px !important;
}

#spg-stats-modal .stats-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 8px 0 !important;
    font-size: 14px !important;
    border-bottom: 1px solid #e0dccc !important;
}

#spg-stats-modal .stats-row:last-child {
    border-bottom: none !important;
}

#spg-stats-modal .stats-row span:first-child {
    font-weight: 600 !important;
}

#spg-stats-modal .stats-row span:last-child {
    font-weight: 500 !important;
}

#spg-provider-history-header {

    background: #2c2c2c;
    text-align: center;
}

#spg-provider-history-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

#spg-provider-history-average {
    color: #ffb300;
    font-size: 14px;
    font-weight: 600;
}

#spg-provider-history-content {
    padding: 20px;
}



/* Адаптивность */
@media (max-width: 768px) {
    .spg-provider-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .spg-provider-row h3 {
        min-width: auto;
    }

    .spg-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .spg-game-card {
        margin-bottom: 15px;
    }

    .spg-game-actions {
        flex-direction: column;
        gap: 8px;
    }

    .spg-action-btn {
        max-width: none;
    }


}

@media (max-width: 480px) {
    .spg-games-grid {
        grid-template-columns: 1fr;
    }

    .spg-game-name {
        font-size: 14px;
    }

    .spg-game-jackpot {
        font-size: 16px;
        padding: 10px 12px;
    }

    .spg-action-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
}