/**
 * Quest Module Styles
 * 
 * Стили для виджета квеста
 */

.pch-quest-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pch-quest-widget .quest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.pch-quest-widget .quest-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.pch-quest-widget .quest-header .quest-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.pch-quest-widget .quest-progress {
    margin-bottom: 20px;
}

.pch-quest-widget .quest-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pch-quest-widget .quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.pch-quest-widget .quest-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.pch-quest-widget .quest-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pch-quest-widget .quest-stats-item {
    text-align: center;
}

.pch-quest-widget .quest-stats-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.pch-quest-widget .quest-stats-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.pch-quest-widget .quest-stats-value.quest-earned {
    color: #28a745;
}

.pch-quest-widget .quest-stats-value.quest-remaining {
    color: #667eea;
}

.pch-quest-widget .quest-tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pch-quest-widget .quest-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.pch-quest-widget .quest-task-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.pch-quest-widget .quest-task-item.completed {
    background: #e8f5e9;
    border-left-color: #28a745;
    opacity: 0.8;
}

.pch-quest-widget .quest-task-info {
    flex: 1;
}

.pch-quest-widget .quest-task-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pch-quest-widget .quest-task-description {
    font-size: 13px;
    color: #666;
}

.pch-quest-widget .quest-task-reward {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    white-space: nowrap;
}

.pch-quest-widget .quest-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Уведомления */
.pch-quest-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #28a745;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 500;
    display: none;
    animation: slideInRight 0.3s ease;
}

.pch-quest-notification.pch-quest-notification-success {
    background: #28a745;
}

.pch-quest-notification.pch-quest-notification-error {
    background: #dc3545;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Уведомление о бонусе за регистрацию на карточке объекта */
.pch-registration-bonus-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 14px;
}

.pch-registration-bonus-notice .pch-bonus-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.pch-registration-bonus-notice .pch-bonus-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pch-registration-bonus-notice .pch-bonus-text strong {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.pch-registration-bonus-notice .pch-bonus-text span {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
}

.pch-registration-bonus-notice .pch-bonus-button {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #fff;
    color: #667eea;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pch-registration-bonus-notice .pch-bonus-button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Адаптивность */
@media (max-width: 768px) {
    .pch-quest-widget {
        padding: 15px;
    }

    .pch-quest-widget .quest-stats {
        flex-direction: column;
        gap: 10px;
    }

    .pch-quest-widget .quest-task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pch-quest-widget .quest-task-reward {
        align-self: flex-end;
    }

    .pch-registration-bonus-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pch-registration-bonus-notice .pch-bonus-button {
        width: 100%;
        text-align: center;
    }
    
    .quest-telegram-btn {
        width: 100%;
        justify-content: center !important;
    }
}

/* Кнопка подключения Telegram в квесте */
.quest-telegram-btn:hover {
    background: linear-gradient(135deg, #006699 0%, #1a8ec0 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.quest-telegram-btn svg {
    flex-shrink: 0;
}

