/* Shop Timeline CSS */
.timeline-container {
    max-width: 700px;
    margin: 0 auto;
}

.timeline-post {
    background: rgba(35, 35, 35, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-post:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.post-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.post-author-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-author-name {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.post-time {
    font-size: 0.75rem;
    color: #888;
}

.post-content {
    padding: 0 16px 16px 16px;
    color: #ddd;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-actions {
    padding: 8px 16px;
    display: flex;
    gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    background: transparent;
    border: none;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-btn.active.like {
    color: #0dcaf0;
}

.action-btn.active.haha {
    color: #ffc107;
}

.action-btn.active.heart {
    color: #ff4757;
}

.post-comments {
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.comment-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-bubble {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 12px;
    flex-grow: 1;
}

.comment-user {
    font-weight: 500;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 0.85rem;
    color: #ccc;
}

.post-box.fb-style {
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.post-box-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.post-box-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-box-trigger {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 16px;
    cursor: text;
    transition: background 0.2s;
}

.post-box-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.post-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    resize: none;
    min-height: 24px;
    font-size: 0.95rem;
    padding: 0;
}

.post-input.expanded {
    outline: none;
    min-height: 80px;
}

.post-box-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 12px 0;
}

.post-box-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.post-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: #fff;
    background: transparent;
    border: none;
    font-weight: 500;
}

.post-action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.post-action-btn i {
    font-size: 1.4rem;
}

.post-btn {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    margin-left: auto;
}

.post-btn:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}

.tab-item {
    padding: 8px 24px;
    color: #888;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.tab-item.active {
    color: #0dcaf0;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0dcaf0;
    box-shadow: 0 0 10px #0dcaf0;
}

.post-image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    position: relative;
    display: none;
}

/* Hidden Comments Styles */
.comment-item-group.hidden-comment {
    display: none !important;
}

.view-more-comments {
    cursor: pointer;
    font-size: 0.8rem;
    color: #888;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 5px;
    display: block;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.view-more-comments:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Threaded Comments */
.comment-item-group {
    position: relative;
    margin-bottom: 12px;
}

.comment-replies {
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 12px;
    margin-left: 20px !important;
}

.reply-indicator {
    background: rgba(13, 110, 253, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lightbox-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
}

.lightbox-container:active {
    cursor: grabbing;
}

#lightboxImg {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.1s ease-out;
    user-select: none;
    will-change: transform;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    pointer-events: none;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.link-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.link-preview-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(13, 110, 253, 0.5);
}

.link-preview-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.link-preview-info {
    flex-grow: 1;
}

.link-preview-url {
    font-size: 0.75rem;
    color: #888;
    text-transform: lowercase;
}

.link-preview-title {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.post-link-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 100%;
    margin-top: 10px;
    display: none;
}