:root {
    --bg-main: #0a0b0c;
    --bg-card: #141618;
    --border-color: #222529;
    --text-muted: #868e96;
    --accent-white: #ffffff;
}

/* PANTALLA DE BLOQUEO ABSOLUTA (+18) */
.filtro-edad-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 11, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;
}

.filtro-edad-overlay.desbloqueado {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.card-advertencia {
    background: #141618;
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Contenedor Central del Feed */
.feed-container {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Publicaciones (Estilo Twitter) */
.post-card {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.post-card:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-badge {
    background-color: rgba(255, 255, 255, 0.06);
    color: #ced4da;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-white);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-text {
    color: #e9ecef;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-image-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    max-height: 450px;
}

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

.post-actions {
    display: flex;
    gap: 2.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botones Premium */
.btn-entrar-restringido {
    background-color: var(--accent-white);
    color: var(--bg-main);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-entrar-restringido:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.btn-salir-restringido {
    background-color: transparent;
    color: #dc3545;
    font-weight: 600;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-salir-restringido:hover {
    background-color: rgba(220, 53, 69, 0.05);
    border-color: #dc3545;
}

/* Configura la tarjeta como el contenedor base espacial */
.post-card {
    position: relative;
}

/* Enlace invisible que cubre el 100% de la tarjeta */
.enlace-estirado::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    /* Nivel base de clic */
    content: "";
}

/* Coloca el texto y los botones por encima de la capa invisible */
/* De esta forma el usuario puede interactuar con los enlaces internos y copiar el texto */
.post-text {
    position: relative;
    z-index: 2;
    /* Por encima del enlace general */
}

.post-actions,
.post-meta-independiente {
    position: relative;
    z-index: 3;
    /* En la capa superior para recibir clics directos */
}

/* Color base blanco con ligera transparencia para que no deslumbre */
.total-vistas-btn {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.2s ease;
}

/* Al pasar el mouse, se enciende a blanco puro */
.total-vistas-btn:hover {
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .feed-container {
        border-left: none;
        border-right: none;
    }

    .post-card {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.1rem;
    }
}
