/* /home/akademil/kol.akademiliterasi.co.id/assets/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}
.page-header {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
h1, h2 {
    color: #0056b3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* --- Creator Card (Public) --- */
.creator-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.creator-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}
.creator-card:hover {
    transform: translateY(-5px);
}
.creator-card-photo {
    width: 100%;
    height: 300px; /* Square photo */
    object-fit: cover;
}
.creator-card-body {
    padding: 15px;
}
.creator-card-body h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3;
}
.creator-card-body .niche {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    display: block;
}
.social-info {
    display: flex;
    /* DIUBAH: Gunakan space-around agar tidak terlalu mepet ke tepi jika hanya 1 item */
    justify-content: space-around; 
    align-items: flex-start; /* Jaga agar align di atas */
    gap: 10px;
    margin-bottom: 15px;
}
.social-stat {
    flex: 1; 
    min-width: 0; /* Penting agar flex item bisa mengecil */
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}
.social-stat .platform-name {
    font-weight: bold;
    font-size: 0.9em;
    color: #333; 
    cursor: default;
    /* DITAMBAHKAN: Agar username panjang bisa wrap */
    overflow-wrap: break-word;
    word-break: break-all; /* Pengaman tambahan */
}
.social-stat .platform-followers {
    font-size: 1.2em;
    font-weight: bold;
    color: #0056b3;
    margin-top: 5px;
}
.top-video {
    margin-top: 20px;
}
.top-video h4 {
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.video-wrapper {
    position: relative;
    padding-bottom: 100%; /* TikTok/IG Reels (1:1ish) */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #eee; /* Background jika iframe gagal load */
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-views {
    text-align: center;
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    font-weight: bold;
}
/* --- End Creator Card --- */


/* --- Admin Styles (Tidak Berubah) --- */
.admin-container {
    max-width: 900px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.form-group p {
    font-size: 0.85em;
    color: #666;
    margin: 5px 0 0 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
input[type="text"], input[type="password"], select, input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.button, button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
}
.button:hover, button:hover { background-color: #0056b3; }
.button-danger { background-color: #dc3545; }
.button-danger:hover { background-color: #c82333; }
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}
th { background-color: #f9f9f9; }
th a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}
.sort-arrow { display: inline-block; margin-left: 5px; }
.actions-cell form { display: inline-block; margin-right: 5px; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #777;
}
#lang-switcher { width: auto; }