/* Container & Reset */
.social-app-container, .social-comment-sheet, .social-comment-sheet * {
    box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.social-app-container {
    display: flex; flex-direction: column; width: 100%; background-color: #f0f2f5;
    padding-bottom: 60px; overflow-x: hidden; min-height: 100vh;
}

/* Card Shell */
.card-shell {
    background: white; width: 100%; margin-bottom: 20px;
    border-top: 1px solid #dbdbdb; border-bottom: 1px solid #dbdbdb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1); min-height: 520px; contain: content;
    display: flex; flex-direction: column;
}

/* Header */
.header { display: flex; align-items: center; padding: 12px; height: 60px; }
.avatar-circle {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 15px; margin-right: 12px; flex-shrink: 0; text-transform: uppercase;
}
.user-info h4 { margin: 0; font-size: 14px; color: #262626; font-weight: 600; }
.user-info p { margin: 0; font-size: 12px; color: #666; margin-top: 1px; }

/* Slider */
.slider-container { position: relative; width: 100%; aspect-ratio: 4/5; background: #f8f8f8; overflow: hidden; }
.slider {
    display: flex; overflow-x: auto; height: 100%; width: 100%;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; touch-action: pan-x pan-y;
}
.slider::-webkit-scrollbar { display: none; }
.slide {
    min-width: 100%; width: 100%; height: 100%; flex-shrink: 0; scroll-snap-align: start;
    display: flex; align-items: center; justify-content: center; background: #000; position: relative;
}
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Badges */
.slide-counter {
    position: absolute; top: 15px; right: 15px; background: rgba(38, 38, 38, 0.8); color: white;
    padding: 5px 12px; border-radius: 16px; font-size: 12px; pointer-events: none; z-index: 10; font-weight: 600;
}
.pagination {
    position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; pointer-events: none; z-index: 10;
}
.dot { width: 6px; height: 6px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; transition: 0.3s; }
.dot.active { background: #fff; transform: scale(1.2); }

/* Actions */
.action-bar { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; height: 50px; }
.icons-left { display: flex; gap: 16px; align-items: center; }
.icon-wrap { display: flex; align-items: center; cursor: pointer; gap: 6px; }
.icon-btn { background:none; border:none; padding:0; cursor:pointer; }
.icon-btn svg { width: 26px; height: 26px; transition: transform 0.1s; }

/* Heart Animation */
.like-icon path { fill: white; stroke: #262626; stroke-width: 3px; }
.icon-btn.liked .like-icon path { fill: #ed4956; stroke: #ed4956; animation: likeBounce 0.3s ease-in-out; }
@keyframes likeBounce { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

.content { padding: 0 14px 14px 14px; font-size: 14px; line-height: 1.5; color: #262626; }

/* Comments */
.social-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 999998; opacity: 0; visibility: hidden; transition: 0.3s; }
.social-overlay.active { opacity: 1; visibility: visible; }
.social-comment-sheet {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 75vh; background: white;
    z-index: 999999; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform 0.3s; display: flex; flex-direction: column;
}
.social-comment-sheet.active { transform: translateY(0); }
.sheet-header { padding: 15px; text-align: center; border-bottom: 1px solid #efefef; font-weight: 700; position: relative; color: #000; }
.close-btn { position: absolute; right: 15px; top: 12px; font-size: 28px; cursor: pointer; color: #555; }
.sheet-body { flex: 1; overflow-y: auto; padding: 15px; color: #000; }
.comment-item { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.comment-item .avatar-circle { width: 32px; height: 32px; font-size: 12px; border-radius: 50%; color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.comment-text-bubble { background: #f1f2f6; padding: 10px 14px; border-radius: 4px 14px 14px 14px; font-size: 14px; flex: 1; color: #262626; }
.sheet-footer { padding: 10px 15px 20px 15px; border-top: 1px solid #efefef; background: #fff; }
.input-group { display: flex; gap: 10px; align-items: center; }
.input-group input { flex: 1; padding: 12px; border: 1px solid #dbdbdb; border-radius: 24px; outline: none; background: #fafafa; color: #000; }
.input-group button { color: #0095f6; border: none; background: none; font-weight: 600; cursor: pointer; }
