/* Member Page CSS */
.member-section {
            background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('https://basilthesheep.neocities.org/SiteImages/bg%20(2).jpg');
            background-repeat: no-repeat;
            background-size: cover;           
            border: 2px solid #0c0805;
            border-radius: 16px;
            padding: 25px;
            margin-top: 15px;
            margin-bottom: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            box-sizing: border-box;
        }
    
        /* UI Cleanup: Adjusts the title text layout to look centered inside its new home */
        .member-section h1 {
            text-align: center;
            color: #e8c191;
            margin-top: 0;
            margin-bottom: 20px;
            font-size: medium;
        }
    
        /* Internal widget background adjustment to pop against the new frame background */
        .member-section .fronter-widget {
            background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)), url('https://basilthesheep.neocities.org/SiteImages/bg%20(3).jpg');
            background-repeat: no-repeat;
            background-size: cover;
            border-color: #1d120a;
        }

        .member-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 10px;
            margin: 0px;
        }
    
        /* Member Card Styles */
        .member-card {
            background: linear-gradient(180deg, var(--alter-color), rgba(0,0,0,0.5));            
            border: 2px solid #ffffff ;
            border-radius: 10px;
            padding: 10px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s, border-color 0.2s;
        }
    
        /* Dynamic: Card border now shifts to the alter's color on hover */
        .member-card:hover {
            transform: translateY(-3px);
            border-color: var(--alter-color, #333);
        }
    
        .member-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 10px;
            border: 2px solid var(--alter-color, #333);
        }
    
        .member-name {
            font-weight: bold;
            font-size: 1.1em;
            font-style: oblique;
            color: #fff;
        }

        /* popup (Popup Profile) Styles */
        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(24, 16, 10, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
    
        /* Dynamic: popup window frame border updates to match the alter's color */
        .popup-content {
            background: #1b1715;
            border: 2px solid var(--alter-color, #333);
            padding: 25px;
            border-radius: 12px;
            max-width: 450px;
            width: 90%;
            position: relative;
            text-align: left;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }
    
        .close-button {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #751919;
        }
    
        .close-button:hover {
            color: #fff;
        }
    
        /* popup Profile Elements */
        .profile-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 15px;
        }
    
        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--alter-color, #333);
        }
    
        .profile-name {
            font-size: 1.5em;
            font-weight: bold;
            color: #fff;
            margin: 0;
        }
    
        .profile-meta {
            font-size: 0.9em;
            color: #aaa;
            margin: 5px 0;
        }
    
        /* Dynamic: The left accent line bar on descriptions updates to match the alter's color */
        .profile-description {
            background: #161312;
            padding: 12px;
            border-radius: 6px;
            white-space: pre-wrap;
            max-height: 200px;
            overflow-y: auto;
            font-size: 0.95em;
            border-left: 3px solid var(--alter-color, #333);
            color: white;
        }
    
        #loading {
            text-align: center;
            font-size: 1.2em;
            color: #aaa;
        }
    
        /* Fronter Panel Wrapper Widget Styles */
        .fronter-widget {
            border: 2px solid;
            border-radius: 12px;
            padding: 20px;
            max-width: 1000px;
            margin: 0 auto 25px auto;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
    
        .widget-title {
            font-size: 1.2em;
            font-style: oblique;
            color: #e9cdbe;
            margin-top: 0;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
    
        /* Flexbox horizontal placement supporting multiple co-fronters simultaneously */
        .fronter-list {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }
    
        /* Clickable Badge Pill Component representing an Alter */
        .fronter-badge {
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(180deg, var(--alter-color), rgba(0,0,0,0.5));
            padding: 8px 20px;
            border-radius: 50px;
            border: 2px solid var(--alter-color, #333);
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
        }
    
        .fronter-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 0 10px var(--alter-color);
        }
    
        .fronter-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 1px solid var(--alter-color, #333);
        }
    
        .fronter-name {
            font-weight: bold;
            color: #fff;
            font-size: 1.1em;
        }
    
        .fronter-empty {
            color: #f7efec;
            font-style: italic;
            font-size: 1em;
        }