/* ================= PROFILE PAGE ================= */

/* HEADER */
.profile-header {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px;

    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* AVATAR */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ddd;
}

/* INFO */
.profile-info h2 {
    font-size: 26px;
    margin-bottom: 10px;
}

.profile-info p {
    margin-bottom: 6px;
    color: #555;
}

/* BUTTONS */
.profile-actions button {
    margin-top: 10px;
    padding: 10px 15px;
    cursor: pointer;
}

/* POSTS GRID */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;

    background: #fff;
    padding: 15px;
    border-radius: 12px;
}

.post {
    background: #eee;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #666;
}
.profile-header,
.profile-grid {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}




/* Фото плеэр */
#viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.viewer-bg {
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.9);
}

.viewer-content {
    position:relative;
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
}

#viewerImage {
    max-width:90%;
    max-height:90%;
}

#viewerMenuBtn {
    position:absolute;
    top:20px;
    right:20px;
    font-size:30px;
    color:#fff;
    cursor:pointer;
}

#viewerMenu {
    position:absolute;
    top:60px;
    right:20px;
    background:#222;
    color:#fff;
    display:none;
}

#viewerMenu.open {
    display:block;
}

#viewerMenu div {
    padding:10px;
    cursor:pointer;
}

#viewerMenu div:hover {
    background:#444;
}

#navLeft, #navRight, #navUp, #navDown {
    position:absolute;
    color:#fff;
    font-size:30px;
    cursor:pointer;
}

#navLeft { left:20px; top:50%; }
#navRight { right:20px; top:50%; }
#navUp { top:20px; left:50%; }
#navDown { bottom:20px; left:50%; }




/* ================= PROFILE TAGS ================= */
.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.profile-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    white-space: nowrap;
}


.profile-views-count {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.post {
    position: relative; /* если ещё не стоит */
}

.post-likes {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 13px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 5;
}

/* ================= MOBILE ================= */
@media (max-width: 1024px) {

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

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

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.profile-tags {
        justify-content: center;
        gap: 6px;
    }

    .profile-tag {
        font-size: 12px;
        padding: 4px 11px;
    }
}