/* ==========================================================================
   BLOG & ARTICLE STYLES (PREMIUM GLASSMORPHISM)
   ========================================================================== */

/* --- Blog Index Hero --- */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(142, 68, 173, 0.4)), url("../images/main-cover.webp");
    background-size: cover;
    background-position: center;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.blog-hero .title {
    font-family: 'sjregular', sans-serif;
    text-transform: none;
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 15px rgba(255, 122, 1, 0.8);
    margin-bottom: 10px;
}

.blog-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #f1c40f;
    font-weight: 500;
}

/* --- Blog Grid --- */
.blog-grid-section {
    padding: 80px 20px;
    background-color: #0d0d0d;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3);
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid #FF7A01;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    font-size: 0.85rem;
    color: #FF7A01;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.blog-card-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: #f1c40f;
}

.blog-card-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.blog-date {
    font-size: 0.85rem;
    color: #888;
}

.btn-read-more {
    color: #FF7A01;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.btn-read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.btn-read-more:hover {
    color: #f1c40f;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

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

.article-page {
    background-color: #0d0d0d;
}

.article-hero {
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), #0d0d0d), url("../images/catalogo-hero.webp");
    background-size: cover;
    background-position: center;
    padding: 120px 20px 60px;
    text-align: center;
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article-meta .category {
    color: #111;
    background-color: #FF7A01;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.article-meta .date, .article-meta .author {
    color: #bbb;
}

.article-title {
    font-size: 2.8rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 300;
    line-height: 1.5;
}

/* --- Article Body --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-content {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 25px;
}

/* Drop cap for first paragraph */
.article-content > p:first-of-type::first-letter {
    font-family: 'sjregular', sans-serif;
    font-size: 4rem;
    float: left;
    line-height: 1;
    margin-right: 12px;
    color: #FF7A01;
    text-shadow: 0 0 10px rgba(255, 122, 1, 0.4);
}

.article-content h2 {
    color: white;
    font-size: 2rem;
    margin: 50px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.article-content h3 {
    color: #f1c40f;
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.article-content ul, .article-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid #8e44ad;
    background: rgba(142, 68, 173, 0.1);
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

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

/* --- Inline Product Promo --- */
.inline-product-promo {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(255, 122, 1, 0.3);
    border-radius: 12px;
    padding: 25px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.inline-promo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #8e44ad;
}

.inline-promo-content h4 {
    color: #FF7A01;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.inline-promo-content p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

.inline-promo-btn {
    display: inline-block;
    background-color: #8e44ad;
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.3s;
}

.inline-promo-btn:hover {
    background-color: #9b59b6;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .blog-hero .title {
        font-size: 2.2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .inline-product-promo {
        flex-direction: column;
        text-align: center;
    }
    
    .inline-promo-img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }
}
