/* =========================
   WRAPPER
========================= */

.popular-trades-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 35px;
    padding-bottom: 10%;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    font-family: 'Fredoka', Arial, Helvetica, sans-serif;
}

.popular-trades-wrap__text-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popular-trades-wrap__text {
    font-size: 40px;
    font-weight: 700;
    color: #002f7a;
    text-shadow: 1px 3px 6px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    text-align: center;
}

.popular-trades-wrap__desc {
    font-size: 15px;
    width: 70%;
    text-align: center;
    color: rgb(37, 37, 37);
}



/* --- OUTER WRAPPER (HORIZONTAL) --- */
.popular-trades-input-box {
    display: flex;
    gap: 12px;
    width: 90%;
    margin-top: 20px;
}

/* --- INDIVIDUAL SEARCH BOX (matches val-search-input-box) --- */
.popular-trades-input-box-1,
.popular-trades-input-box-2 {
    position: relative;
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
}

/* --- ICON (matches val-search-input-icon) --- */
.popular-trades-your-input-picture {
    position: absolute;
    left: 14px;
    height: 60%;
    opacity: 0.65;
    pointer-events: none;
}

/* --- INPUT (matches val-search-input) --- */
.popular-trades-your-input,
.popular-trades-their-input {
    width: 100%;
    height: 100%;
    padding-left: 48px;
    font-size: 15px;

    border-radius: 10px;
    border: 1.8px solid #e3e3e3;
    background: #fafafa;

    outline: none;
    transition: 0.25s ease;
}

/* --- HOVER (exact) --- */
.popular-trades-your-input:hover,
.popular-trades-their-input:hover {
    background: #ffffff;
    border-color: #d5d5d5;
}

/* --- FOCUS (exact) --- */
.popular-trades-your-input:focus,
.popular-trades-their-input:focus {
    border-color: #ffca00;
    box-shadow: 0 0 6px rgba(255, 200, 0, 0.45);
    background: #ffffff;
}

/* --- MOBILE STACK (same behavior) --- */
@media (max-width: 700px) {
    .popular-trades-input-box {
        flex-direction: column;
    }
}













.popular-trades-wrap__trade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    margin-top: 50px;
    gap: 40px;
    justify-items: center;
    width: 100%;
}

/* =========================
   TRADE CARD
========================= */
.trade-grid__trade-box {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    width: 100%;
    max-width: 310px;
    min-height: 200px;
    background: linear-gradient(145deg, #0047b3, #3f00a1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 12px 25px rgba(0,0,0,0.35),
        inset 0 0 15px rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* =========================
   SIDE CONTAINERS
========================= */
.trade-grid__trade-box-container {
    background: rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px 10px;
    gap: 10px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease, transform 0.2s ease;
}

.trade-grid__trade-box-container:hover {
    background: rgba(255,255,255,0.12);
}

.trade-grid__trade-box-container-your {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.trade-grid__trade-box-container-their {
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* =========================
   YOUR / THEIR TEXT
========================= */
.trade-box-container-text {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* =========================
   SLOT GRID
========================= */
.popular-trades-trade-box {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 10px;
}

.trade-box-slots {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #ffffff;
    height: 50px;
    border-radius: 10px;
    box-shadow:
        0 6px 12px rgba(0,0,0,0.25),
        inset 0 -2px 0 rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.trade-box-slots:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 18px rgba(0,0,0,0.35),
        inset 0 -2px 0 rgba(0,0,0,0.12);
    cursor: pointer;
    background: #f5f5f5;
}

.trade-box-slot-image {
    width: 32px;
    height: auto;
    transition: transform 0.2s ease;
}


/* Hover info */
.trade-box-slots-hover {
    position: absolute;
    bottom: 110%;
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    display: none;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    z-index: 10;
}

.trade-box-slots-hover-name {
    font-weight: 600;
}

.trade-box-slots-hover-value {
    font-weight: 500;
    font-size: 11px;
    margin-top: 2px;
}

/* =========================
   VALUE BAR
========================= */
.trade-box-container-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
    height: 60px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trade-box-container-value-texty {
    color: white;
    font-weight: 600;
}

/* Background gradients */
.trade-box-container-value-your {
    background: linear-gradient(90deg, #00e676, #004d1a);
}

.trade-box-container-value-their {
    background: linear-gradient(90deg, #ffc400, #5a3d00);
}

/* Coin image */
.trade-box-container-value-image {
    width: 18px;
    height: auto;
}

/* Stack value + Adds */
.trade-box-container-value-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
}

.trade-box-container-value-box > .trade-box-container-value-texty {
    margin-bottom: 4px;
    font-size: 16px;
}

.trade-box-container-value-adds {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}









.offer-want {
    width: 100%;
    height: auto;
    align-self: center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35));
}

.trade-box-slot-image {
    width: 90%;
}
.trade-box-slots-hover {
    position: absolute;
    display: none;
    flex-direction: column;
    background-color: #000000;
    opacity: 0.9;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border-radius: 9px;
    color: white;
    font-size: 8px;
    text-align: center;
    font-weight: 500;
    align-items: center;
    justify-content: center;

    white-space: normal; 
    word-break: break-word; 
    padding: 4px 6px;    
    overflow-wrap: break-word;    
}
.no-trades-message {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
    color: #aaaaaa;
    font-style: italic;
}


/* EMPTY TRADE SLOT */
.trade-box-slot-empty {
  background: #2a2a2a;
  border: 1.5px dashed #555;
  opacity: 0.45;
  pointer-events: none;
}

/* Optional: make empty slots slightly darker */
.trade-box-slot-empty::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: inherit;
}

