/* Feed Único Vertical estilo Red Social (Instagram/X) */
.social-feed-container {
    display: flex;
    flex-direction: column;
    gap: 12px; /* reduced gap since borders are top/bottom */
    max-width: 600px;
    margin: 0 auto;
    padding: 10px 0 40px 0;
}

.social-post-card {
    background: #fff;
    border: none;
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    margin-bottom: 8px;
}

.social-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 45px -12px rgba(0, 0, 0, 0.12);
}

.card-fade-in {
    animation: postFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes postFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.post-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.post-user-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
}

.post-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
}

.verified-check {
    color: #3B82F6;
    font-size: 12px;
}

.post-badge-tag {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
}

.post-meta-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.post-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
    flex: 1;
}

.post-price-inline {
    background: #EFF6FF;
    color: #2563EB;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.post-title a:hover {
    color: var(--primary);
}

.post-desc {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

/* Multimedia e Imagen */
.post-media-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
}

.post-media-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    background-color: #0F172A; /* Fondo oscuro por si la imagen es muy alta y hace letterbox */
    display: block;
    transition: transform 0.3s;
}

.post-media-wrapper:hover .post-media-img {
    transform: scale(1.02);
}

.post-price-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Barra de Acciones Sociales */
.post-actions-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
}

.post-action-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    text-decoration: none;
    outline: none;
}

.post-action-btn:hover {
    background: #F1F5F9;
    color: var(--dark);
}

.post-action-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.heart-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: all 0.2s;
}

.post-action-btn.like-btn:hover {
    color: #EF4444;
    background: #FEE2E2;
}

.post-action-btn.like-btn.active {
    color: #EF4444;
}

.post-action-btn.like-btn.active .heart-icon {
    fill: #EF4444;
    stroke: #EF4444;
    transform: scale(1.1);
}

.post-action-btn.wa-social-btn:hover {
    background: #E8F8F0;
    color: #25D366;
}

.post-action-btn.share-btn:hover {
    background: #EFF6FF;
    color: #3B82F6;
}

/* Ajustes Responsivos Móviles */
@media (max-width: 480px) {
    .social-feed-container {
        padding: 5px 0 30px 0;
        gap: 15px;
    }

    .social-post-card {
        border-radius: 12px;
        padding: 14px;
    }

    .post-actions-bar {
        padding-top: 10px;
    }

    .post-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .like-label {
        display: none;
        /* Ocultar texto en móviles para más espacio */
    }
}


/* Extracted from responsive.css (Social Feed Remnants) */


/* Extracted Social */
/* Transiciones interactivas para hilos de comentarios públicos */
.social-comment-input {
    transition: all 0.2s ease-in-out;
}

.social-comment-input:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Bandeja Deslizable de Compartir Historias (Glassmorphic Share Drawer) */
.story-share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInBg 0.25s ease;
}

.story-share-drawer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 450px;
    border-radius: 24px 24px 0 0;
    padding: 20px 24px 30px 24px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUpDrawer 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
}

.share-drawer-handle {
    width: 40px;
    height: 5px;
    background: #CBD5E1;
    border-radius: 3px;
    margin: 0 auto 20px auto;
    cursor: pointer;
    transition: background 0.2s;
}

.share-drawer-handle:hover {
    background: #94A3B8;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Animaciones de entrada */
@keyframes fadeInBg {
    from {
        background: rgba(0, 0, 0, 0);
    }

    to {
        background: rgba(0, 0, 0, 0.6);
    }
}

@keyframes slideUpDrawer {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Banners Patrocinados en el Feed Social */
/* .ad-feed_inline eliminado para permitir renderizado nativo de borde a borde */

.ad-feed_inline .ad-banner-link {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.ad-feed_inline .ad-banner-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

/* Los banners inline ahora heredan la estructura flex y responsiva correcta desde ads.css */

.mobile-publish-opt:active {
    transform: scale(0.97) !important;
}

/* Author Control Panel */
.author-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.author-btn svg { width: 16px; height: 16px; }

.btn-delete { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.btn-delete:hover { background: #ef4444; color: white; }

.btn-sold { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.btn-sold:hover { background: #10b981; color: white; }

.btn-pause { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.btn-pause:hover { background: #f59e0b; color: white; }

.btn-boost { 
    background: linear-gradient(135deg, #FDE68A, #F59E0B); 
    color: #78350F; 
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); 
}
.btn-boost:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4); 
}
