@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&family=Inter:wght@300;400;600&display=swap');

:root {
    --bs-body: #f1efef;
    --bs-heading: #646464;
    --bs-primary: #0067b7;
    --bs-link-color: #043a63;
    --bs-link-hover-color: #043a63;
    --bs-text-color: #9d9d9d;
    --bs-text-white: #fff;
    --bs-desc-color: #7c7c7c;
    --bs-box-shadow-color: #535252;
    --bs-dark-color: #000;
    --bs-red-color: #b10505;
    --bs-green-color: #048339;
    --gray: #555;
    --purple: #4e65ff;
    --green-blue: #92effd;
    --white: #fff;
    --fonts: "DM Sans", sans-serif;
    --fonts-title: "Figtree", sans-serif;
}

.tournamentcard_wrap {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2%;
}

.tournament_card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 5px 0px var(--bs-box-shadow-color);
    border: 1px solid transparent;
    margin-bottom: 2%;
    cursor: pointer;
    transition: 0.3s;
}

.tournament_card:hover {
    border: 1px solid var(--bs-primary);
}

.tournament_card.box {
    width: 23.5%;
    height: auto;
}

.tournament_card .image {
    width: 100%;
    height: 30vh;
}

.tournament_card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.tournament_card .content {
    padding: 15px;
}

.tournament_card .name {
    font-size: 125%;
    font-weight: 600;
    color: var(--bs-heading);
    padding: 0;
    margin-bottom: 10px;
}

.tournament_card p:last-child {
    padding: 0;
    margin: 0;
}

/*****/
.tournament_Details {
    width: 100%;
    height: auto;
}

.tournament_Details .image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0px 0px 5px 0px var(--bs-box-shadow-color);
}

.tournament_Details .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament_Details .name {
    font-size: 150%;
    font-weight: 700;
    color: var(--bs-heading);
}

.tournament_Details .desc {
    margin-bottom: 15px;
}

.tournament_Details .content {
    width: 100%;
    height: auto;
    padding-top: 15px;
}

.datelocation {
    width: 100%;
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 10px;
}

.datelocation i {
    color: #e17603;
}

.datelocation span {
    color: var(--bs-heading);
    font-weight: 500;
}

.tournament_Details .amount {
    font-size: 105%;
    font-weight: 600;
    color: var(--bs-heading);
    padding: 0;
    margin-bottom: 5px;
}


/******/

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--bs-text-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 85%;
}

.form-group input:focus {
    outline: none;
    border: 1px solid var(--bs-primary);
}

.player-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.player-section h4 {
    margin-bottom: 15px;
}

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.checkbox-wrap input {
    width: auto;
}

.tournamentdet_modal .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tournamentdet_modal .form-group label {
    white-space: nowrap;
    font-size: 85%;
}


/********************
****player-Hub*******
*********************/
.playerhub_sec {
    /* background: radial-gradient(circle at top, #0f172a, #020617); */
    /*background-color: var(--bs-body);*/
    font-family: 'Inter', sans-serif;
    /* color: #e5e7eb; */
    width: 100%;
    height: auto;
}

.playerhub_sec .wraper {
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    /* background: rgba(15, 23, 42, 0.7); */
    color: #e5e7eb;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(56, 189, 248, .25);
    border: 2px solid rgba(56, 189, 248, .3);
}

/* ===== HEADER ===== */
.playerhub_sec .header_box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, #0ea5e9, #1e293b);
    padding: 15px 20px;
    border-radius: 12px;
    font-family: 'Orbitron';
}

.playerhub_sec .header_box span {
    font-size: 13px;
    /* opacity: .9; */
    display: flex;
    align-items: center;
    gap: 6px;
}

.playerhub_sec .header_box span i {
    font-size: 150%;
}

/* ===== GRID ===== */
.playerhub_sec .main-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    margin-top: 20px;
}

/* ===== PANELS ===== */
.playerhub_sec .panel {
    background: rgba(2, 6, 23, .75);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .2);
    box-shadow: inset 0 0 20px rgba(15, 23, 42, .8);
}

.playerhub_sec .panel h3 {
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #93c5fd;
}

/* ===== STATS ===== */
.circular-progress {
    position: relative;
    width: 130px;
    height: 130px;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    padding: 0;
    margin: 0 auto;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 6;
}

.circle-progress {
    fill: none;
    stroke: #38bdf8;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: fillCircle 3s ease-in-out forwards;
}

@keyframes fillCircle {
    0% {
        stroke-dashoffset: 283;
    }

    100% {
        stroke-dashoffset: 42.45;
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 85%;
    font-weight: bold;
    color: var(--bs-text-white);
}

/*****/


.playerhub_sec .circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.playerhub_sec .stat-grid {
    display: flex;
    justify-content: space-around;
}

.playerhub_sec .stat {
    text-align: center;
}

.playerhub_sec .label {
    font-size: 12px;
    opacity: .7;
}

.playerhub_sec .label:last-child {
    margin-bottom: 0;
}

/* ===== TOGGLES ===== */
.playerhub_sec .toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 13px;
}

.playerhub_sec .switch {
    width: 38px;
    height: 18px;
    background: #91a5c1;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.playerhub_sec .switch::after {
    content: '';
    width: 14px;
    height: 14px;
    background: #e5e7eb;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: .3s;
}

.playerhub_sec .switch.active {
    background: #22c55e;
}

.playerhub_sec .switch.active::after {
    left: 22px;
}

/* ===== CENTER ===== */
.playerhub_sec .center-panel .scrollbox {
    max-height: 270px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.playerhub_sec .center-panel .scrollbox::-webkit-scrollbar {
    display: none;
}

.playerhub_sec .center-panel .card {
    border: 1px solid #176c91;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 0 5px 0px rgba(68, 193, 239, 0.35);
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 6px;
}

.playerhub_sec .card .content {
    display: inline-block;
}

.playerhub_sec .card h4 {
    font-size: 85%;
    margin-bottom: 6px;
}

.playerhub_sec .tag {
    font-size: 70%;
    background: #22c55e;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;
}

.playerhub_sec .button_box {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.playerhub_sec .joinbtn {
    font-size: 70%;
    padding: 2px 6px;
    margin: 0;
    border-radius: 6px;
    border: 1px solid #fff;
    background-color: #fff;
    color: #535252;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
}

/* ===== GEAR ===== */
.playerhub_sec .gear-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.casastore_btn {
    width: 100%;
    height: auto;
    padding: 8px 18px;
    border-radius: 6px;
    background-color: var(--bs-primary);
    color: var(--bs-text-white);
    border: 1px solid var(--bs-primary);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none;
    display: block;
    font-size: 80%;
    font-weight: 500;
    line-height: normal;
}

.casastore_btn:hover {
    color: var(--bs-text-white);
}

/* ===== ACHIEVEMENTS ===== */
.playerhub_sec .badges {
    display: flex;
    gap: 10px;
}

.playerhub_sec .badge {
    flex: 1;
    background: #1e293b;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
}

.achievement_box {
    width: 100%;
    height: auto;
    background-color: var(--bs-body);
    color: var(--bs-heading);
    padding: 30px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.achievement_box:last-child {
    margin-bottom: 0;
}

.achievement_box i {
    font-size: 220%;
    color: #e17603;
}

.achievement_box .text {
    font-size: 120%;
    font-weight: 600;
    text-align: center;
    color: var(--bs-heading);
    max-width: 300px;
    /* text-transform: uppercase; */
}

/* ===== REVIEW ===== */
.playerhub_sec .review {
    margin-top: 20px;
    padding: 25px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fef3c7, #eab308);
    color: #1e293b;
    text-align: center;
    box-shadow: 0px 0px 5px 0px #ccc;
}

.playerhub_sec .review button {
    margin-top: 12px;
    padding: 10px 26px;
    border-radius: 30px;
    border: none;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
    .playerhub_sec .wraper {
       padding: 8px;
    }
    .playerhub_sec .main-grid {
        grid-template-columns: 1fr;
    }

    /* order change */
    .playerhub_sec .panel:nth-child(2) {
        order: 1;
    }

    .playerhub_sec .panel:nth-child(1) {
        order: 2;
    }

    .playerhub_sec .panel:nth-child(3) {
        order: 3;
    }
}