/* TikTok Parody - Social Features (Comments, Likes, Share) */

/* Comments Modal Specific Styles */
.comments-modal-content {
    max-width: 600px;
    max-height: 80vh;
}

.comments-list {
    min-height: 300px;
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition);
}

.comment-action-btn:hover {
    color: var(--text-primary);
}

/* Comment Input Container */
.comment-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

#comment-input {
    flex: 1;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
}

.submit-comment-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
    flex-shrink: 0;
}

.submit-comment-btn:hover {
    opacity: 0.9;
}

.submit-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty Comments State */
.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.comments-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.comments-empty p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Loading Comments */
.comments-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Profile View Styles */
.profile-view {
    padding-top: 70px;
    overflow-y: auto;
}

.profile-header {
    padding: 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    background: var(--secondary-bg);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
}

.grid-video-item {
    position: relative;
    aspect-ratio: 9 / 16;
    background: var(--secondary-bg);
    cursor: pointer;
    overflow: hidden;
}

.grid-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.grid-video-item:hover img {
    transform: scale(1.05);
}

.grid-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: white;
}

.grid-video-overlay svg {
    width: 16px;
    height: 16px;
}

/* Empty Profile Grid */
.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.profile-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.profile-empty p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Share Options (if using native dialog fallback) */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}

.share-option:hover {
    background: var(--secondary-bg);
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .profile-view {
        padding-top: 60px;
    }
    
    .profile-header {
        padding: 24px 16px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        padding: 1px;
    }
}

@media (max-width: 480px) {
    .comments-modal-content {
        max-height: 90vh;
    }
    
    .comments-list {
        max-height: 60vh;
    }
}
