/* =============================================================
   AethCore — profile.css
   Profile page layout and media gallery.
   ============================================================= */

/* --- Profile header --- */

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 10px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid #b8b8b8;
    flex-shrink: 0;
    display: block;
}

.profile-no-avatar {
    background: #d4d4d4;
}

.profile-header-info {
    min-width: 0;
}

.profile-username {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 4px;
}

.profile-ac-points {
    color: #c85000;
    font-size: 14px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
}

.profile-member-since {
    font-size: 11px;
    color: #888;
}

.profile-displayname {
    font-size: 13px;
    color: #555;
    margin-bottom: 3px;
}

.profile-edit-btn {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

/* --- Profile body --- */

.profile-body {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.profile-left {
    width: 200px;
    flex-shrink: 0;
}

.profile-right {
    flex: 1;
    min-width: 0;
}

/* --- About section --- */

.profile-about {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-about-row {
    display: flex;
    gap: 8px;
    font-size: 12px;
}

.profile-about-label {
    font-weight: bold;
    color: #555;
    width: 48px;
    flex-shrink: 0;
}

.profile-bio {
    font-size: 12px;
    color: #444;
    line-height: 1.5;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e4e4e4;
}

/* --- Media gallery (pictures / screenshots) --- */

.media-gallery {
    display: flex;
    gap: 4px;
}

.media-large {
    flex: 2;
    min-width: 0;
    position: relative;
}

.media-small-pair {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.media-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
}

.media-small-pair .media-img {
    aspect-ratio: 4 / 3;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #d8d8d8;
    border: 1px solid #ccc;
}

.media-game-label {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Media list (pictures/screenshots full pages) --- */

.media-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.media-list-item {
    display: flex;
    flex-direction: column;
}

.media-list-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid #ccc;
}

.media-list-caption {
    font-size: 11px;
    color: #555;
    margin: 4px 0 0;
}

.media-list-date {
    font-size: 10px;
    color: #999;
}

.media-delete-form {
    display: inline;
}

.btn-danger-link {
    color: #c33;
    font-size: 11px;
}
