/**
*
* @package phpBB Extension - CSS Magic
* @copyright (c) 2018 martin - https://www.martins-play-ground.com & dmzx - https://www.dmzx-web.net
* @license Proprietary/All rights reserved (martins-play-ground.com ownes these files and has the right to disable them)
*
*/

.postprofile dd,
.postprofile .rank,
.postprofile .profile-contact,
.postprofile .profile-posts,
.postprofile .profile-joined,
.postprofile .profile-rank,
.postprofile .profile-icons,
.postprofile .profile-field {
    display: none !important;
}

.postprofile dt {
    display: block;
}

/* ================= OVERLAY ================= */

#ss-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,18,25,0.15);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 99998;
}

#ss-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================= MODAL ================= */

#ss-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: 600px;
    max-width: 95%;
    border-radius: 14px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99999;
    overflow: hidden;
}

#ss-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
	background-color: rgb(193 203 210 / 96%);
}

body.ss-open {
    overflow: hidden;
}

/* ================= HEADER ================= */

.ss-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 15px;
    background: #f4f4f4;
}

/* ================= MODAL BANNER ================= */
.ss-header {
    
	background: url("./images/cloud.webp");
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	padding: 10px 15px 15px 15px;
}

.ss-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.ss-header > * {
    position: relative;
    z-index: 2;
}

.ss-avatar-link {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.ss-avatar-link img {
    display: block;
}

.ss-avatar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 110%; 
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(20,20,25,0.95);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.ss-avatar-link::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(20,20,25,0.95);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ss-avatar-link:hover::after,
.ss-avatar-link:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ss-avatar-placeholder {
    width: 100px;
    height: 100px;
    background: #c40000;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* ================= USERNAME ================= */

.ss-username {
    font-size: 24px;
    font-weight: 700;
    color: #222;
}

/* ================= RANK ================= */

.ss-rankbar {
    padding: 10px 35px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #c40000;
}

/* ================= CONTENT ================= */

.ss-content {
    padding: 25px 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 35px;
}

.ss-content dd {
    margin: 0;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

/* ================= FOOTER ================= */

.ss-footer {
    padding: 25px 35px;
    text-align: right;
}

.ss-profile-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #222;
    color: #eee;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.ss-profile-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

.avatarinfo {
  font-size: 10px;
}
	

/* ================= CLOSE ================= */

.ss-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 18px;
    color: #222;
    z-index: 99999;
    cursor: pointer;
}

/* ================= MOBILE LANDSCAPE ================= */
@media (max-width: 1024px) and (orientation: landscape) {

    #ss-modal {
        width: 95%;
        height: 90vh;              
        max-height: 90vh;
        overflow-y: auto;          
        -webkit-overflow-scrolling: touch; 
    }

    #ss-modal .ss-content {
        grid-template-columns: 1fr; 
    }
}

/* ================= DISABLE TOOLTIP ON MOBILE ================= */
@media (max-width: 1024px) {

    .ss-avatar-link::before,
    .ss-avatar-link::after {
        display: none !important;
    }
}


