

/* ======================================================
   3) PLAYER-SIDAN (player.html)
   ====================================================== */

#player-name {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    color: #ffc107;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.7);
    margin: 1.25rem 0 0.625rem;
}

#player-statistics {
    width: 90%;
    max-width: 50rem;
    margin: 0 auto 1.25rem;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.25rem;
    border: 1px solid rgba(255, 193, 7, 0.8);
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.8);
}

/* Diagramcontainer på spelarsidan */
#player-chart-container {
    max-width: 50rem;
    height: 25rem;
    margin: 1.25rem auto;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 193, 7, 0.8);
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.8);
    padding: 0.625rem 0.625rem 2.5rem;
}

/* Expandera-diagram overlay */
#expanded-chart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    #expanded-chart-overlay.active {
        visibility: visible;
        opacity: 1;
    }

#expanded-chart-container {
    background-color: #222;
    padding: 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 37.5rem;
}

#expanded-chart-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 0.625rem;
}

#expanded-player-name {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 0;
}

#close-expanded-chart {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0.3125rem;
    transition: background 0.3s;
}

    #close-expanded-chart:hover {
        background: #cc0000;
    }

#expanded-rank-chart {
    width: 100%;
    height: 100%;
}

/* Spelarsidans filtersektion */
#player-statistics .filter-container {
    /* ⬇️ Två kolumner: label (fast) + select (flex) för "tabb"-känsla */
    display: grid;
    grid-template-columns: 12rem auto;
    align-items: center;
    column-gap: 0.75rem;
    margin: 0.625rem 0;
    text-align: left;
}

    #player-statistics .filter-container label {
        font-family: 'Inter', sans-serif;
        color: #ffc107;
        margin-right: 0.3125rem;
    }

    #player-statistics .filter-container select {
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        border: 1px solid rgba(255, 193, 7, 0.8);
        padding: 0.5rem 0.625rem;
        border-radius: 0.25rem;
        font-family: 'Inter', sans-serif;
        cursor: pointer;
        margin-right: 0.625rem;
    }

@media (max-width: 480px) {
    #player-statistics .filter-container {
        grid-template-columns: 9rem auto; /* Mindre labelkolumn */
        column-gap: 0.5rem;
        align-items: center;
    }

        #player-statistics .filter-container label {
            font-size: 0.9rem;
        }

        #player-statistics .filter-container select {
            max-width: 100%;
            width: 100%;
            box-sizing: border-box;
            font-size: 0.9rem;
            padding: 0.4rem 0.5rem;
        }
}

/* Expand-chart-knapp */
#expand-chart-button {
    background-color: rgba(255, 193, 7, 0.8);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s;
    margin: 0.625rem 0;
}

    #expand-chart-button:hover {
        background-color: rgba(255, 193, 7, 1);
        color: #000;
    }

/* Share dropdown (spelarsidan) */
.share-menu {
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 6px;
    position: absolute;
    z-index: 2000;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

    .share-menu button {
        background: rgba(255, 193, 7, 0.8);
        border: none;
        padding: 4px 8px;
        border-radius: 4px;
        font-family: 'Inter', sans-serif;
        cursor: pointer;
        transition: background 0.2s;
    }

        .share-menu button:hover {
            background: rgba(255, 193, 7, 1);
            box-shadow: 0 0 6px rgba(255, 193, 7, 0.7), 0 0 12px rgba(255, 193, 7, 0.4);
            transform: translateY(-1px);
        }

        .share-menu button:active {
            transform: translateY(1px) scale(0.97);
            box-shadow: 0 0 2px rgba(255, 193, 7, 0.6);
        }

    .share-menu.hidden {
        opacity: 0;
        transform: translateY(-4px);
        pointer-events: none;
    }

@media (max-width: 767px) {
    .share-menu {
        left: 50% !important;
        transform: translate(-50%, -4px) !important;
        width: auto;
        min-width: 180px;
    }

        .share-menu button {
            padding: 8px 10px;
        }
}

/* Premium share-knappens glow */
.premium-share-button {
    position: relative;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 0 0px rgba(255, 215, 0, 0.0);
}

    .premium-share-button:hover {
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 24px rgba(255, 215, 0, 0.3);
        transform: translateY(-1px);
    }
/* Gemensam gul stil (oförändrad) */
#player-statistics h2[data-i18n="playerStatsTitle"],
.player-details,
#player-details {
    color: #ffc107;
    font-family: 'Inter', sans-serif;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.7);
}

/* Centrera sidtiteln specifikt */
#player-statistics h2[data-i18n="playerStatsTitle"] {
    text-align: center;
    /* valfritt: lite spacing */
    margin-top: 0;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255,193,7,0.5), 0 0 20px rgba(255,193,7,0.2);
}

/* ============================================================
   PREMIUM OG-PREVIEW BOX (på spelar-sidan)
   ============================================================ */

.premium-og-preview {
    display: none; /* JS visar denna bara för icke-premium */
    margin-top: 10px;
    padding: 10px 12px;
    background-color: #1e1e1f; /* samma mörka ton som andra boxar */
    border: 1px solid rgba(198, 155, 59, 0.6); /* Hearthstone-guld */
    border-radius: 6px;
    cursor: pointer;
    /* layout */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    /* diskret glow */
    box-shadow: 0 0 6px rgba(198, 155, 59, 0.25);
    transition: background-color 0.15s, box-shadow 0.15s;
}

    .premium-og-preview:hover {
        background-color: #242426;
        box-shadow: 0 0 8px rgba(198, 155, 59, 0.35);
    }

.premium-og-preview-icon {
    font-size: 20px;
    margin-top: 2px; /* centrerar ikonen visuellt */
    opacity: 0.9;
}

.premium-og-preview-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.premium-og-preview-title {
    font-weight: 600;
    color: #f1c76b; /* varm guldig ton */
    margin-bottom: 3px;
    font-size: 14px;
}

.premium-og-preview-body {
    font-size: 12px;
    color: #cfcfcf;
    opacity: 0.85;
}

/* Mobilanpassning */
@media (max-width: 600px) {
    .premium-og-preview {
        padding: 10px;
        font-size: 13px;
    }

    .premium-og-preview-title {
        font-size: 13px;
    }

    .premium-og-preview-body {
        font-size: 11px;
    }
}
#player-heading {
    margin: 0 0 0.25rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffc107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.25), 0.125rem 0.125rem 0.2rem rgba(0, 0, 0, 0.7);
    word-break: break-word;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    #player-heading {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 0.35rem;
        max-width: 95%;
    }
}