/* ============================================================
   FEED DETAIL – Estilo iOS 17 + macOS + Frutiger Aero
   ============================================================ */

/* Contenedor principal de cada post */
.feed-detail-card {
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 26px;
    padding: 22px;
    margin-bottom: 26px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 30px rgba(0,0,0,0.13);
    transition: all .25s ease;
}

.feed-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.18);
}

/* Título */
.feed-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

/* Descripción */
.feed-description {
    font-size: 1.1em;
    color: #2b2b2b;
    line-height: 1.58em;
    margin-bottom: 20px;
}

/* Links como iOS */
.feed-description a {
    color: #007aff !important;
    text-decoration: none;
    font-weight: 600;
}

.feed-description a:hover {
    text-decoration: underline;
}

/* Imagenes en estilo Apple Photos */
 /* Imagen que siempre entra en pantalla */
.img-content {
    display: flex;
    justify-content: center;
    background :#0f0f0f;
}

.img-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

/* Si la imagen es ENORME (como el doble de pantalla) reduce más */
 /* Si la imagen es mayor a 750px de ancho o alto, reducirla al 50% */
.img-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

/* Ancho mayor a 750px → mostrarla al 50% */
@media (min-width: 650px) {
    .img-content img {
        max-width: 100%;
    }
}

/* Alto mayor a 750px → también al 50% */
@media screen and (min-height: 650px) {
    .img-content img {
        max-height: 50vh;  /* 50% del alto de la pantalla */
    }
}


/* Indicators estilo iOS */
.carousel-indicators button {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50%;
    background: rgba(255,255,255,0.85) !important;
    margin: 3px;
    transition: transform 0.25s ease;
}

.carousel-indicators .active {
    transform: scale(1.6);
    background: linear-gradient(135deg, #00a6ff, #007aff) !important;
}

/* Botones de navegación estilo Apple */
.carousel-control-next-icon,
.carousel-control-prev-icon {
    filter: invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.55));
}

.carousel-control-next,
.carousel-control-prev {
    opacity: .8;
    transition: opacity .25s ease;
}

.carousel-control-next:hover,
.carousel-control-prev:hover {
    opacity: 1;
}

/* Botón compartir */
.share-icon i {
    font-size: 28px;
    color: #1877f2;
    transition: all .25s ease;
}

.share-icon i:hover {
    transform: scale(1.2);
}

/* ========== Comentarios estilo iOS ========== */
/* Contenedor general */
.comment-input-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

/* Avatar */
.comment-avatar img {
    width: 50px;
   /* height: 38px;*/
    border-radius: 50%;
    object-fit: cover;
}

/* Campo + icono */
.comment-field-area {
    position: relative;
    width: 100%;
}

/* Caja de comentario */
.comment-textarea {
    width: 100%;
    min-height: 55px;
    resize: vertical;
    padding: 12px 48px 12px 15px;
    border-radius: 14px;
    border: 1px solid #d1d1d1;
    background: rgba(255,255,255,0.65);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    font-size: 15px;
    transition: 0.2s;
}

/* Hover iOS look */
.comment-textarea:focus {
    border-color: #007aff;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 4px rgba(0,122,255,0.15);
}

/* Ícono dentro del textarea */
.comment-upload-icon {
    position: absolute;
    right: 10px;
    bottom: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

/* Hover */
.comment-upload-icon:hover {
    color: #007aff;
    transform: scale(1.15);
}

/* Botón enviar */
.comment-post-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 8px 18px;
    font-size: 15px;
    border-radius: 14px;
    transition: 0.2s;
}

.comment-post-btn:hover {
    background: #0062d6;
}

/* Ícono grande sólo para Facebook share */
/* ÍCONO GRANDE DE FACEBOOK – SIN CONFLICTOS */
.fb-big-icon {
    font-size: 48px !important;        /* ← AHORA SÍ SE APLICA */
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    text-align: center;
    color: #1877f2 !important;
    padding: 6px;
    border-radius: 12px;
    display: inline-block !important;
    background: rgba(24,119,242,0.10);
    transition: all 0.25s ease;
}

/* Hover estilo iOS */
.fb-big-icon:hover {
    transform: scale(1.22);
    background: rgba(24,119,242,0.25);
    color: #0d5fcc !important;
}

/* === Contenedor general del bloque de compartir === */
.share-wrapper {
    margin-top: 10px;
}

/* === Enlace que contiene icono + texto === */
.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

/* === Texto "Compartir en Facebook" === */
.share-text {
    font-size: 16px;
    font-weight: 600;
    color: #1877f2;
    transition: 0.25s ease;
}

/* Hover estilo iOS */
.share-link:hover .share-text {
    color: #0d5fcc;
    transform: translateX(3px);
}

/* Ya tienes esta clase para el ícono */
.fb-big-icon {
    font-size: 48px !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    text-align: center;
    color: #1877f2 !important;
    padding: 6px;
    border-radius: 12px;
    display: inline-block !important;
    background: rgba(24,119,242,0.10);
    transition: all 0.25s ease;
}

.fb-big-icon:hover {
    transform: scale(1.22);
    background: rgba(24,119,242,0.25);
}

/* === WhatsApp icon grande estilo iOS === */
.wa-big-icon {
    font-size: 48px !important;
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
    text-align: center;
    color: #25D366 !important; /* Verde WhatsApp */
    padding: 6px;
    border-radius: 12px;
    display: inline-block !important;
    background: rgba(37, 211, 102, 0.10);
    transition: all .25s ease;
}

.wa-big-icon:hover {
    transform: scale(1.22);
    background: rgba(37, 211, 102, 0.25);
    color: #1ebe5d;
}

/* Texto WhatsApp */
.wa-text {
    color: #25D366 !important;
    font-weight: 600;
}

.wa-text:hover {
    color: #1ebe5d !important;
}

/* ============================================
   COMPARTIR – Estilo iOS + Frutiger Aero
   ============================================ */
/* 🔥 ELIMINAR SCROLL EN TODA LA ZONA DE COMPARTIR */
.share-title-row,
.share-icons,
.share-icon-btn,
.share-label {
    overflow: hidden !important;
}

/* 🔥 EVITAR QUE SE GENERE UNA BARRA POR ALTO DEL ÍCONO */
.share-icons {
    max-height: 60px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 🔥 EVITAR SCROLL VERTICAL HIDDEN */
.share-icons::-webkit-scrollbar,
.share-title-row::-webkit-scrollbar {
    display: none !important;
}

/* 🔥 ALINEACIÓN PERFECTA SIN SOBRESALTOS */
.share-icons i {
    display: inline-flex !important;
    overflow: hidden !important;
}
