/* Enhanced Exchange Showcase Section */
.exchange-showcase {
    position: relative;
    padding: 120px 0 140px 0;
    background-color: rgb(18, 18, 27);
    overflow: hidden;
    margin-top: 10px;
}

/* Background elements */
.exchange-showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.exchange-showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(165, 255, 0, 0.1), transparent 70%);
    opacity: 0.7;
    filter: blur(50px);
    z-index: 1;
    animation: pulse-glow 8s ease-in-out infinite;
}

.exchange-showcase-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(165, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 2;
}

/* Main content container */
.exchange-showcase-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    height: auto;
    min-height: 300px;
    gap: 60px; /* Added gap between flex items */
}

/* Left side with text content */
.exchange-text-content {
    flex: 1;
    padding-right: 40px; /* Restored to original value */
    position: relative;
    z-index: 3;
}

.exchange-title-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(165, 255, 0, 0.1);
    border: 1px solid rgba(165, 255, 0, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
}

.exchange-title-pill i {
    color: rgba(165, 255, 0, 0.8);
    margin-right: 8px;
    font-size: 14px;
}

.exchange-title-pill span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
}

.exchange-text-content h2 {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.exchange-text-content h2 .gradient-text {
    background: linear-gradient(90deg, #CFFF70, #a8f340);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.exchange-text-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

/* Right side with exchange logos */
.supported-exchanges-container {
    position: relative;
    width: 50%;
    height: 175px;
    z-index: 3;
}

.exchange-container {
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
}

.exchange-container.show {
    opacity: 1;
}

.exchange-container.top {
    position: absolute;
    top: 0;
    right: 100px;
}

.exchange-container.bottom {
    position: absolute;
    bottom: 0;
    left: 20px;
}

.exchange-container img {
    height: 65px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Exchange icons list */
.top-exchange-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    max-width: 600px;
}

.top-exchange-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 30, 40, 0.5);
    padding: 5px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    cursor: pointer;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    position: relative; /* Added for positioning the glow effect */
}

/* Green glow circle for mobile animation */
.top-exchange-list img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 255, 0, 0.3) 0%, rgba(165, 255, 0, 0) 70%);
    opacity: 0;
    z-index: -1;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

/* Class for active glow */
.top-exchange-list img.active-glow::before {
    opacity: 1;
}

.top-exchange-list img:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(165, 255, 0, 0.3),
        0 0 20px rgba(165, 255, 0, 0.2);
}

/* View all link */
.full-exchange-list-link {
    margin-top: 20px;
}

.full-exchange-list-link a {
    display: inline-flex;
    align-items: center;
    color: rgba(165, 255, 0, 0.8);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.full-exchange-list-link a:hover {
    color: rgba(165, 255, 0, 1);
}

.full-exchange-list-link a i {
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.full-exchange-list-link a:hover i {
    transform: translateX(5px);
}

/* Floating particles */
.exchange-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.exchange-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(165, 255, 0, 0.5);
    border-radius: 50%;
    filter: blur(1px);
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .exchange-showcase-container {
        flex-direction: column;
        text-align: center;
    }

    .exchange-text-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .top-exchange-list {
        justify-content: center;
        margin: 30px auto;
    }

    .supported-exchanges-container {
        display: none; /* Explicitly hide on mobile */
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Keep original positioning for exchanges */
    .exchange-container.top {
        top: 0;
        right: 50%;
    }

    .exchange-container.bottom {
        bottom: 0;
        left: 50%;
    }
}

@media (max-width: 768px) {
    .exchange-showcase {
        padding: 80px 0;
    }

    .exchange-text-content h2 {
        font-size: 32px;
    }

    .exchange-text-content p {
        font-size: 16px;
    }

    .supported-exchanges-container {
        height: 250px;
    }

    /* Keep original positioning for exchanges */
}

@media (max-width: 576px) {
    .exchange-showcase {
        padding: 60px 0;
    }

    .exchange-text-content h2 {
        font-size: 28px;
    }

    .top-exchange-list {
        gap: 10px;
    }

    .top-exchange-list img {
        width: 35px;
        height: 35px;
    }

    .supported-exchanges-container {
        height: 200px;
    }

    /* Keep original positioning for exchanges */

    /* Make images smaller on very small screens */
    .exchange-container img {
        height: 55px;
    }
}
