/* ========================================
   Z3M EDITORIAL SECTION - MODERN STYLES
   Prefixo: z3m-editorial-*
   VERSÃO HORIZONTAL - CADA CARD EM UMA LINHA
   ======================================== */

/* Container Principal */
.z3m-editorial-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f5 100%);
    padding: 60px 20px;
    margin: 0 0 40px 0;
    position: relative;
    overflow: hidden;
}

.z3m-editorial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #fbb034 100%);
}

.z3m-editorial-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Header */
.z3m-editorial-hero {
    text-align: center;
    margin-bottom: 50px;
    animation: z3m-fadeInUp 0.8s ease-out;
}

.z3m-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: z3m-pulse 2s ease-in-out infinite;
}

.z3m-badge-icon {
    font-size: 18px;
    animation: z3m-sparkle 1.5s ease-in-out infinite;
}

.z3m-editorial-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.z3m-title-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.z3m-editorial-lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

.z3m-highlight-number {
    color: #f7931e;
    font-weight: 700;
    font-size: 1.15em;
}

/* Info Cards Grid - LAYOUT EM LINHAS HORIZONTAIS */
.z3m-info-grid {
    display: flex;
    flex-direction: column; /* Cards em coluna = linhas uma abaixo da outra */
    gap: 25px;
    margin-bottom: 40px;
}

/* Info Cards Base - LAYOUT HORIZONTAL INTERNO */
.z3m-info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: z3m-fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    width: 100%; /* Ocupa toda a largura */
}

.z3m-info-card:nth-child(1) { animation-delay: 0.1s; }
.z3m-info-card:nth-child(2) { animation-delay: 0.2s; }
.z3m-info-card:nth-child(3) { animation-delay: 0.3s; }

.z3m-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.z3m-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Variants */
.z3m-card-primary::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.z3m-card-secondary::before {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.z3m-card-accent::before {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

/* Card Header - Ícone ao lado do título */
.z3m-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Card Icon */
.z3m-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.z3m-card-primary .z3m-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.z3m-card-secondary .z3m-card-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.z3m-card-accent .z3m-card-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.z3m-info-card:hover .z3m-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Card Title */
.z3m-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.z3m-card-content {
    color: #4a5568;
}

/* Feature Items (Card 1) - LAYOUT HORIZONTAL EM GRID */
.z3m-card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.z3m-feature-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #667eea;
}

.z3m-feature-label {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.z3m-feature-value {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    text-align: justify;
}

/* Type Items (Card 2) - LAYOUT HORIZONTAL EM GRID */
.z3m-card-secondary .z3m-card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.z3m-type-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #f5576c;
}

.z3m-type-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.z3m-type-icon {
    font-size: 1.5rem;
}

.z3m-type-desc {
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: justify;
}

/* Benefits List (Card 3) - LAYOUT HORIZONTAL EM GRID */
.z3m-card-accent .z3m-card-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.z3m-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents; /* Faz os li's participarem do grid do pai */
}

.z3m-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: justify;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #00f2fe;
}

.z3m-benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

/* Editorial Footer */
.z3m-editorial-footer {
    margin-top: 40px;
    animation: z3m-fadeInUp 1s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

/* Tip Box */
.z3m-tip-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(253, 203, 110, 0.3);
}

.z3m-tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.z3m-tip-content {
    color: #2d3748;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

/* CTA Scroll */
.z3m-cta-scroll {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.z3m-cta-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
}

.z3m-cta-arrow {
    font-size: 2rem;
    color: #667eea;
    animation: z3m-bounce 2s ease-in-out infinite;
}

/* Animations */
@keyframes z3m-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes z3m-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes z3m-sparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

@keyframes z3m-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .z3m-editorial-section {
        padding: 40px 15px;
    }

    .z3m-editorial-title {
        font-size: 1.75rem;
    }

    .z3m-editorial-lead {
        font-size: 1rem;
    }

    .z3m-info-card {
        padding: 25px 20px;
    }

    .z3m-card-title {
        font-size: 1.25rem;
    }

    /* Em mobile, itens em coluna única */
    .z3m-card-content,
    .z3m-card-secondary .z3m-card-content,
    .z3m-card-accent .z3m-card-content {
        grid-template-columns: 1fr;
    }

    .z3m-tip-box {
        flex-direction: column;
        text-align: center;
    }

    .z3m-cta-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .z3m-editorial-title {
        font-size: 1.5rem;
    }

    .z3m-hero-badge {
        font-size: 12px;
        padding: 6px 15px;
    }

    .z3m-card-icon {
        width: 48px;
        height: 48px;
    }

    .z3m-card-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Print Styles */
@media print {
    .z3m-editorial-section::before,
    .z3m-cta-scroll {
        display: none;
    }

    .z3m-info-card {
        break-inside: avoid;
    }
}