/* Стили для плагина GamiPress Next Rank Progress */

.gamipress-next-rank-progress {
    max-width: 800px;
    font-family: inherit;
    box-shadow: none;
}

/* Секция текущих поинтов */
.current-points-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Секция поинтов для следующего уровня */
.next-level-points-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-points-section h3,
.next-level-points-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
}

.current-points-section h3 {
    border-bottom: 2px solid #27ae60;
} 

.next-level-points-section h3 {
    border-bottom: 2px solid #f39c12;
}

.points-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.points-label {
    font-weight: 500;
    color: #555;
}

.points-value {
    font-weight: 700;
    color: #27ae60;
    font-size: 16px;
}

.rank-progress-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rank-progress-item h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.rank-progress-item p {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

.rank-progress-item strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Стили для прогресс-бара */
.progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 5px 0;
    border: none;
}

.progress-bar {
    height: 100%;
    background-color: #007cba;
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
    border: none;
}

.progress-text {
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Альтернативный стиль для текста, если он должен быть внутри контейнера */
.progress-bar-container .progress-text {
    position: absolute;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Анимации прогресс-бара */
.progress-bar.animation-slide {
    transition: width 0.8s ease-in-out;
}

.progress-bar.animation-fade {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.progress-bar.animation-bounce {
    animation: bounce 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Направления заполнения */
.progress-bar.direction-left {
    transform-origin: left;
}

.progress-bar.direction-right {
    transform-origin: right;
    transform: scaleX(-1);
}

.progress-bar.direction-center {
    transform-origin: center;
}

/* Скрытие текста процента если отключено */
.progress-text.hidden {
    display: none;
}

/* Стили для требований */
.requirement-item {
    border-radius: 5px;
}

.requirement-title {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #2c3e50;
}

.points-progress {
/*    margin-top: 10px; */
}

/* Текстовый прогресс-бар */
.text-progress-bar {
    margin-bottom: 8px;
}

.progress-fraction {
    font-weight: 700;
    color: #3498db;
    font-size: 16px;
}

.points-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.points-info span {
    display: inline-block;
}

.points-required {
    color: #e74c3c;
}

.points-current {
    color: #27ae60;
}

.points-left {
    color: #f39c12;
}

.points-current-rank {
    color: #9b59b6;
}

/* Максимальный ранг */
.max-rank-reached {
    background: #e8f5e8;
    border-left-color: #27ae60;
}

.max-rank-reached p {
    color: #27ae60;
    font-weight: 600;
}

/* Различные макеты */
.gamipress-layout-compact .rank-progress-item {
    padding: 15px;
    margin-bottom: 10px;
}

.gamipress-layout-compact h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.gamipress-layout-detailed .rank-progress-item {
    padding: 25px;
    margin-bottom: 20px;
}

.gamipress-layout-detailed h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .gamipress-next-rank-progress {
        max-width: 100%;
    }
    
    .rank-progress-item {
        padding: 15px;
    }
    
    .rank-progress-item h4 {
        font-size: 16px;
    }
    
    .points-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .current-points-section {
        padding: 15px;
    }
} 

/* Стили для отображения требований поинтов для каждого ранга */
.rank-points-info {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rank-points-info h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.rank-point-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

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

.rank-point-item.current-rank {
    background-color: #e3f2fd;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0 -12px;
    font-weight: 600;
    color: #1976d2;
}

.rank-name {
    color: #495057;
}

.rank-points {
    font-weight: 600;
    color: #007cba;
}

.current-rank .rank-points {
    color: #1976d2;
} 

 