﻿
.prediction-card {
    max-width: 500px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 32px;
    width: 600px;
    padding: 24px;
    /*background: #2c2d32;*/
    /*background: #1d1f27;*/
    /*background: linear-gradient(135deg, #7b2ff7, #3b1a58, #1d1f27);*/
    /*background: linear-gradient(145deg, #3e5c76, #273044, #1d1f27);*/
    /*background: linear-gradient(160deg, #2b6cb0, #1f344a, #1d1f27);*/
    /*background: linear-gradient(120deg, #54346e, #2a1f36, #1d1f27);*/
    /*background: linear-gradient(180deg, #3b3454, #242633, #1d1f27);
    background: linear-gradient(180deg, #555353, #121318, #1d1f27);
    background: linear-gradient(155deg, #555353, #121318, #18191e);*/
    background: linear-gradient(155deg, #333131, #121318, #18191e);
    backdrop-filter: blur(20px);
    /*border: 1px solid rgb(97, 98, 101);*/
    /*border-radius: 20px;*/
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    /* Bank-card horizontal shape */
    aspect-ratio: 3 / 1.2;
}

/* Background logo */
.bg-logo {
    position: absolute;
    inset: 0;
    background-image: url("../Backpack-Icon-Color.svg");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 55%;
    opacity: 0.08;
    pointer-events: none;
}

/* Avatar & username block */
.avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 25%;
    z-index: 2;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.username {
    margin-top: 8px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.9;
}

/* Grid of values */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 16px;
    z-index: 2;
}

.field {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 11px;
    opacity: 0.7;
}

.value {
    font-size: 18px;
    font-weight: 700;
    opacity: 0.95;
}

/* highlight (optional fields) */
.highlight .value {
    /*color: #5df2c2;*/
    color: #27dba1;
}

/* ===== MOBILE & SMALL SCREENS ===== */
@media (max-width: 600px) {
    .prediction-card {
        width: 100%;
        padding: 18px;
        aspect-ratio: unset; /* allow natural height */
        /*flex-direction: column;*/
        gap: 20px;
        /*border-radius: 16px;*/
    }

    .bg-logo {
        background-size: 60%;
        /* background-position: center; */
        opacity: 0.06;
    }

    .avatar-block {
        /*flex-direction: row;*/
        justify-content: flex-start;
        /*width: 100%;*/
        gap: 12px;
        min-width: 25%;
        text-align: center;
    }

    .avatar {
        width: 60px;
        height: 60px;
    }

    .username {
        margin: 0;
        font-size: 15px;
    }

    .info-grid {
        width: 100%;
        grid-template-columns: 1fr 1fr; /* keeps two columns */
        gap: 14px;
    }

    .label {
        font-size: 10px;
    }

    .value {
        font-size: 16px;
    }
}

.custom-width {
    max-width: 500px;
}

@media (max-width: 492px) {
    .value {
        font-size: 14px;
    }
}

.action-buttons {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

    .action-buttons button {
        padding: 10px 18px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        border: none;
        transition: 0.2s ease;
        width: 50%;
    }

/* Copy button */
.copy-btn {
    background: rgba(255,255,255,0.12);
    color: white;
}

    .copy-btn:hover {
        background: rgba(255,255,255,0.18);
    }

/* Share on X button */
.x-btn {
    background: #000;
    color: white;
}

    .x-btn:hover {
        background: #111;
    }

/* Mobile adjustments */
@media (max-width: 600px) {
    .action-buttons {
        width: 100%;
        justify-content: space-between;
        /*max-width: 80%;*/
    }

        .action-buttons button {
            flex: 1;
            text-align: center;
        }

    /*#card-container {
        width: 80%;
    }
    .form-wrapper {
        max-width: 80%;
    }*/

    .custom-width {
        max-width: 80%;
        min-width: 80%;
    }
}

@media (max-width: 450px) {
    .action-buttons {
        width: 100%;
        justify-content: space-between;
        /*max-width: 95%;*/
    }

        .action-buttons button {
            flex: 1;
            text-align: center;
        }

    /*#card-container {
        width: 95%;
    }
*/
    .custom-width {
        max-width: 95%;
        min-width: 95%;
    }
}

#card-wrapper {
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */
    /*padding: 20px;*/ /* safe padding for mobile */
    box-sizing: border-box;
    min-width: 100%;
}


.card-border {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgb(97, 98, 101);
}
