/**
 * Estilos propios del tema Foodtrol (blog WordPress)
 * Header, menú, banner y contenido alineados con la página principal Laravel.
 */

/* ========== Footer: sombra superior para diferenciar del contenido ========== */
.main-footer {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* ========== Logo: proporción correcta, sin distorsión ========== */
.main-header .logo img.logo_default,
.main-header .logo-box .logo img {
    height: auto !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block;
}

.main-header .nav-logo img.logo_default,
.main-header .nav-logo .logo img {
    height: auto !important;
    max-height: 50px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

/* ========== Submenú del header (mismo estilo que la página principal) ========== */
.navigation-wrap .navbar-nav .dropdown > .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 175px;
    padding: 12px 0 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    list-style: none;
    margin: 0;
}

.navigation-wrap .navbar-nav .dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.navigation-wrap .navbar-nav .sub-menu li {
    display: block;
    position: relative;
}

/* Tercer nivel: submenú a la derecha del ítem padre */
.navigation-wrap .navbar-nav .dropdown .sub-menu .dropdown > .sub-menu {
    left: 100%;
    top: 0;
    margin-left: 0;
    margin-top: -12px;
}

.navigation-wrap .navbar-nav .dropdown .sub-menu .dropdown:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.navigation-wrap .navbar-nav .sub-menu li a {
    font-size: 14px;
    line-height: 29px;
    display: block;
    padding: 0 36px 0 19px;
    color: #707070;
}

.navigation-wrap .navbar-nav .sub-menu li a:hover {
    color: var(--color-primary, #ee260e);
}

/* Flecha en ítems con submenú: primer nivel = abajo, niveles anidados = derecha */
.navigation-wrap .navbar-nav > .dropdown > .nav-link.menu-item::after {
    content: "\f107";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    margin-left: 5px;
}

/* Tercer nivel: flecha a la derecha (submenú se abre a la derecha) */
.navigation-wrap .navbar-nav .dropdown .sub-menu .dropdown > a::after,
.navigation-wrap .navbar-nav .dropdown .sub-menu .dropdown > .nav-link.menu-item::after {
    content: "\f105";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    margin-left: 5px;
}

/* ========== Espacio bajo el header: main no queda tapado ========== */
.page-wrapper main {
    padding-top: 130px;
}

@media (max-width: 991px) {
    .page-wrapper main {
        padding-top: 100px;
    }
}

/* ========== Page banner / Page title – estilo moderno y legible ========== */
.page-banner-area.page-title,
.page-title.page-banner-area {
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 0;
    padding: 80px 20px 60px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay para que el título se lea bien sobre la imagen */
.page-banner-area.page-title::before,
.page-title.page-banner-area::before {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 100%);
    content: "";
    pointer-events: none;
}

.page-banner-area.page-title .title-outer,
.page-title.page-banner-area .title-outer {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-banner-area.page-title .title,
.page-title.page-banner-area .title {
    font-size: clamp(1.75rem, 4vw, 2rem);
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-banner-area.page-title .page-breadcrumb,
.page-title.page-banner-area .page-breadcrumb {
    margin-top: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 8px;
}

.page-banner-area.page-title .page-breadcrumb li::after,
.page-title.page-banner-area .page-breadcrumb li::after {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner-area.page-title .page-breadcrumb li,
.page-title.page-banner-area .page-breadcrumb li {
    color: rgba(255, 255, 255, 0.9);
}

.page-banner-area.page-title .page-breadcrumb li a,
.page-title.page-banner-area .page-breadcrumb li a {
    color: rgba(255, 255, 255, 0.95);
}

.page-banner-area.page-title .page-breadcrumb li a:hover,
.page-title.page-banner-area .page-breadcrumb li a:hover {
    color: #fff;
}

@media (min-width: 768px) {
    .page-banner-area.page-title,
    .page-title.page-banner-area {
        padding: 120px 20px 90px;
        min-height: 320px;
    }
}

/* ========== Tarjeta de blog (single-blog-card) – estilo profesional ========== */
/* Espacio entre tarjetas: columnas y filas */
.blog-area .row > [class*="col-"] {
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.blog-area .row > [class*="col-"]:last-child {
    margin-bottom: 0;
}

.single-blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.single-blog-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.single-blog-card .blog-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
}

.single-blog-card .blog-img a {
    display: block;
    height: 100%;
}

.single-blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.single-blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.single-blog-card .content {
    padding: 1.5rem 1.5rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.single-blog-card .content .entry-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.single-blog-card .content .entry-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-blog-card .content .entry-title a:hover {
    color: var(--color-primary, #ee260e);
}

.single-blog-card .content p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #555;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-blog-card .content .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #ee260e);
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.single-blog-card .content .read-more-btn:hover {
    color: #c41e0a;
    gap: 0.5rem;
}

.single-blog-card .content .read-more-btn::after {
    content: "\f061";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
}

/* Variante horizontal (content2 / related): imagen + contenido en fila en desktop */
.col-lg-12 .single-blog-card {
    flex-direction: row;
}

.col-lg-12 .single-blog-card .blog-img {
    flex: 0 0 320px;
    aspect-ratio: auto;
    min-height: 200px;
}

.col-lg-12 .single-blog-card .content {
    padding: 1.75rem 2rem;
    justify-content: center;
}

.col-lg-12 .single-blog-card .content .entry-title {
    font-size: 1.25rem;
}

.col-lg-12 .single-blog-card .content p {
    -webkit-line-clamp: 2;
}

@media (max-width: 991px) {
    .col-lg-12 .single-blog-card {
        flex-direction: column;
    }

    .col-lg-12 .single-blog-card .blog-img {
        flex: none;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
}

/* ========== Detalle del post (single) – estilo profesional ========== */
.single-post-section {
    padding: 2rem 0 3rem;
}

.single-post-article {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 2rem 2.5rem 2.5rem;
}

.single-post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

.single-post-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
}

.single-post-meta {
    font-size: 0.875rem;
    color: #666;
}

.single-post-meta a {
    color: var(--color-primary, #ee260e);
    text-decoration: none;
}

.single-post-meta a:hover {
    text-decoration: underline;
}

.single-post-meta .meta-sep {
    margin: 0 0.5rem;
    color: #bbb;
}

.single-post-thumbnail {
    margin-bottom: 1.75rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #333;
}

.single-post-content p {
    margin-bottom: 1.25rem;
}

/* Encabezados dentro del contenido del artículo: tamaños y espaciado */
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.6em;
}

.single-post-content h1 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #eee;
}

.single-post-content h2 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #eee;
}

.single-post-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.single-post-content h4 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.single-post-content h5 {
    font-size: 1.0625rem;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.single-post-content h6 {
    font-size: 1rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    color: #444;
    font-weight: 600;
}

.single-post-content h1:first-child,
.single-post-content h2:first-child,
.single-post-content h3:first-child,
.single-post-content h4:first-child,
.single-post-content h5:first-child,
.single-post-content h6:first-child {
    margin-top: 0;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post-tags {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
    font-size: 0.875rem;
    color: #666;
}

.single-post-tags a {
    color: var(--color-primary, #ee260e);
    text-decoration: none;
}

.single-post-tags a:hover {
    text-decoration: underline;
}

.single-post-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.single-post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.single-post-navigation .nav-previous a,
.single-post-navigation .nav-next a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary, #ee260e);
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.single-post-navigation .nav-previous a:hover,
.single-post-navigation .nav-next a:hover {
    opacity: 0.9;
}

.single-post-sidebar {
    padding-left: 2rem;
}

.single-related-posts {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.single-related-posts .related-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary, #ee260e);
    color: #1a1a1a;
}

/* Noticias relacionadas: 2 columnas (imagen izquierda, fecha + título derecha), todo clickable */
.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-post-item {
    display: flex;
    align-items: stretch;
    gap: 0.875rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.related-post-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.related-post-item:hover .related-post-title {
    color: var(--color-primary, #ee260e);
}

.related-post-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-post-no-thumb {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
}

.related-post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.related-post-date {
    font-size: 0.75rem;
    color: #888;
}

.related-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991px) {
    .single-post-article {
        padding: 1.5rem 1.25rem;
    }

    .single-post-sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }

    .single-post-navigation .nav-links {
        flex-direction: column;
    }
}

/* ========== Formulario de comentarios (#comment-respond) – estilo profesional ========== */
.single-post-comments {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

#respond,
.comment-respond {
    background: #fafafa;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin-top: 1.5rem;
    border: 1px solid #eee;
}

#reply-title,
.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary, #ee260e);
}

.comment-form .comment-notes {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    margin-bottom: 1.25rem;
}

.comment-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.comment-form label .required {
    color: var(--color-primary, #ee260e);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary, #ee260e);
    box-shadow: 0 0 0 3px rgba(238, 38, 14, 0.1);
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form .form-submit {
    margin: 1.5rem 0 0;
}

.comment-form input[type="submit"],
.comment-form #submit {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary, #ee260e);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.05s ease;
}

.comment-form input[type="submit"]:hover,
.comment-form #submit:hover {
    opacity: 0.92;
}

.comment-form input[type="submit"]:active,
.comment-form #submit:active {
    transform: scale(0.98);
}
