
/* ========================================================================== 
   Estilos del blog.
   Author: Victor
   Version: 1.0
   ========================================================================== */
   :root {
    --navbar-height: 70px;
    --primary-color: #000;
    --text-white: #ffffff;
    --text-black: #000000;
    --text-hover: #818181;

        }

/* Header del Blog
   ========================================================================== */
   .blog-main {
    margin-top: 50px;
    padding: 60px 0;

}

.blog-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../imagenes/carta_sushi_completa.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Posts
   ========================================================================== */
.blog-post {
    margin-bottom: 4rem;
    background: var(--text-white);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.post-content {
    padding: 2rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-meta {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-meta span {
    margin-right: 1rem;
}

/* Botones
   ========================================================================== */
.read-more {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-white) !important;
    text-decoration: none !important; 
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #1a1a1a;
    border-radius: 5px;
}

.read-more:hover {
    background: white;
    color: #1a1a1a;
    text-decoration: none;
}

.share-buttons{
    margin-top: 5px;
    margin: 10px 0;
}
.share-buttons .btn {
    margin-right: 20px;
} 

/* Sidebar
   ========================================================================== */
.blog-sidebar {
    padding: 2rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1a1a1a;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #666;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.recent-posts a {
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #666;
}

.recent-posts span {
    font-size: 0.9rem;
    color: #666;
}

/* Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .blog-sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 0;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .post-image img {
        height: 300px;
    }

    .blog-post {
        margin-bottom: 2rem;
    }

    /* Make blog content stack vertically on small screens */
    .blog-content .row {
        display: flex;
        flex-direction: column;
    }

    /* Sidebar panel with visible border */
    .blog-sidebar {
        background-color: #f1f1f1;
        padding: 20px;
        border-radius: 8px;
        border: 2px solid #1a1a1a; /* Added visible border */
        margin-top: 2rem;
    }
}

/* Animaciones
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post {
    animation: fadeIn 0.6s ease-out forwards;
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* ========================================================================== 
   COMMENTS SECTION
   ========================================================================== */

.comments-section {
    padding: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.comments-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* Formulario de comentarios */
.comment-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.comment-form textarea {
    border: 1px solid rgba(0,0,0,0.1);
    resize: none;
    padding: 1rem;
    width: 100%;
    border-radius: 5px;
}

.comment-form textarea:focus {
    border-color: #1a1a1a;
    box-shadow: none;
}

.comment-form .btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    border-radius: 5px;
}

.comment-form .btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Lista de comentarios */
.comments-list {
    margin-top: 2rem;
}

.comment {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.comment-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #1a1a1a;
}

.comment-info span {
    font-size: 0.85rem;
    color: #666;
}

.comment-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Estilos para usuarios no logueados */
.login-to-comment {
    text-align: center;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.login-to-comment p {
    margin: 0;
    color: #666;
}

.login-to-comment a {
    color: #1a1a1a;
    font-weight: 500;
    text-decoration: underline;
}

/* Ajustar la sección de los artículos */
.blog-post {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post .post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.blog-post .post-content h2 {
    font-size: 2rem;
    margin-top: 20px;
}

.blog-post .post-meta {
    color: #666;
    font-size: 0.9rem;
}

.blog-post .post-meta i {
    margin-right: 5px;
}

.blog-post .read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.blog-post .read-more:hover {
    text-decoration: underline;
}

/* Estilos para la barra lateral (sidebar) */
.blog-sidebar {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
}

.blog-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-sidebar .category-list li,
.blog-sidebar .recent-posts li {
    list-style-type: none;
    padding: 10px 0;
}

.blog-sidebar .category-list li a,
.blog-sidebar .recent-posts li a {
    text-decoration: none;
    color: #333;
}

.blog-sidebar .category-list li a:hover,
.blog-sidebar .recent-posts li a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Estilo para los botones de autenticación */
.auth-buttons .btn {
    margin-left: 10px;
    font-size: 0.9rem;
}

.auth-buttons .btn-outline-dark,
.auth-buttons .btn-dark {
    padding: 8px 20px;
}

.auth-buttons .btn-outline-danger {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Paginación */
.pagination {
    margin-top: 30px;
    justify-content: center;
}

.blog-main .footer {
    margin-top: 50px !important;  /* Aumenta el espacio superior del footer */
    padding: 2rem;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
}
