/* =============================================
   CodyChat Pack System - pack.css
   ============================================= */

/* --- Float menu positioning --- */
#pack_menu {
    position: fixed !important;
    top: 50px !important;
    right: 0 !important;
    width: 300px !important;
    max-height: calc(100vh - 50px) !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
}

/* --- Icons & Avatars --- */
.pack_list_icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme_color, #9b59b6);
}
.pack_settings_icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme_color, #9b59b6);
}
.pack_info_icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--theme_color, #9b59b6);
}
.pack_member_av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Banner --- */
.pack_banner_wrap {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.1);
    border-radius: 6px 6px 0 0;
}

/* --- Upload area (entire div is clickable) --- */
.pack_upload_area {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px dashed var(--border_color, #ccc);
    transition: border-color 0.2s;
    margin: 6px 0;
}
.pack_upload_area:hover {
    border-color: var(--theme_color, #9b59b6);
}

/* Icon upload area — circular */
.pack_upload_area:not(.pack_upload_banner) {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
.pack_upload_preview.round {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Banner upload area — wide */
.pack_upload_area.pack_upload_banner {
    width: 100%;
    min-height: 70px;
    border-radius: 6px;
    display: block;
}
.pack_upload_preview.wide {
    width: 100%;
    max-height: 90px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* Camera overlay shown on hover */
.pack_upload_overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.pack_upload_area:hover .pack_upload_overlay {
    opacity: 1;
}

/* --- Image previews (legacy) --- */
.pack_preview_banner {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border_color, #ddd);
}

/* --- Paw icon on profile --- */
.pack_paw {
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.15s;
}
.pack_paw:hover { transform: scale(1.25); }

.pack_paw_link {
    cursor: pointer;
    color: var(--theme_color, #9b59b6);
    font-size: 14px;
}
.pack_paw_link:hover { text-decoration: underline; }

/* --- Left menu entry --- */
#pack_left_panel .btable {
    width: 100%;
    padding: 6px 0;
}

/* --- Header notification badge --- */
#notify_pack {
    background: var(--theme_color, #9b59b6);
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    position: absolute;
    top: 2px;
    right: 2px;
}
