/* --- VARIABLES DEL SISTEMA --- */
:root {
    --cp-bg: #0a0a0c;
    /* Negro profundo de fondo */
    --cp-red: #ff003c;
    /* Rojo Cyberpunk */
    --cp-red-glow: rgba(255, 0, 60, 0.4);
    --cp-cyan: #00f0ff;
    /* Cian de acento */
    --cp-text-main: #e0e0e0;
    /* Gris claro para texto legible */
    --cp-text-muted: #888888;

    --font-headers: 'Rajdhani', sans-serif;
    --font-body: 'Share Tech Mono', monospace;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--cp-bg);
    color: var(--cp-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Efecto de monitor de tubo (Scanlines) */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    /* Evita que bloquee los clicks */
    z-index: 9999;
}

/* --- ESTRUCTURA --- */
.layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* --- CABECERA Y NAVEGACIÓN --- */
.cp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--cp-red);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.logo {
    font-family: var(--font-headers);
    font-size: 2.5rem;
    color: var(--cp-cyan);
    text-shadow: 0 0 10px var(--cp-cyan);
    letter-spacing: 2px;
}

.logo span {
    color: var(--cp-text-main);
    text-shadow: none;
}

.cp-nav {
    display: flex;
    gap: 15px;
}

/* Botones con esquinas cortadas (Clip-path) */
.cp-btn {
    font-family: var(--font-headers);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--cp-red);
    text-decoration: none;
    padding: 10px 30px;
    border: 1px solid var(--cp-red);
    background: transparent;
    transition: all 0.3s ease;
    /* Aquí creamos la esquina cortada superior derecha e inferior izquierda */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cp-btn:hover {
    background-color: var(--cp-red);
    color: var(--cp-bg);
    box-shadow: 0 0 15px var(--cp-red-glow);
}

/* --- ÁREA PRINCIPAL Y TARJETAS --- */
.section-title h2 {
    font-family: var(--font-headers);
    color: var(--cp-red);
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.cp-card {
    background-color: rgba(255, 0, 60, 0.05);
    border-left: 4px solid var(--cp-red);
    padding: 20px;
    position: relative;
    transition: transform 0.2s;
    /* Esquina cortada en la parte superior derecha de la tarjeta */
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.cp-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 0, 60, 0.1);
    box-shadow: 0 0 20px var(--cp-red-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--cp-cyan);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 5px;
}

.card-body h3 {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    color: var(--cp-text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-body p {
    color: var(--cp-text-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--cp-cyan);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--cp-text-main);
    text-shadow: 0 0 8px var(--cp-cyan);
}



/* --- Entradas blog (Post Full) --- */

.post-full-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 0, 60, 0.05);
    border-left: 4px solid #fcee0a;
    /* Amarillo Arasaka */
    padding: 40px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.post-full-card .post-title {
    color: #fcee0a;
    font-family: var(--font-headers);
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
}

.post-full-card .post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--cp-cyan);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 5px;
}

/* --- Imágenes dentro del Post --- */
.post-images-container {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.entry-img {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--cp-cyan);
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.entry-img img {
    width: 100%;
    height: 300px;
    /* Altura aumentada para mejor visibilidad */
    object-fit: cover;
    display: block;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.3s ease;
}

.entry-img:hover img {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.entry-img::after {
    content: "SCAN_DATA";
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.6rem;
    color: #fcee0a;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 5px;
    border: 1px solid var(--cp-cyan);
    pointer-events: none;
}

/* --- FOOTER DE LA ENTRADA (Igual al Blog principal) --- */
.post-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 0, 60, 0.2);
    display: block;
}

.post-footer .back-link {
    display: inline-block;
    color: var(--cp-cyan);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* El efecto hover idéntico al 'read-more' */
.post-footer .back-link:hover {
    color: var(--cp-text-main);
    text-shadow: 0 0 8px var(--cp-cyan);
}

/* Ajuste móvil */
@media (max-width: 600px) {
    .post-images-container {
        flex-direction: column;
    }

    .entry-img img {
        height: 200px;
    }
}



/*Comentarios*/
/* Estilo para los inputs de texto */
.cp-input-text {
    width: 100%;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--cp-cyan);
    color: var(--cp-cyan);
    padding: 10px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    outline: none;
    text-transform: uppercase;
}

.cp-input-text:focus {
    box-shadow: 0 0 10px var(--cp-cyan);
    background: rgba(0, 240, 255, 0.1);
}

textarea {
    width: 100%;
    height: 120px;
    background: rgba(255, 0, 60, 0.05);
    border: 1px solid var(--cp-red);
    color: var(--cp-text-main);
    padding: 15px;
    font-family: var(--font-body);
    resize: none;
    outline: none;
}

textarea:focus {
    box-shadow: 0 0 10px var(--cp-red-glow);
}

/* El botón ya usa tu clase .cp-btn, así que heredará el estilo de esquinas cortadas */