/* CSS para la vista de detalle de post */

/* Variables personalizadas (iguales a posts.css) */
:root {
    --color1: #0EFBD8;
    --color2: #0FC0AF;
    --color3: #12BCAD;
    --bg-dark: #090909;
    --card-bg: #1a1a2e;
    --text-light: #e0e0e0;
    --text-muted: #a0a0b0;
}

body {
    font-family: Poppins, sans-serif;
}

/* Contenedor principal */
.post-detail-container {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Header del post */
.post-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 120px; /* Para header fijo */
}

.post-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color1);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(14, 251, 216, 0.3);
    line-height: 1.2;
}

.post-detail-date {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Imagen destacada */
.post-detail-image-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.post-detail-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-detail-image-container:hover .post-detail-image {
    transform: scale(1.02);
}

/* Contenido del post */
.post-detail-content {
    background: linear-gradient(135deg, var(--card-bg) 0%, #162447 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(14, 251, 216, 0.2);
}

.post-detail-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.post-detail-description p {
    margin-bottom: 1.5rem;
}

.post-detail-description p:last-child {
    margin-bottom: 0;
}

/* Footer del post */
.post-detail-footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #162447 0%, var(--card-bg) 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(14, 251, 216, 0.1);
}

.post-detail-author {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.post-detail-author strong {
    color: var(--color1);
}

.post-detail-author a {
    color: var(--color2);
    text-decoration: none;
}

.post-detail-author a:hover  {
    text-decoration: underline;
}

/* Botón de volver */
.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, var(--color1), var(--color2));
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 251, 216, 0.3);
}

.back-button:hover {
    background: linear-gradient(45deg, var(--color2), var(--color3));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 251, 216, 0.4);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .post-detail-container {
        padding: 1rem;
    }

    .post-detail-title {
        font-size: 2rem;
    }

    .post-detail-content {
        padding: 1.5rem;
    }

    .post-detail-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .post-detail-header {
        padding-top: 100px;
    }

    .post-detail-title {
        font-size: 1.8rem;
    }

    .post-detail-content {
        padding: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-detail-header,
.post-detail-image-container,
.post-detail-content,
.post-detail-footer {
    animation: fadeInUp 0.6s ease-out;
}