/* CSS Variables */
:root {
    --primary-color: #333;
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #333;
    --heading-color: #000;
    --subtle-text-color: #6c757d;
    --border-color: #e8e8e8;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --accent-pink: #ff4e82;
    --accent-pink-light: #fff0f4;
}

/* General Styling */
* { box-sizing: border-box; }
body {
    font-family: 'Poppins', -apple-system, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}
.container { max-width: 900px; margin: 0 auto; padding: 24px; }
h1, h2 { font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }

/* Header & Search */
.site-header {
    background-color: var(--card-background);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 0; padding-bottom: 0; max-width: 1000px; }
.logo { font-size: 1.75rem; font-weight: 700; color: var(--heading-color); }
.logo img { max-height: 45px; width: auto; display: block; }
.search-form input[type="text"] {
    width: 320px;
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    outline-color: var(--accent-pink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23aaa' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
}

/* Halaman Grid */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 1.5rem;
}
.person-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
}
.person-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.person-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center center;
}
.person-card-info {
    padding: 1rem;
}
.person-card-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}
.person-card-info p {
    margin: 0;
}
.person-card-info h3 a {
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
}
.person-card-info p a {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
    text-decoration: none;
}
.person-card-info a:hover {
    text-decoration: underline;
}

/* Halaman Single Profile */
.profile-wrapper { max-width: 800px; margin: 2rem auto; }
.profile-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}
.profile-card-top { display: flex; gap: 2rem; align-items: flex-start; }
.profile-image { width: 150px; height: 150px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.profile-info h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    overflow-wrap: break-word;
    word-break: break-word;
}
.profile-info .profession {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
    color: var(--subtle-text-color);
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-item .label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: .25rem;
    text-transform: uppercase;
    color: var(--subtle-text-color);
}
.stat-item .value {
    font-size: 1rem;
    color: var(--heading-color);
    font-weight: 600;
}
.popularity-bar {
    background-color: var(--accent-pink-light);
    border-radius: 50px;
    margin-top: 2rem;
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.popularity-bar .rank { font-size: 1.25rem; font-weight: 700; color: #333; }
.popularity-bar .most-popular {
    font-size: .9rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    padding: .25rem .75rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.boost-button {
    background: var(--accent-pink);
    color: #fff;
    border: none;
    padding: .6rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .2s;
    font-weight: 700;
    font-size: .9rem;
}
.boost-button:hover { transform: scale(1.05); }
.about-card {
    background: var(--card-background);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 2rem;
}
.about-card h2 {
    color: var(--subtle-text-color);
    text-transform: uppercase;
    margin: 0 0 1rem;
    font-weight: 700;
    font-size: .9rem;
}
.about-card p { font-size: 1rem; line-height: 1.8; margin: 0; }

/* Footer & Pagination */
.site-footer { text-align: center; margin-top: 2rem; padding: 2rem; color: var(--subtle-text-color); }
.pagination { text-align: center; margin: 2.5rem 0 1rem; }
.pagination ul {
    background: var(--card-background);
    box-shadow: var(--shadow);
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 50px;
}
.pagination li { margin: 0; }
.pagination li a, .pagination li span {
    display: block;
    padding: .75rem 1.25rem;
    color: var(--primary-color);
    text-decoration: none;
    border-left: 1px solid var(--border-color);
    transition: background-color .2s;
}
.pagination li:first-child a, .pagination li:first-child span {
    border-left: none;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}
.pagination li:last-child a, .pagination li:last-child span {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}
.pagination li a:hover { background-color: var(--background-color); }
.pagination li.active span {
    background-color: var(--accent-pink);
    color: #fff;
    font-weight: 600;
    cursor: default;
}
.pagination li span { color: var(--subtle-text-color); }

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .search-form {
        width: 100%;
    }
    .profile-card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-info { width: 100%; }
    .popularity-bar { flex-direction: column; gap: 1rem; border-radius: 20px; padding: 1rem; }
}

@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; text-align: left; }
    .search-form input[type=text] { width: 100%; }
}

/* STYLE UNTUK KARTU "MORE" */
.more-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-pink-light);
    text-decoration: none;
    min-height: 250px; /* Samakan tinggi minimal dengan gambar */
}
.more-card span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-pink);
}
.more-card:hover {
    background-color: #ffe8ee; /* Warna sedikit lebih gelap saat disentuh */
}