/* 
 * Lingo Theme - Blog Template Module
 * Elite Visuals • Glassmorphism • Glow Effects
 */

.blog-template-wrapper {
    background-color: #0F0F0F;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 8rem;
}

.blog-narrow-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glow Elements */
.blog-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 1;
    pointer-events: none;
}

.blog-glow-primary {
    background: radial-gradient(circle, rgba(20, 57, 94, 1) 0%, transparent 70%);
    top: -5%;
    right: -5%;
}

.blog-glow-secondary {
    background: radial-gradient(circle, rgba(94, 22, 30, 1) 0%, transparent 70%);
    bottom: 20%;
    left: -10%;
}

@media (max-width: 768px) {
    .blog-template-wrapper h1 {
        font-size: 32px !important;
    }
}

/* Glass Panels */
.blog-glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(120, 58, 251, 0.1);
}

/* Hero Section */
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.blog-hero-badge .material-symbols-outlined {
    font-size: 0.875rem;
    color: var(--primary);
}

.blog-hero-badge span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
}

/* Dedicated Gradient Text Fix */
.blog-gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline;
}

/* Use inline to prevent block-clipping issues */

/* Featured Post */
.featured-post-card {
    border-radius: 1.5rem;
    overflow: hidden;
}

.featured-img-wrap {
    position: relative;
    overflow: hidden;
}

.featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.featured-post-card:hover .featured-img-wrap img {
    transform: scale(1.05);
}

.featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0F0F0F 0%, transparent 60%);
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .featured-img-overlay {
        background: linear-gradient(to top, #0F0F0F 0%, transparent 60%);
    }
}

.featured-content-paddings {
    padding: 2.5rem !important;
}

@media (min-width: 768px) {
    .featured-content-paddings {
        padding: 4rem !important;
    }
}

@media (max-width: 480px) {
    .featured-content-paddings {
        padding: 1.5rem !important;
    }
}

.featured-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(120, 58, 251, 0.1);
    border: 1px solid rgba(120, 58, 251, 0.2);
    border-radius: 0.5rem;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 1rem;
}

/* Grid Cards */
.blog-post-grid {
    margin-top: 4rem;
}

.blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-content {
    padding: 2rem !important;
}

.blog-card-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.1);
}

.card-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Newsletter Banner */
.blog-newsletter-banner {
    margin-top: 6rem;
    padding: 4rem;
    border-radius: 2.5rem;
    position: relative;
    overflow: hidden;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .newsletter-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.newsletter-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(120, 58, 251, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    min-width: unset;
    width: 100%;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Read More Links */
.read-more-btn {
    font-size: 1rem !important;
    font-weight: 800;
    padding: 0.75rem 0 !important;
    padding-left: 2rem !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.featured-post-card .read-more-btn {
    padding-left: 0 !important;
    /* Keep aligned for featured */
}

/* Utilities */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.group-hover-text-primary:hover h2,
.group-hover-text-primary:hover h3 {
    color: var(--primary) !important;
}