/* ====================================
   MARKET SECTION
==================================== */
.market-section {
    padding: clamp(3rem, 6vw, 6rem) 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 4rem);
    position: relative;
    z-index: 2;
}

.section-title h2 {
    color: #fff;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

/* Grid de Estatísticas */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(0.8rem, 1vw, 1rem);
    margin: clamp(1.5rem, 2vw, 2rem) 0;
    position: relative;
    z-index: 2;
}

/* Cards de Estatísticas */
.stat-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 128, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
}

/* Wave Container e Effects */
.wave-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    bottom: -150%;
    left: -50%;
    background: linear-gradient(
        744deg,
        rgba(0, 255, 128, 0.1),
        rgba(0, 255, 128, 0.2) 60%,
        rgba(0, 255, 128, 0.1)
    );
    border-radius: 40%;
    animation: wave 55s infinite linear;
    opacity: 0.2;
    transition: all 0.5s ease-in-out;
}

.wave:nth-child(2) {
    animation-duration: 50s;
    bottom: -160%;
    opacity: 0.15;
    background: linear-gradient(
        744deg,
        rgba(0, 255, 128, 0.08),
        rgba(0, 255, 128, 0.15) 60%,
        rgba(0, 255, 128, 0.08)
    );
}

.wave:nth-child(3) {
    animation-duration: 45s;
    bottom: -170%;
    opacity: 0.1;
    background: linear-gradient(
        744deg,
        rgba(0, 255, 128, 0.05),
        rgba(0, 255, 128, 0.1) 60%,
        rgba(0, 255, 128, 0.05)
    );
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
    padding: clamp(1rem, 1.25vw, 1.25rem);
}

/* Conteúdo dos Cards */
.stat-number {
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    font-weight: 700;
    color: #00ff80;
    margin-bottom: 0.3rem;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
    text-shadow: 0 0 15px rgba(0, 255, 128, 0.4);
}

.stat-card h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.75rem, 0.85vw, 0.85rem);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.4s ease;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.75rem, 0.8vw, 0.8rem);
    line-height: 1.3;
}

/* Market Content */
.market-content {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 128, 0.1);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    backdrop-filter: blur(10px);
}

.market-content h3 {
    color: #fff;
    font-size: clamp(1.5rem, 1.8vw, 1.8rem);
    font-weight: 700;
    margin-bottom: clamp(0.8rem, 1vw, 1rem);
    text-shadow: 0 0 15px rgba(0, 255, 128, 0.3);
    position: relative;
    display: inline-block;
}

/* Animated underline effect */
.market-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff80, transparent);
    animation: lineFlow 3s ease-in-out infinite;
}

.market-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

/* Features List */
.market-features {
    position: relative;
    display: grid;
    gap: clamp(0.8rem, 1vw, 1rem);
}

.market-features li {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1vw, 1rem);
    padding: clamp(1rem, 1.5vw, 1.5rem);
    border-radius: 10px;
    background: rgba(0, 255, 128, 0.02);
    border: 1px solid transparent;
    transition: all 0.4s ease;
    position: relative;
}

/* Hover Effects */
@media (hover: hover) {
    .stat-card:hover {
        transform: translateY(-10px);
        border-color: rgba(0, 255, 128, 0.3);
        box-shadow: 0 15px 30px rgba(0, 255, 128, 0.1),
                   0 0 20px rgba(0, 255, 128, 0.05) inset;
    }

    .stat-card:hover .wave {
        animation-duration: 30s;
        opacity: 0.4;
        bottom: -140%;
    }

    .market-content:hover {
        transform: translateY(-10px);
        border-color: rgba(0, 255, 128, 0.3);
        box-shadow: 0 20px 40px rgba(0, 255, 128, 0.1);
    }

    .market-features li:hover {
        transform: translateX(10px);
        background: rgba(0, 255, 128, 0.05);
        border-color: rgba(0, 255, 128, 0.2);
        box-shadow: 0 5px 15px rgba(0, 255, 128, 0.1);
    }
}

/* Animation Delays */
.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Animations */
@keyframes wave {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineFlow {
    0%, 100% {
        transform: scaleX(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}