/* Стили для комментариев в классическом стиле */
/* Created: 2024-12-19 - Дополнительные стили для комментариев */
/* Updated: 2024-12-19 - Стили точно как в прошлом проекте */

.comments-section {
    border-top: 1px solid #262626;
    padding: 16px;
    background-color: #1a1a1a;
}

.comments-list {
    margin-bottom: 16px;
}

.comment-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #262626;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-user {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-username {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}

.comment-username:hover {
    text-decoration: underline;
}

.comment-time {
    color: #8e8e8e;
    font-size: 12px;
}

.comment-text {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-form {
    margin-top: 16px;
}

.comment-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-input {
    flex: 1;
    background-color: #262626;
    border: 1px solid #404040;
    border-radius: 20px;
    padding: 8px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.comment-input:focus {
    border-color: #0095f6;
}

.comment-input::placeholder {
    color: #8e8e8e;
}

.comment-submit-btn {
    background-color: #0095f6;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.comment-submit-btn:hover {
    background-color: #0077cc;
}

.comment-submit-btn:disabled {
    background-color: #404040;
    cursor: not-allowed;
}

.no-comments {
    color: #8e8e8e;
    text-align: center;
    font-style: italic;
    padding: 20px 0;
}

/* Стили для лайкнутых постов */
.action-btn.liked {
    color: #FF1F44;
}

.action-btn.liked .like-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.action-btn.liked span {
    color: #FF1F44;
}

/* Анимация для комментариев */
.comments-section {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для модального окна скриншота */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.screenshot-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.screenshot-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10001;
}

.screenshot-close {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

.screenshot-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.screenshot-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.screenshot-caption {
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Стили для одиночных изображений в постах */
.media-carousel.single-image {
    display: block;
    overflow: visible;
}

.media-carousel.single-image .media-item.single {
    width: 100%;
    cursor: pointer;
}

.media-carousel.single-image .media-item.single img {
    width: 100% !important;
    height: 300px !important;
    object-fit: cover;
    border-radius: 10px;
}

/* Убираем gap для одиночных изображений */
.media-carousel.single-image {
    gap: 0;
}
