/* =====================================================
   GLAMZN FEATURED SECTION - Modern & Professional
   ===================================================== */

.glamzn-featured-section {
    padding: 40px 0 20px 0;
    background: #fff;
    transition: background 0.3s ease;
}

.dark .glamzn-featured-section {
    background: #0f172a;
}

.glamzn-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 16px;
}

@media (min-width: 769px) {
    .glamzn-featured-grid {
        padding: 0;
    }
}

/* =====================================================
   HERO POST (Large Featured)
   ===================================================== */

.glamzn-hero-post {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.dark .glamzn-hero-post {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glamzn-hero-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.dark .glamzn-hero-post:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.glamzn-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.glamzn-post-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.glamzn-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.glamzn-hero-post:hover .glamzn-post-image img {
    transform: scale(1.05);
}

.glamzn-post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.glamzn-post-content {
    padding: 24px;
}

.glamzn-post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #1e293b;
    transition: color 0.3s ease;
}

.dark .glamzn-post-title {
    color: #fff;
}

.glamzn-hero-post:hover .glamzn-post-title {
    color: #4f46e5;
}

.dark .glamzn-hero-post:hover .glamzn-post-title {
    color: #818cf8;
}

.glamzn-post-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px 0;
}

.dark .glamzn-post-excerpt {
    color: #94a3b8;
}

.glamzn-post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.dark .glamzn-post-meta {
    color: #94a3b8;
}

.glamzn-post-meta i {
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.8;
}

.glamzn-meta-date,
.glamzn-meta-reading {
    display: flex;
    align-items: center;
}

.glamzn-meta-reading {
    color: #4f46e5;
    font-weight: 600;
}

.dark .glamzn-meta-reading {
    color: #818cf8;
}

/* =====================================================
   SECONDARY POSTS (Grid Cards)
   ===================================================== */

.glamzn-secondary-posts {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.glamzn-card-post {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.dark .glamzn-card-post {
    background: #1e293b;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.glamzn-card-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dark .glamzn-card-post:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.glamzn-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.glamzn-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.glamzn-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glamzn-card-post:hover .glamzn-card-image img {
    transform: scale(1.08);
}

.glamzn-card-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.glamzn-card-content {
    padding: 16px;
}

.glamzn-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #1e293b;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .glamzn-card-title {
    color: #fff;
}

.glamzn-card-post:hover .glamzn-card-title {
    color: #4f46e5;
}

.dark .glamzn-card-post:hover .glamzn-card-title {
    color: #818cf8;
}

.glamzn-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    flex-wrap: wrap;
}

.dark .glamzn-card-meta {
    color: #94a3b8;
}

.glamzn-card-meta i {
    margin-right: 3px;
    font-size: 11px;
    opacity: 0.8;
}

.glamzn-card-date,
.glamzn-card-reading {
    display: flex;
    align-items: center;
}

.glamzn-card-reading {
    color: #4f46e5;
    font-weight: 600;
}

.dark .glamzn-card-reading {
    color: #818cf8;
}

/* =====================================================
   RESPONSIVE - Tablet
   ===================================================== */

@media (max-width: 1024px) {
    .glamzn-featured-grid {
        gap: 20px;
    }

    .glamzn-post-image {
        height: 350px;
    }

    .glamzn-post-title {
        font-size: 24px;
    }

    .glamzn-card-image {
        height: 160px;
    }
}

/* =====================================================
   RESPONSIVE - Mobile (OPTIMISÉ - PLEIN ÉCRAN)
   ===================================================== */

@media (max-width: 768px) {
    .glamzn-featured-section {
        padding: 20px 0;
    }

    /* Supprime les marges du container sur mobile */
    .glamzn-featured-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .glamzn-featured-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0 12px;
    }

    .glamzn-hero-post {
        grid-column: 1;
        grid-row: auto;
        border-radius: 12px;
    }

    .glamzn-post-image {
        height: 240px;
    }

    .glamzn-post-content {
        padding: 16px;
    }

    .glamzn-post-title {
        font-size: 19px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .glamzn-post-excerpt {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .glamzn-post-meta {
        gap: 12px;
        font-size: 12px;
    }

    .glamzn-post-meta i {
        font-size: 13px;
        margin-right: 4px;
    }

    /* OPTIMISÉ: 2 colonnes pour les posts secondaires */
    .glamzn-secondary-posts {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .glamzn-card-post {
        border-radius: 10px;
    }

    .glamzn-card-image {
        height: 150px;
    }

    .glamzn-card-content {
        padding: 12px;
    }

    .glamzn-card-title {
        font-size: 13px;
        margin-bottom: 6px;
        line-height: 1.4;
        -webkit-line-clamp: 3;
    }

    .glamzn-card-meta {
        font-size: 10px;
        gap: 8px;
    }

    .glamzn-card-meta i {
        font-size: 10px;
        margin-right: 3px;
    }

    .glamzn-card-category {
        font-size: 8px;
        padding: 3px 7px;
        border-radius: 12px;
    }

    .glamzn-post-category {
        font-size: 10px;
        padding: 5px 10px;
        top: 10px;
        left: 10px;
    }
}

/* =====================================================
   RESPONSIVE - Small Mobile (OPTIMISÉ - PLEIN ÉCRAN)
   ===================================================== */

@media (max-width: 480px) {
    .glamzn-featured-section {
        padding: 16px 0;
    }

    .glamzn-featured-grid {
        gap: 12px;
        padding: 0 10px;
    }

    .glamzn-hero-post {
        border-radius: 10px;
    }

    .glamzn-post-image {
        height: 220px;
        border-radius: 10px 10px 0 0;
    }

    .glamzn-post-content {
        padding: 14px;
    }

    .glamzn-post-title {
        font-size: 17px;
        margin-bottom: 6px;
        line-height: 1.35;
    }

    .glamzn-post-excerpt {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .glamzn-post-meta {
        gap: 10px;
        font-size: 11px;
        flex-wrap: wrap;
    }

    .glamzn-post-meta i {
        font-size: 12px;
    }

    .glamzn-post-category {
        font-size: 9px;
        padding: 4px 9px;
        top: 8px;
        left: 8px;
    }

    /* OPTIMISÉ: Garde 2 colonnes sur mobile */
    .glamzn-secondary-posts {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .glamzn-card-post {
        border-radius: 10px;
    }

    .glamzn-card-image {
        height: 140px;
        border-radius: 10px 10px 0 0;
    }

    .glamzn-card-content {
        padding: 10px;
    }

    .glamzn-card-title {
        font-size: 12px;
        -webkit-line-clamp: 3;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .glamzn-card-meta {
        font-size: 9px;
        gap: 6px;
    }

    .glamzn-card-category {
        font-size: 7px;
        padding: 3px 6px;
    }
}

/* =====================================================
   RESPONSIVE - Extra Small Mobile (OPTIMISÉ - PLEIN ÉCRAN)
   ===================================================== */

@media (max-width: 380px) {
    .glamzn-featured-section {
        padding: 12px 0;
    }

    .glamzn-featured-grid {
        gap: 10px;
        padding: 0 8px;
    }

    .glamzn-post-image {
        height: 200px;
    }

    .glamzn-post-content {
        padding: 12px;
    }

    .glamzn-post-title {
        font-size: 16px;
        line-height: 1.35;
    }

    .glamzn-post-excerpt {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-height: 1.5;
    }

    .glamzn-post-meta {
        font-size: 10px;
        gap: 8px;
    }

    /* OPTIMISÉ: Garde 2 colonnes même sur très petits écrans */
    .glamzn-secondary-posts {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .glamzn-card-image {
        height: 120px;
    }

    .glamzn-card-content {
        padding: 8px;
    }

    .glamzn-card-title {
        font-size: 11px;
        -webkit-line-clamp: 3;
        line-height: 1.4;
    }

    .glamzn-card-meta {
        font-size: 8px;
        gap: 4px;
    }

    .glamzn-card-category {
        font-size: 6px;
        padding: 2px 5px;
    }
}
