/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : 14 de jul. de 2026, 16:05:46
    Author     : glaub
*/

/*
          ============================================
          PÁGINA INDIVIDUAL DO JOGO
          ============================================
*/

.game-page {
    padding: 32px 0 0;
}

/* Breadcrumb */

.game-breadcrumb {
    margin-bottom: 22px;
}

.game-breadcrumb .breadcrumb {
    margin: 0;
}

.game-breadcrumb .breadcrumb-item,
.game-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    text-decoration: none;
}

.game-breadcrumb .breadcrumb-item a:hover {
    color: #c084fc;
}

.game-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

.game-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.35);
}

/* Cabeçalho do jogo */

.game-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.game-page-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.game-page-summary {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 1rem;
    line-height: 1.65;
}

.game-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
}

.game-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
}

.game-meta-badge i {
    color: #c084fc;
}

/* Ações */

.game-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.game-action-button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: #161b22;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.game-action-button:hover {
    border-color: rgba(124, 58, 237, 0.45);
    background: #1d2430;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

.game-action-button.active {
    border-color: rgba(236, 72, 153, 0.45);
    color: #f472b6;
}

/* Área principal do jogo */

.game-player-card {
    position: relative;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.07),
        rgba(255, 255, 255, 0.025)
        );
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 45px rgba(124, 58, 237, 0.08);
}

.game-player {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 17px;
    background: #05070b;
}

.game-player iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.game-loading-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
        circle at center,
        rgba(124, 58, 237, 0.28),
        transparent 45%
        ),
        linear-gradient(
        145deg,
        #111827,
        #090d14
        );
}

.game-loading-content {
    max-width: 420px;
    padding: 30px;
    text-align: center;
}

.game-loading-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 26px;
    background:
        linear-gradient(
        135deg,
        #7c3aed,
        #ec4899
        );
    color: #fff;
    font-size: 2.6rem;
    box-shadow:
        0 15px 40px rgba(124, 58, 237, 0.35),
        0 0 35px rgba(236, 72, 153, 0.18);
}

.game-loading-content h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
}

.game-loading-content p {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.6);
}

.btn-play-game {
    min-width: 190px;
    padding: 13px 24px;
    border: 0;
    border-radius: 15px;
    background:
        linear-gradient(
        135deg,
        #7c3aed,
        #9333ea,
        #ec4899
        );
    color: #fff;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.3);
    transition: all 0.25s ease;
}

.btn-play-game:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(124, 58, 237, 0.42);
}

/* Barra inferior do player */

.game-player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 6px 3px;
}

.game-player-name {
    min-width: 0;
}

.game-player-name strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-player-name small {
    color: rgba(255, 255, 255, 0.5);
}

.game-player-buttons {
    display: flex;
    gap: 8px;
}

.game-toolbar-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #161b22;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.game-toolbar-button:hover {
    border-color: rgba(124, 58, 237, 0.4);
    color: #fff;
}

/* Publicidade lateral */

.game-sidebar {
    position: sticky;
    top: 100px;
}

.game-sidebar-ad {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

/* Avaliação */

.game-rating-card {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: #161b22;
}

.game-rating-card h3 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.game-rating-card p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-star {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.35rem;
}

.rating-star:hover,
.rating-star.selected {
    color: #f59e0b;
}

/* Informações do jogo */

.game-content-card {
    margin-top: 30px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    background: #161b22;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.game-content-card h2 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
}

.game-content-card h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.game-content-card p {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.98rem;
    line-height: 1.8;
}

.game-instructions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.game-instruction-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.instruction-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background:
        linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.22),
        rgba(236, 72, 153, 0.15)
        );
    color: #c084fc;
    font-size: 1.2rem;
}

.game-instruction-item strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
}

.game-instruction-item small {
    color: rgba(255, 255, 255, 0.48);
}

/* Ficha técnica */

.game-details-card {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    background: #161b22;
}

.game-details-card h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 900;
}

.game-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-detail-row:last-child {
    border-bottom: 0;
}

.game-detail-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
}

.game-detail-value {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

/* Tags */

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.game-tag {
    padding: 8px 12px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.game-tag:hover {
    border-color: rgba(236, 72, 153, 0.35);
    background: rgba(236, 72, 153, 0.1);
    color: #f9a8d4;
}

/* Compartilhamento */

.share-card {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    background:
        radial-gradient(
        circle at top right,
        rgba(59, 130, 246, 0.16),
        transparent 38%
        ),
        #161b22;
}

.share-card h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
}

.share-card p {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-button:hover {
    border-color: rgba(124, 58, 237, 0.45);
    background: rgba(124, 58, 237, 0.14);
    color: #fff;
    transform: translateY(-2px);
}

/* Jogos relacionados */

.related-games-section {
    padding-top: 52px;
}

.related-games-title {
    margin-bottom: 6px;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.related-games-subtitle {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.5);
}

/* Modal do jogo */

.game-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: #090d14;
}

.game-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #111827;
    color: #fff;
}

.game-modal .btn-close {
    filter: invert(1);
}

.game-modal-player {
    width: 100%;
    height: calc(100vh - 82px);
}

.game-modal-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* RANKING POR TEMPO JOGADO */

.game-time-ranking {
    margin-top: 48px;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(
        circle at top right,
        rgba(124, 58, 237, 0.13),
        transparent 32%
        ),
        #161b22;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.ranking-title-area {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.ranking-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #c084fc;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ranking-title-area h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
}

.ranking-title-area p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.ranking-period-buttons {
    display: flex;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.ranking-period {
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.ranking-period:hover {
    color: #fff;
}

.ranking-period.active {
    background:
        linear-gradient(
        135deg,
        #7c3aed,
        #ec4899
        );
    color: #fff;
    box-shadow: 0 7px 18px rgba(124, 58, 237, 0.28);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-player {
    display: grid;
    grid-template-columns: 46px 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.025);
    transition: 0.22s ease;
}

.ranking-player:hover {
    border-color: rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.07);
    transform: translateX(4px);
}

.ranking-player-first {
    border-color: rgba(245, 158, 11, 0.28);
    background:
        linear-gradient(
        90deg,
        rgba(245, 158, 11, 0.12),
        rgba(255, 255, 255, 0.025)
        );
}

.ranking-player-second {
    border-color: rgba(203, 213, 225, 0.18);
}

.ranking-player-third {
    border-color: rgba(180, 83, 9, 0.23);
}

.ranking-player-position {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 900;
}

.ranking-player-position i {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.23;
}

.ranking-player-first .ranking-player-position {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.ranking-player-second .ranking-player-position {
    color: #cbd5e1;
}

.ranking-player-third .ranking-player-position {
    color: #d97706;
}

.ranking-player-avatar {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #1d2430;
}

.ranking-player-first .ranking-player-avatar {
    border-color: rgba(245, 158, 11, 0.5);
}

.ranking-player-info {
    min-width: 0;
}

.ranking-player-info strong {
    display: block;
    overflow: hidden;
    margin-bottom: 4px;
    color: #fff;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-player-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.ranking-player-info i {
    color: #a78bfa;
}

.ranking-player-time {
    min-width: 110px;
    text-align: right;
}

.ranking-player-time small {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
}

.ranking-player-time strong {
    color: #c4b5fd;
    font-size: 0.95rem;
}

.ranking-current-player {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 17px;
    background:
        linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.12),
        rgba(236, 72, 153, 0.07)
        );
}

.ranking-current-position {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 15px;
    background:
        linear-gradient(
        135deg,
        #7c3aed,
        #ec4899
        );
    color: #fff;
    font-weight: 900;
}

.ranking-current-info {
    min-width: 0;
    flex: 1;
}

.ranking-current-info strong {
    display: block;
    color: #fff;
    font-size: 0.92rem;
}

.ranking-current-info span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

@media (max-width: 767.98px) {

    .ranking-title-area {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-period-buttons {
        width: 100%;
        overflow-x: auto;
    }

    .ranking-period {
        flex: 1;
        min-width: max-content;
    }

    .ranking-player {
        grid-template-columns: 38px 46px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .ranking-player-position {
        width: 36px;
        height: 36px;
    }

    .ranking-player-avatar {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .ranking-player-time {
        grid-column: 3;
        min-width: 0;
        margin-top: -7px;
        text-align: left;
    }

    .ranking-player-time small {
        display: none;
    }

    .ranking-player-time strong {
        font-size: 0.82rem;
    }
}

@media (max-width: 575.98px) {

    .game-time-ranking {
        padding: 16px;
        border-radius: 19px;
    }

    .ranking-current-player {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ranking-current-player .btn {
        width: 100%;
    }
}

/* Responsivo */

@media (max-width: 991.98px) {

    .game-page-header {
        flex-direction: column;
    }

    .game-header-actions {
        width: 100%;
    }

    .game-sidebar {
        position: static;
        margin-top: 24px;
    }

    .game-sidebar-ad {
        min-height: 120px;
    }
}

@media (max-width: 767.98px) {

    .game-page {
        padding-top: 22px;
    }

    .game-player-card {
        width: calc(100% + 24px);
        margin-left: -12px;
        padding: 6px;
        border-radius: 0;
        border-right: 0;
        border-left: 0;
    }

    .game-player {
        border-radius: 0;
    }

    .game-player-toolbar {
        padding: 13px 8px 7px;
    }

    .game-toolbar-button span {
        display: none;
    }

    .game-instructions {
        grid-template-columns: 1fr;
    }

    .game-content-card,
    .game-details-card,
    .share-card {
        border-radius: 18px;
    }
}

@media (max-width: 575.98px) {

    .game-page-title {
        font-size: 2rem;
    }

    .game-page-summary {
        font-size: 0.94rem;
    }

    .game-header-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .game-action-button {
        width: 100%;
    }

    .game-loading-content {
        padding: 20px;
    }

    .game-loading-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .game-loading-content h2 {
        font-size: 1.25rem;
    }

    .game-player-name small {
        display: none;
    }

    .game-detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .game-detail-value {
        text-align: left;
    }
}

.game-loading-cover {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}

.game-loading-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(8,12,20,.72), rgba(8,12,20,.82)),
        radial-gradient(circle at center, rgba(0,0,0,.15), rgba(0,0,0,.55));

    backdrop-filter: blur(3px);
}

.game-loading-content {
    position: relative;
    z-index: 2;

    max-width: 500px;
    text-align: center;
    color: #fff;
    padding: 30px;
}

.game-loading-content h2 {
    margin: 20px 0 10px;
}

.game-loading-content p {
    opacity: .95;
}