.values-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff; 
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}


.values-main__trade {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.values-main__trade-text-game {
    width: auto;
    padding: 15px 16px;
    border-radius: 12px;
    color: gray;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}
.values-main__trade-how-values-work {
    width: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    color: #003a85; /* link-like color */
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none; /* remove default underline */
    position: relative; /* needed for pseudo-element */
    transition: all 0.2s ease;
}

/* Custom underline */
.values-main__trade-how-values-work::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px; /* distance below text */
    width: 100%;
    height: 2px; /* thickness of the underline */
    background-color: rgba(235, 199, 0, 0.9); /* color of the underline */
    border-radius: 2px;
    transition: all 0.2s ease;
}

.values-main__trade-how-values-work:hover, .values-main__trade-how-values-work:hover::after {
    transform: scale(1.05);
    opacity: 0.9;
}



@media (max-width: 700px) {
    .values-main__trade-text, .values-main__trade-text-game, .values-main__trade-how-values-work {
        transform: scale(0.9);
    }
}
.values-main__val {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 35px;
    padding-bottom: 10%;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}
.values-main__val {
    display: flex;
    flex-direction: column;

}




/* Container for title section */
.values-main__val-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
h1 {
    padding: 0;
    margin: 0;
}

/* Main title */
.values-title {
    font-size: 40px;       /* Large title */
    font-weight: 700;
    color: #002f7a;
    margin-bottom: 0px;
}

/* Description paragraph */
.values-description {
    width: 95%;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
}

/* Link inside description */
.values-link {
    color: #003a85;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(235, 199, 0, 0.9); /* custom underline */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.values-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    .values-title {
        font-size: 30px;
    }

    .values-description {
        font-size: 13px;
    }
}









.values-main__val-button-box {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}
.values-main__val-button-box button {
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Fredoka', Arial, Helvetica, sans-serif;
    font-weight: 600;
    color: #000000;
    background: linear-gradient(145deg, #ffffff, #cdcdcd);
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18); 
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.2s ease;
}














.values-main__val-search-box {
    width: 92%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px;
    margin-top: 20px;
}

.values-main__val-search-toogle {
    width: 100px; /* can adjust */
    height: 35px;
    border-radius: 30px;
    background: linear-gradient(145deg, #265dff, #002eb5); /* default: Blue */
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.values-main__val-search-toogle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px; /* normal state */
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.3s ease;
}

/* Toggled state */
.values-main__val-search-toogle.active {
    background: linear-gradient(145deg, #28a745, #1e7e34); /* green */
}

.values-main__val-search-toogle.active::before {
    left: calc(100% - 3px - 29px); /* 100% width - circle width - margin */
}





/* --- SEARCH BOX --- */
.val-search-input-box {
    position: relative;
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
}

.val-search-input-icon {
    position: absolute;
    left: 14px;
    height: 60%;
    opacity: 0.65;
}

.val-search-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;
}

.val-search-input:hover {
    background: #ffffff;
    border-color: #d5d5d5;
}

.val-search-input:focus {
    border-color: #ffca00;
    box-shadow: 0 0 6px rgba(255, 200, 0, 0.45);
    background: #ffffff;
}

/* --- FILTER BUTTON (Minimal Style) --- */
.val-search-filter-box {
    position: relative;
    width: 120px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    column-gap: 7px;
    background: linear-gradient(
        135deg,
        rgba(255, 217, 0, 0.9),
        rgba(255, 210, 60, 0.9)
    );

    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.val-search-filter-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(255, 200, 0, 0.65);
}

.val-search-filter-box:active {
    transform: scale(0.96);
}

.val-search-filter-icon {
    left: 14px;
    height: 50%;
    opacity: 0.85;
}

.val-search-filter-text {
    font-size: 15px;
    font-weight: 600;
    color: #5c4500;
    user-select: none;
}







/* Container for all fruit slots */
.values-main__val-fruit-values-box {
    margin-top: 30px;
    width: 95%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

/* Single fruit slot */
.val-fruit-slot {
    width: 150px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.val-fruit-slot:hover {
    transform: scale(1.02);
    cursor: pointer;   
}

.val-fruit-slot__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
    background-color: rgb(233, 233, 233);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.val-fruit-slot__main-trend {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ffcc00;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.val-fruit-slot__main-image {
    width: 100px;
    height: 100px;
    margin-top: 10px;
    object-fit: contain;
}

.val-fruit-slot__main-name {
    font-weight: 700;
    font-size: 18px;
    color: #222;
    text-align: center;
    margin-bottom: 5px;
}

/* Type buttons container */
.val-fruit-slot__type {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 13px;
}

/* Base button style */
.val-fruit-slot__type-normal,
.val-fruit-slot__type-Permanent {
    flex: 1;
    padding: 6px 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    font-family: 'Fredoka', Arial, Helvetica, sans-serif;
    border-radius: 5px;
    background: none;
}



/* Picked button style */
.val-fruit-slot__type-normal.picked {
    background: linear-gradient(145deg, #265dff, #002eb5);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3), inset 0 0 6px rgba(255,255,255,0.5);
    border-radius: 5px;
}

.val-fruit-slot__type-Permanent.picked {
    background: linear-gradient(145deg, #28a745, #1e7e34);
    color: #fff;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3), inset 0 0 6px rgba(255,255,255,0.5);
    border-radius: 5px;
}

/* Unpicked button style */
.val-fruit-slot__type-normal:not(.picked),
.val-fruit-slot__type-Permanent:not(.picked) {
    color: #222;
}

/* Hover effect for unpicked */
.val-fruit-slot__type-normal:not(.picked):hover,
.val-fruit-slot__type-Permanent:not(.picked):hover {
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
}



/* Info section (value, demand, price) */
.val-fruit-slot__info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.val-fruit-slot__info-value-box,
.val-fruit-slot__info-demand-box,
.val-fruit-slot__info-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffffcc;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.val-fruit-slot__info-value-name,
.val-fruit-slot__info-demand-name,
.val-fruit-slot__info-price-name {
    color: #555;
}

.val-fruit-slot__info-value,
.val-fruit-slot__info-demand,
.val-fruit-slot__info-price {
    color: #222;
    font-weight: 700;
}

/* Optional: subtle hover highlight for the whole card */
.val-fruit-slot:hover .val-fruit-slot__info-value-box,
.val-fruit-slot:hover .val-fruit-slot__info-demand-box,
.val-fruit-slot:hover .val-fruit-slot__info-price-box {
    background-color: #ffffff;
}































.values-main__val-button-box button:hover {
    color: white;
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(145deg, #265dff, #002eb5);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 6px rgba(255, 255, 255, 0.5);
}

.val-button-clicked {
    background: linear-gradient(145deg, #265dff, #002eb5) !important;
    color: white !important;
        box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 6px rgba(255, 255, 255, 0.5) !important;
}






@media (max-width: 700px) {
    .val-search-filter-text {
        display: none;
    }
}

@media (max-width: 650px) {
    .values-main__val-button-box {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .values-main__val-button-box button {
        font-size: clamp(10px, 3vw, 14px);
        padding: 8px 12px; 
    }
}