/**
 * Cases Optimized - Cases de sucesso lado a lado e compactos
 */

/* === SEÇÃO CASES OTIMIZADA === */
.cases-section {
    margin-top: 3rem !important;
    padding: 3rem 0 !important;
    background: linear-gradient(
        135deg, 
        rgba(228, 0, 43, 0.03) 0%, 
        rgba(0, 0, 0, 0.95) 100%
    ) !important;
    border-radius: 16px !important;
    position: relative !important;
}

.cases-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        radial-gradient(circle at 30% 30%, rgba(228, 0, 43, 0.02) 0%, transparent 50%) !important;
    z-index: 0 !important;
}

.cases-title {
    font-size: 2rem !important;
    color: #ffffff !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    font-weight: 600 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* === GRID LADO A LADO === */
.cases-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
}

/* === CARDS COMPACTOS === */
.case-item {
    background: linear-gradient(
        135deg, 
        rgba(228, 0, 43, 0.06) 0%, 
        rgba(0, 0, 0, 0.9) 100%
    ) !important;
    border: 1px solid rgba(228, 0, 43, 0.15) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
    min-height: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: center !important;
}

.case-item:hover {
    border-color: rgba(228, 0, 43, 0.3) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(228, 0, 43, 0.1) !important;
}

/* === ÍCONE DO CASE === */
.case-icon {
    margin: 0 auto 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.case-icon i[data-lucide] {
    width: 28px !important;
    height: 28px !important;
    stroke-width: 2 !important;
    color: #E4002B !important;
    transition: all 0.3s ease !important;
}

.case-item:hover .case-icon i[data-lucide] {
    transform: scale(1.1) !important;
    stroke-width: 2.5 !important;
    color: #E72C4F !important;
}

/* === TÍTULO DO CASE === */
.case-item h4 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

/* === CONTEÚDO COMPACTO === */
.case-item p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.4rem !important;
    text-align: left !important;
}

.case-item p:last-child {
    margin-bottom: 0 !important;
}

.case-item strong {
    color: var(--neon-green) !important;
    font-weight: 600 !important;
}

/* === CORES ESPECÍFICAS POR CASE === */

/* Case 1 - Fintech */
.case-item:nth-child(1) {
    border-left: 3px solid #FFCD00 !important;
}

.case-item:nth-child(1) .case-icon i[data-lucide] {
    color: #FFCD00 !important;
}

.case-item:nth-child(1):hover .case-icon i[data-lucide] {
    color: #FFDB2C !important;
}

.case-item:nth-child(1):hover {
    border-left-color: #FFDB2C !important;
    box-shadow: 0 15px 35px rgba(255, 205, 0, 0.1) !important;
}

/* Case 2 - Hospital */
.case-item:nth-child(2) {
    border-left: 3px solid #00B08A !important;
}

.case-item:nth-child(2) .case-icon i[data-lucide] {
    color: #00B08A !important;
}

.case-item:nth-child(2):hover .case-icon i[data-lucide] {
    color: #2CBC9D !important;
}

.case-item:nth-child(2):hover {
    border-left-color: #2CBC9D !important;
    box-shadow: 0 15px 35px rgba(0, 176, 138, 0.1) !important;
}

/* Case 3 - Clube Esportivo */
.case-item:nth-child(3) {
    border-left: 3px solid #FF8200 !important;
}

.case-item:nth-child(3) .case-icon i[data-lucide] {
    color: #FF8200 !important;
}

.case-item:nth-child(3):hover .case-icon i[data-lucide] {
    color: #FFA22C !important;
}

.case-item:nth-child(3):hover {
    border-left-color: #FFA22C !important;
    box-shadow: 0 15px 35px rgba(255, 130, 0, 0.1) !important;
}

/* === RESPONSIVIDADE === */

/* Desktop Grande (2048px+) */
@media (min-width: 2048px) {
    .cases-section {
        padding: 4rem 0 !important;
        margin-top: 4rem !important;
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 3rem !important;
    }
    
    .case-item {
        padding: 2rem !important;
        min-height: 240px !important;
    }
    
    .case-item h4 {
        font-size: 1.3rem !important;
    }
    
    .case-item p {
        font-size: 0.9rem !important;
    }
    
    .case-icon i[data-lucide] {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Tablet (769px - 2047px) */
@media (min-width: 769px) and (max-width: 2047px) {
    .cases-section {
        padding: 2.5rem 0 !important;
        margin-top: 2.5rem !important;
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .case-item {
        padding: 1.3rem !important;
        min-height: 180px !important;
    }
    
    .case-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .case-item p {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .case-icon i[data-lucide] {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
    .cases-section {
        padding: 2rem 0 !important;
        margin-top: 2rem !important;
    }
    
    .cases-title {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .cases-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .case-item {
        padding: 1.5rem !important;
        min-height: 160px !important;
    }
    
    .case-item h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .case-item p {
        font-size: 0.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .case-icon i[data-lucide] {
        width: 24px !important;
        height: 24px !important;
    }
}

/* === ANIMAÇÕES === */
.case-item {
    animation: fadeInUp 0.6s ease-out !important;
}

.case-item:nth-child(1) { animation-delay: 0.1s !important; }
.case-item:nth-child(2) { animation-delay: 0.2s !important; }
.case-item:nth-child(3) { animation-delay: 0.3s !important; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
