/**
 * Стили для таба "Мои комментарии"
 * Version: 1.2 - Добавлена цитата в ответах
 */

/* ========== КАРТОЧКА КОММЕНТАРИЯ ========== */
.user-comment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.user-comment-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(252, 163, 17, 0.3);
}

.comment-card__header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.comment-card__avatar .avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.comment-card__author {
    font-weight: 600;
    color: #FCA311;
    font-size: 15px;
}

.comment-card__time {
    font-size: 12px;
    color: #888;
}

.comment-card__location {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #aaa;
}

.location-icon {
    font-size: 14px;
}

.location-text {
    font-size: 13px;
    color: #aaa;
}

.comment-card__text {
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 15px;
    word-break: break-word;
}

.comment-card__text p {
    margin: 0;
}

.comment-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.actions-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.actions-right {
    flex-shrink: 0;
}

.comment-action, .reply-action {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-action:hover, .reply-action:hover {
    background: rgba(252, 163, 17, 0.15);
    color: #FCA311;
}

.like-btn:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}

.dislike-btn:hover:not(:disabled) {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.delete-btn:hover, .delete-reply-btn:hover {
    background: rgba(217, 83, 79, 0.15);
    color: #d9534f;
}

.goto-btn {
    text-decoration: none;
    background: #2c3e50;
    color: #fff !important;
}

.goto-btn:hover {
    background: #FCA311;
    color: #1a1a1a !important;
}

.like-btn:disabled, .dislike-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.deleted-badge {
    font-size: 12px;
    color: #888;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

/* ========== БЛОК ОТВЕТОВ ========== */
.comment-card__replies {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 60px;
}

.replies-header {
    margin-bottom: 12px;
}

.load-replies-btn, .load-more-replies {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #FCA311;
    cursor: pointer;
    transition: all 0.2s;
}

.load-replies-btn:hover, .load-more-replies:hover {
    background: rgba(252, 163, 17, 0.15);
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.replies-load-more {
    text-align: center;
    margin-top: 12px;
}

/* ========== КАРТОЧКА ОТВЕТА ========== */
.user-reply-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px;
}

.user-reply-card:first-child {
    margin-top: 0;
}

.reply-card__header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.reply-card__avatar .avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.reply-card__author {
    font-weight: 500;
    color: #FCA311;
    font-size: 13px;
}

.reply-card__time {
    font-size: 11px;
    color: #888;
}

.reply-card__text {
    color: #ddd;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
    padding-left: 42px;
    word-break: break-word;
}

.reply-card__text p {
    margin: 0;
}

.reply-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-left: 42px;
}

/* ========== ЦИТАТА В ОТВЕТЕ ========== */
.reply-card__quote {
    background: rgba(252, 163, 17, 0.08);
    border-left: 3px solid #FCA311;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0 12px 0;
}

.quote-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #FCA311;
}

.quote-icon {
    font-size: 12px;
}

.quote-author {
    font-weight: 500;
}

.quote-label {
    color: #888;
    font-size: 11px;
}

.quote-text {
    color: #aaa;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.quote-text p {
    margin: 0;
}

/* ========== ФОРМА ОТВЕТА ========== */
.profile-reply-form-container {
    margin-top: 12px;
    margin-bottom: 8px;
}

.profile-reply-form {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.profile-reply-form textarea {
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    resize: vertical;
    font-size: 13px;
    box-sizing: border-box;
}

.profile-reply-form textarea:focus {
    outline: none;
    border-color: #FCA311;
}

.profile-cancel-reply-btn {
    background: #444;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

.profile-cancel-reply-btn:hover {
    background: #555;
}

/* ========== ПАГИНАЦИЯ ========== */
.user-comments-pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.load-more-comments-btn {
    background: rgba(252, 163, 17, 0.15);
    border: 1px solid rgba(252, 163, 17, 0.3);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    color: #FCA311;
    font-size: 14px;
    transition: all 0.2s;
}

.load-more-comments-btn:hover {
    background: rgba(252, 163, 17, 0.25);
    transform: translateY(-2px);
}

.load-more-comments-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== ЗАГРУЗКА И ПУСТОЙ СОСТОЯНИЕ ========== */
.user-comments-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.user-comments-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(252, 163, 17, 0.2);
    border-top-color: #FCA311;
    border-radius: 50%;
    animation: userCommentsSpin 0.6s linear infinite;
}

@keyframes userCommentsSpin {
    to { transform: rotate(360deg); }
}

.user-comments-empty {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.user-comments-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.user-comments-empty h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 8px;
}

.user-comments-empty p {
    font-size: 14px;
    color: #888;
}

/* ========== МОДАЛЬНОЕ ОКНО УДАЛЕНИЯ ========== */
.profile-delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-delete-modal {
    background: #2d2d2d;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

.profile-delete-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #444;
    background: #252525;
}

.profile-delete-modal-header h3 {
    color: #FCA311;
    margin: 0;
    font-size: 18px;
}

.profile-delete-modal-content {
    padding: 24px;
}

.profile-delete-modal-content p {
    color: #ddd;
    margin-bottom: 20px;
}

.delete-warning {
    background: rgba(217, 83, 79, 0.15);
    border-left: 3px solid #d9534f;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.profile-delete-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.profile-delete-cancel {
    background: #444;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-delete-cancel:hover {
    background: #555;
}

.profile-delete-confirm {
    background: #d9534f;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-delete-confirm:hover:not(:disabled) {
    background: #c9302c;
}

.profile-delete-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .user-comment-card {
        padding: 15px;
    }
    
    .comment-card__replies {
        margin-left: 30px;
    }
    
    .comment-card__avatar .avatar {
        width: 38px !important;
        height: 38px !important;
    }
    
    .reply-card__text,
    .reply-card__actions {
        padding-left: 30px;
    }
    
    .reply-card__avatar .avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .comment-card__actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .actions-right {
        align-self: flex-end;
    }
    
    .reply-card__quote {
        padding: 8px 10px;
        margin: 6px 0 10px 0;
    }
    
    .quote-text {
        font-size: 11px;
    }
    
    .profile-delete-modal {
        max-width: 90%;
    }
    
    .profile-delete-modal-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .user-comment-card {
        padding: 12px;
    }
    
    .comment-card__replies {
        margin-left: 20px;
    }
    
    .comment-card__avatar .avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    .comment-card__author {
        font-size: 13px;
    }
    
    .comment-card__time {
        font-size: 10px;
    }
    
    .comment-card__location {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .location-text {
        font-size: 11px;
    }
    
    .comment-card__text {
        font-size: 13px;
    }
    
    .comment-action, .reply-action {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .reply-card__text {
        font-size: 12px;
        padding-left: 24px;
    }
    
    .reply-card__actions {
        padding-left: 24px;
        gap: 6px;
    }
    
    .reply-card__quote {
        padding: 6px 8px;
    }
    
    .quote-header {
        font-size: 11px;
    }
    
    .quote-text {
        font-size: 10px;
    }
    
    .load-more-comments-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}