/* ===========================
   SECTION & TITLE
=========================== */
.member-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.member-title {
    text-align: center;
    font-size: 1.8rem;
    color: #D4AF37;
    margin-bottom: 25px;
    font-weight: 700;
}

/* ===========================
   GRID LAYOUT (ทุกหน้าใช้เหมือนกัน)
=========================== */
.member-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Desktop */
    gap: 20px;
    padding: 10px;
}
/*--ปุ่ม--*/
.load-more {
    display: block;
    margin: 25px auto;
    width: 80px;
    height: 80px;
    background: #0A0F1F;
    color: #D4AF37;
    border: 4px solid #D4AF37;
    border-radius: 50%;
    font-size: 2.8rem;   /* ใหญ่ขึ้น */
    font-weight: 900;    /* หนามาก */
    cursor: pointer;
    transition: 0.25s ease;
    text-align: center;
    line-height: 72px;   /* จัดให้อยู่กลางวงกลม */
    box-shadow: 0 5px 14px rgba(0,0,0,0.45);
}

.load-more:hover {
    background: #11182e;
    border-color: #c9a132;
    color: #f5d98c;
    transform: translateY(-4px);
}


/* Tablet */
@media (max-width: 992px) {
    .member-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .member-list {
        grid-template-columns: 1fr;
        padding: 0; /* เต็มจอ */
    }
}

/* ===========================
   MEMBER CARD
=========================== */
.member-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #0A0F1F;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 8px;
    color: #F5D77A;
    text-decoration: none;
    min-height: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Mobile full width */
@media (max-width: 600px) {
    .member-card {
        border-radius: 0;
        padding: 18px;
        min-height: 150px;
    }
}

/* ===========================
   MEMBER PHOTO
=========================== */
.member-photo {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #D4AF37;
    background: #222;
}

/* ===========================
   MEMBER TEXT
=========================== */
.member-name {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 6px;
}

.member-info p {
    margin: 3px 0;
    font-size: 0.95rem;
}

/* Mobile text adjustments */
@media (max-width: 600px) {
    .member-name {
        font-size: 1rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .member-info p {
        font-size: 0.85rem;
        line-height: 1.35;
    }
}

/* ===========================
   STATUS COLORS
=========================== */
.status {
    font-weight: 700;
}

.status.alive {
    color: #7CFC00;
}

.status.dead {
    color: #FF4C4C;
}

/* ===========================
   SKELETON LOADING
=========================== */
.skeleton-card {
    height: 120px;
    background: linear-gradient(90deg, #1a1a1a, #333, #1a1a1a);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===========================
   MEMBER COUNT (จำนวนทั้งหมด)
=========================== */
.member-count {
    text-align: center;
    font-size: 1.2rem;
    color: #F5D77A; /* ทองอ่อน อ่านง่าย */
    margin-top: -10px; 
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Mobile */
@media (max-width: 600px) {
    .member-count {
        font-size: 1.05rem;
        margin-bottom: 15px;
    }
}
