/* ====================================
   THE ESO - BLOG STYLES
   ELEGANT BLOG LAYOUT & ARTICLE PAGES
   ==================================== */

/* ====================================
   BLOG HERO SECTION
   ==================================== */

.blog-hero {
    background: linear-gradient(135deg, var(--eso-black) 0%, var(--eso-ink) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(200, 162, 74, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero .hero-background {
    position: relative;
    z-index: 2;
}

.blog-hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--eso-white);
    text-align: center;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.blog-hero-subtitle {
    font-size: 1.3rem;
    color: var(--eso-light-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ====================================
   BLOG ARTICLES GRID
   ==================================== */

.blog-articles-section {
    padding: 80px 0 120px;
    background: var(--eso-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.blog-card {
    background: var(--eso-white-pure);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(200, 162, 74, 0.2);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--eso-gold), var(--eso-gold-soft));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(11, 11, 13, 0.2);
    border-color: var(--eso-gold);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-card-image .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .card-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 11, 13, 0.7), rgba(200, 162, 74, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .image-overlay {
    opacity: 1;
}

.read-more-icon {
    color: var(--eso-white);
    background: var(--eso-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.blog-card:hover .read-more-icon {
    transform: scale(1);
}

.blog-card-content {
    padding: 30px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--eso-gray);
}

.blog-date svg {
    color: var(--eso-gold);
}

.blog-category {
    background: linear-gradient(135deg, var(--eso-gold), var(--eso-gold-soft));
    color: var(--eso-black);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    margin-bottom: 15px;
}

.blog-card-title a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eso-black);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title a {
    color: var(--eso-gold);
}

.blog-card-excerpt {
    color: var(--eso-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(200, 162, 74, 0.2);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.author-label {
    color: var(--eso-gray);
}

.author-name {
    color: var(--eso-black);
    font-weight: 600;
}

.btn-read-more {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--eso-gold);
    padding: 10px 20px;
    border: 2px solid var(--eso-gold);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--eso-gold);
    color: var(--eso-black);
    transform: translateX(5px);
}

/* ====================================
   BLOG PAGINATION
   ==================================== */

.blog-pagination {
    text-align: center;
    margin-top: 60px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.blog-pagination a {
    background: transparent;
    color: var(--eso-black);
    padding: 12px 25px;
    border: 2px solid var(--eso-gold);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination a:hover {
    background: var(--eso-gold);
    color: var(--eso-black);
}

/* ====================================
   NO POSTS MESSAGE
   ==================================== */

.no-posts-message {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-content {
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-icon {
    margin-bottom: 30px;
}

.no-posts-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--eso-black);
    margin-bottom: 20px;
}

.no-posts-description {
    color: var(--eso-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-back-home {
    display: inline-block;
    background: var(--eso-gold);
    color: var(--eso-black);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--eso-gold-soft);
    transform: translateY(-2px);
}

/* ====================================
   SINGLE ARTICLE STYLES
   ==================================== */

.article-hero {
    background: linear-gradient(135deg, var(--eso-black) 0%, var(--eso-ink) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.article-featured-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 11, 13, 0.8), rgba(11, 11, 13, 0.6));
}

.article-hero .hero-container {
    position: relative;
    z-index: 3;
}

.article-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-hero .hero-content {
    text-align: center !important;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.article-hero .article-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.article-meta {
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    text-align: center;
    width: 100%;
}

.article-category {
    background: linear-gradient(135deg, var(--eso-gold), var(--eso-gold-soft));
    color: var(--eso-black);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-date,
.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--eso-light-gray);
    font-size: 0.95rem;
}

.article-date svg,
.article-author svg {
    color: var(--eso-gold);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--eso-white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1.3rem;
    color: var(--eso-light-gray);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto !important;
    text-align: center !important;
}

/* ====================================
   ARTICLE CONTENT LAYOUT
   ==================================== */

.article-content-section {
    padding: 80px 0;
    background: var(--eso-white);
}

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.article-main {
    max-width: none;
}

.article-content {
    background: var(--eso-white-pure);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1);
    border: 1px solid rgba(200, 162, 74, 0.2);
    margin-bottom: 40px;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--font-heading);
    color: var(--eso-black);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 2.2rem;
    margin-top: 40px;
}

.article-content h3 {
    font-size: 1.8rem;
    margin-top: 35px;
}

.article-content p {
    color: var(--eso-black);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(11, 11, 13, 0.15);
}

.article-content blockquote {
    background: linear-gradient(135deg, rgba(200, 162, 74, 0.1), rgba(227, 201, 128, 0.1));
    padding: 30px;
    margin: 30px 0;
    border-left: 4px solid var(--eso-gold);
    border-radius: 8px;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--eso-black);
}

/* ====================================
   ARTICLE TAGS
   ==================================== */

.article-tags {
    background: var(--eso-white-pure);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1);
    border: 1px solid rgba(200, 162, 74, 0.2);
    margin-bottom: 40px;
}

.tags-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--eso-black);
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: linear-gradient(135deg, var(--eso-gold), var(--eso-gold-soft));
    color: var(--eso-black);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.tag-item:hover {
    transform: translateY(-2px);
}

/* ====================================
   ARTICLE NAVIGATION
   ==================================== */

.article-navigation {
    background: var(--eso-white-pure);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1);
    border: 1px solid rgba(200, 162, 74, 0.2);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-item {
    text-align: center;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--eso-gray);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-articles-section .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--eso-black);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 20px;
    border: 2px solid var(--eso-gold);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.blog-articles-section .nav-link:hover {
    background: var(--eso-gold);
    color: var(--eso-black);
}

.back-to-blog {
    text-align: center;
}

.btn-back-blog {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--eso-gold);
    padding: 15px 30px;
    border: 2px solid var(--eso-gold);
    border-radius: 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-back-blog:hover {
    background: var(--eso-gold);
    color: var(--eso-black);
    transform: translateX(-5px);
}

/* ====================================
   ARTICLE SIDEBAR
   ==================================== */

.article-sidebar {
    max-width: none;
}

.sidebar-widget {
    background: var(--eso-white-pure);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1);
    border: 1px solid rgba(200, 162, 74, 0.2);
    margin-bottom: 30px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--eso-black);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--eso-gold);
}

/* Related Posts */
.related-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(200, 162, 74, 0.2);
}

.related-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-post-image {
    flex-shrink: 0;
}

.related-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.related-post-content {
    flex: 1;
}

.related-post-title a {
    color: var(--eso-black);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: var(--eso-gold);
}

.related-post-date {
    font-size: 0.85rem;
    color: var(--eso-gray);
    margin-top: 8px;
    display: block;
}

/* Categories Widget */
.categories-list {
    list-style: none;
}

.category-item {
    margin-bottom: 12px;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--eso-black);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: rgba(200, 162, 74, 0.1);
    color: var(--eso-gold);
}

.category-count {
    color: var(--eso-gray);
    font-size: 0.9rem;
}

/* ====================================
   COMMENTS SECTION
   ==================================== */

.article-comments-section {
    padding: 60px 0;
    background: rgba(200, 162, 74, 0.05);
}

.comments-container {
    background: var(--eso-white-pure);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1);
    border: 1px solid rgba(200, 162, 74, 0.2);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-card-content {
        padding: 25px;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .article-excerpt {
        font-size: 1.1rem;
    }

    .article-content {
        padding: 30px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .article-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-post-item {
        flex-direction: column;
        gap: 10px;
    }

    .related-post-image {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 80px 0 60px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-articles-section {
        padding: 60px 0 80px;
    }

    .blog-grid {
        gap: 20px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .article-hero {
        min-height: 50vh;
        padding: 80px 0 60px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 20px;
    }

    .sidebar-widget {
        padding: 20px;
    }
}

/* ====================================
   OVERRIDE PARENT THEME STYLES
   ==================================== */

/* Rimuove COMPLETAMENTE le barre del tema parent dai widget della sidebar */
.widget .widget-title::before,
.widget .widget-title::after,
.widget h2::before,
.widget h2::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
}

/* Override completo degli stili widget del tema parent */
.widget {
    background: var(--eso-white-pure) !important;
    border: 1px solid rgba(200, 162, 74, 0.2) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(11, 11, 13, 0.1) !important;
    text-align: left !important;
}

.widget .widget-title,
.widget h2 {
    font-family: var(--font-heading) !important;
    font-size: 1.3rem !important;
    color: var(--eso-black) !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--eso-gold) !important;
    text-transform: none !important;
    font-weight: 600 !important;
    position: relative;
}

/* Hover effect rimozione per evitare conflitti */
.widget:hover .widget-title::before {
    width: 0 !important;
}