/* frontend/assets/css/pages/post.css */

/* =======================================
   BLOG POST STYLES (post.html)
   ======================================= */
.btn-return {
    background: none;
    border: none;
    color: var(--secondary-color, #00796b);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.btn-return:hover {
    color: var(--primary-color, #004d40);
    text-decoration: underline;
}

.post-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

#post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

#post-date {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.post-image-wrapper {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* =======================================
   TEXT BODY OF THE POST
   ======================================= */
#post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

#post-body p {
    margin-bottom: 1.5rem;
}

#post-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

#post-body h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

#post-body ul, 
#post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

#post-body li {
    margin-bottom: 0.5rem;
}

#post-body strong,
#post-body b {
    color: var(--secondary-color, #00796b);
}

#post-body blockquote {
    border-left: 4px solid var(--secondary-color, #00796b);
    background-color: #f9f9f9;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* =======================================
   SUGGESTED POSTS & HORIZONTAL SCROLL
   ======================================= */

.post-suggestions {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.suggestions-h3 {
    margin-bottom: 1.5rem;
}

.horizontal-scroll-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    
    cursor: grab;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Clases dinámicas inyectadas por tu JS al hacer click/drag */
.horizontal-scroll-container.scrolling {
    cursor: grabbing;
}

.horizontal-scroll-container.is-dragging .blog-card {
    pointer-events: none; 
}

.blog-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    user-select: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-img-wrapper {
    height: 150px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.blog-info {
    padding: 1rem;
}

.blog-date {
    color: #777;
    font-size: 0.85em;
}

.blog-title {
    margin: 8px 0 0 0;
    color: #14213d;
    font-size: 1.1rem;
}