/* /home/siisi/vertex/gallery_app/static/css/profile.css */

/* =========================================
   profile.css - Profile page styles
   ========================================= */

/* ---------- Media grid (profile) ---------- */
.media-item {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.media-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.media-item:hover .media-thumbnail img,
.media-item:hover .media-thumbnail video {
    transform: scale(1.05);
}

/* ---------- Utility classes ---------- */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.account-tier-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

/* ---------- Buttons & actions ---------- */
.form-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.form-actions .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* ---------- Profile media grid scrollbar ---------- */
#profile-media-grid,
.profile-media-grid {
    display: block;
    /* fill the viewport below the header — 60vh felt cramped on phones */
    max-height: calc(100dvh - 240px);
    min-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #43DC80 rgba(0, 0, 0, 0.05);
}

#profile-media-grid::-webkit-scrollbar {
    width: 6px;
}

#profile-media-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#profile-media-grid::-webkit-scrollbar-thumb {
    background: #43DC80;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.03);
}

/* ---------- Compact privacy toggle (profile media grid) ---------- */
.profile-media-grid .form-check {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    line-height: 1 !important;
    min-height: auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.profile-media-grid .form-check-input {
    transform: none !important;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0;
}

.profile-media-grid .form-check-label {
    display: inline-block !important;
    font-size: 0.75rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    white-space: nowrap !important;
}


/* Mobile: the grid gets nearly the whole screen */
@media (max-width: 768px) {
    #profile-media-grid,
    .profile-media-grid {
        max-height: calc(100dvh - 170px);
    }
}

/* ---------- Compact card control buttons ----------
   Same sizing as superadmin-view-all (archived.css) — the default
   btn-sm reads too big inside the media cards. */
.profile-media-grid .media-controls .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem !important;
    line-height: 1.2;
}

/* The badge (reported/featured) sits in the same flex row as the buttons.
   Without this, default align-items:stretch makes every button in that
   row match the taller badge's height whenever one is present. */
.profile-media-grid .media-controls .d-flex.gap-2 {
    align-items: center !important;
}

/* Badges (reported flag, featured star) - same compact size as the btn-sm
   controls next to them, instead of Bootstrap's default badge padding. */
.profile-media-grid .media-controls .badge {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
}
