/**
 * VIPsAllowed - Post Styles
 */

/* Post Box */
.post-box {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

.post-box .avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.post-box .text-dark-r {
    color: inherit;
    text-decoration: none;
}

.post-box .text-dark-r:hover {
    text-decoration: none;
}

.post-box .text-hover:hover {
    text-decoration: underline;
}

/* Post Content */
.post-content-data {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-content-data.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Post Media */
.post-media img,
.post-media video {
    max-height: 600px;
    object-fit: contain;
    background: #f8f9fa;
}

.post-media .swiper-container {
    width: 100%;
}

.post-media .swiper-slide img,
.post-media .swiper-slide video {
    width: 100%;
}

.post-media .swiper-button {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-media .swiper-button::after {
    display: none;
}

/* Post Locked */
.post-locked-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.locked-content-box {
    background: rgba(255,255,255,0.95);
    max-width: 300px;
}

/* Post Footer Actions */
.h-pill {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.h-pill:hover {
    background-color: rgba(0,0,0,0.05);
}

.h-pill.active {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.h-pill.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.h-pill.disabled:hover {
    background-color: transparent;
}

.icon-medium {
    font-size: 1.25rem;
}

.icon-large {
    font-size: 1.5rem;
}

.icon-xlarge {
    font-size: 3rem;
}

/* Post Count Details */
.post-count-details {
    font-size: 0.875rem;
}

.post-count-details a {
    color: inherit;
}

/* Post Comments */
.post-comments-wrapper .rounded-circle,
.new-post-comment-area .rounded-circle {
    height: 50px;
    width: 50px;
}

.post-comment .separator {
    right: 1rem;
}

.comment-textarea {
    height: 45px !important;
    min-height: 45px !important;
    border-radius: 20px !important;
    padding-top: 10px !important;
    overflow: hidden !important;
}

/* Comment Box */
.comment-box {
    transition: background-color 0.2s;
}

.comment-box:hover {
    background-color: rgba(0,0,0,0.02);
}

.comment-content {
    display: inline-block;
    max-width: 100%;
}

.comment-actions a {
    transition: color 0.2s;
}

.comment-actions a:hover {
    color: var(--primary) !important;
}

/* Loading Skeleton */
.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 12px;
    width: 150px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Badges */
.badge.bg-gradient-faded-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

.badge.bg-gradient-faded-primary {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
    color: var(--primary);
}

/* Dropzone */
.dropzone-previews.dropzone {
    min-height: 0px !important;
    border: none !important;
}

.dropzone .dz-preview.dz-image-preview {
    background: transparent !important;
}

.dropzone .dz-preview:hover .dz-image img {
    -webkit-filter: blur(2px) !important;
    filter: blur(2px) !important;
}

.dropzone .dz-preview .dz-filename {
    display: none !important;
}

.dropzone .dz-preview {
    min-height: unset;
}

/* P-pill buttons */
.p-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: background-color 0.2s;
}

.p-pill:hover {
    background: rgba(0,0,0,0.1);
}

.p-pill-text {
    width: auto;
    border-radius: 18px;
    padding: 0 1rem;
}

.p-pill-white {
    background: rgba(255,255,255,0.9);
}

/* Pointer cursor utility */
.pointer-cursor {
    cursor: pointer;
}

/* Dark Theme Adjustments */
.dark .post-box {
    background: #1a1a2e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dark .h-pill:hover {
    background-color: rgba(255,255,255,0.1);
}

.dark .comment-box:hover {
    background-color: rgba(255,255,255,0.05);
}

.dark .comment-content.bg-light {
    background: #2d2d44 !important;
}

.dark .p-pill {
    background: rgba(255,255,255,0.1);
}

.dark .p-pill:hover {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 576px) {
    .post-comments-wrapper .rounded-circle,
    .new-post-comment-area .rounded-circle {
        height: 36px;
        width: 36px;
    }
}
