/* ========================================
   Z3M EDITORIAL SECTION - MODERN STYLES
   Prefixo: z3m-editorial-*
   ======================================== */

/* 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: 1200px;
    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 */
.z3m-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch; /* Faz todos os cards terem a mesma altura */
}

/* Info Cards Base */
.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;
    display: flex;
    flex-direction: column;
    height: 100%; /* Força altura total do grid */
}

.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(-5px);
    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 Icon */
.z3m-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Não encolhe */
}

.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 0 20px 0;
    min-height: 2em; /* Garante altura mínima de 2 linhas */
    flex-shrink: 0; /* Não encolhe */
}

.z3m-card-content {
    color: #4a5568;
    flex-grow: 1; /* Faz o conteúdo crescer para preencher espaço disponível */
}

/* Feature Items (Card 1) */
.z3m-feature-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    min-height: 65px; /* Altura mínima consistente */
}

.z3m-feature-item:last-child {
    border-bottom: none;
}

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

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

/* Type Items (Card 2) */
.z3m-type-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    min-height: 100px; /* Altura mínima consistente */
}

.z3m-type-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.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.95rem;
    text-align: justify;
}

/* Benefits List (Card 3) */
.z3m-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.z3m-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
    min-height: 50px; /* Altura mínima consistente */
}

.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-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .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;
    }
}