/* Container & Social Card */
.asm-social-grid {
    max-width: 480px;
    margin: 0 auto;
    padding: 10px;
    direction: rtl;
    font-family: inherit;
}

.asm-social-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* Media Carousel */
.asm-card-media-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.asm-media-carousel {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.asm-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.asm-slide img, .asm-slide video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

.asm-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.asm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.asm-dot.active {
    background: #fff;
    width: 16px;
    border-radius: 4px;
}

/* Action Bar (Below Post) */
.asm-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}

.asm-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: 14px;
    color: #444;
    transition: transform 0.15s ease;
}

.asm-icon-btn:active {
    transform: scale(0.88);
}

.asm-heart-icon, .asm-comment-icon {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #262626;
    stroke-width: 2;
    transition: all 0.2s ease;
}

/* Liked Red State */
.asm-like-btn.liked .asm-heart-icon {
    fill: #ed4956;
    stroke: #ed4956;
    animation: heartPulse 0.3s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Comment Drawer (Bottom Sheet) */
.asm-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.asm-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.asm-comment-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: 70vh;
    background: #fff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 99999;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.asm-comment-drawer.open {
    transform: translateY(0);
}

.asm-drawer-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.asm-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.asm-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.asm-comment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f9f9f9;
}

.asm-comment-content strong {
    display: block;
    font-size: 13px;
    color: #333;
}

.asm-comment-content p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.asm-comment-date {
    font-size: 10px;
    color: #aaa;
}

/* Comment Mini Heart */
.asm-comment-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 11px;
}

.asm-heart-mini {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #888;
    stroke-width: 2;
}

.asm-comment-like-btn.liked .asm-heart-mini {
    fill: #ed4956;
    stroke: #ed4956;
}

/* Comment Input Area */
.asm-comment-form {
    display: flex;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.asm-comment-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
}

.asm-comment-form button {
    background: #0095f6;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    margin-right: 8px;
    font-size: 13px;
    cursor: pointer;
}
