/* Container Utama */
.whatsprompt-wrapper {
    background-color: #121827;
    color: #ffffff;
    padding: 0px;
    font-family: 'Courier', monospace; /* Default teks */
    box-sizing: border-box;
}
.whatsprompt-wrapper * { box-sizing: border-box; }

/* Tipografi Khusus */
.whatsprompt-wrapper .wp-title {
    font-family: tusker-m;
    letter-spacing: 1px;
    color : #fff; 
    font-size: 4.1em;
}

.whatsprompt-wrapper .wp-btn-red,
.whatsprompt-wrapper .wp-cat-btn,
.whatsprompt-wrapper .wp-card-overlay-title,
.whatsprompt-wrapper .wp-pagination {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    color : #fff;
}

/* Header */
.wp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px !important;
    flex-wrap: wrap;
    gap: 15px;
}
.wp-title {
    font-size: 4rem;
    margin: 0;
    line-height: 1;
}
.wp-header-actions {
    display: flex;
    gap: 15px;
}
.wp-search-form {
    display: flex;
    background: #e63946;
    padding: 5px;
}
.wp-search-form input {
    border: none;
    padding: 5px 10px;
    font-family: 'Courier', monospace;
    outline: none;
}
.wp-search-form button {
    background: #fff;
    border: none;
    padding: 0 10px;
    cursor: pointer;
}

/* Button Merah */
.wp-btn-red {
    background-color: #e63946;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}
.wp-btn-red:hover { background-color: #d62828; }

/* Layout Grid & Sidebar (Diubah menjadi 3 Kolom) */
.wp-body {
    display: flex;
    gap: 30px;
}
.wp-sidebar {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wp-cat-btn {
  background-color: #e63946;
  color: white;
  text-decoration: none;
  padding: 4px;
  text-align: center;
  font-size: 1rem;
  transition: 0.2s;
}
.wp-cat-btn:hover, .wp-cat-btn.active { background-color: #d62828; }
.wp-content { flex-grow: 1; }

/* Grid Cards 4 Kolom dengan aman */
.wp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.wp-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
}
.wp-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* Rasio Default 3/4 */
    background: #121827;
    overflow: hidden;
    cursor: zoom-in;
}
.wp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wp-card-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    width: 90%; 
    display: none;
}

/* Tombol Edit Khusus Super Admin di atas Thumbnail */
.wp-edit-btn-float {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000000;
    color: #ffffff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    z-index: 10;
    opacity: 0.8;
    transition: 0.2s;
    border-radius: 4px;
}
.wp-edit-btn-float:hover {
    opacity: 1;
    background: #e63946;
    color: #fff;
}

/* Footer Card Dipaksa Satu Baris (Inline) */
.wp-card-footer-custom {
    padding: 6px 8px;
    background: white;
    color: black;
    box-sizing: border-box;
}
.wp-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4px;
    flex-wrap: nowrap !important; /* Mencegah elemen turun ke bawah */
}

/* Bagian Kiri (Bookmark + Creator) */
.wp-card-footer-row > div:first-child {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    min-width: 0; /* Penting agar fleksibel di dalam flexbox */
    flex-grow: 1;
}

.wp-creator-label {
    font-size: 0.65rem;
    color: #555;
    font-family: courier;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wp-bookmark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.wp-bookmark-toggle.bookmarked { color: #e63946; }

/* Tombol Copy Compact di Kanan (Dipaksa tidak turun) */
.wp-copy-inline {
    padding: 6px 9px 6px 9px !important;
    font-size: 1.1rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Pagination */
.wp-pagination {
    margin-top: 40px;
    display: flex;
    gap: 10px;
}
.wp-pagination .page-numbers {
    background: #e63946;
    color: white;
    padding: 5px 12px;
    text-decoration: none;
    font-size: 1.5rem;
}
.wp-pagination .page-numbers.current { background: #d62828; border: 2px solid white; }

/* Lightbox */
.wp-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
}
.wp-lightbox.active { display: flex; }
.wp-lightbox-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}
.wp-lightbox-content {
    display: flex; flex-direction: column;
    max-width: 90vw; max-height: 90vh;
}
.wp-lightbox-content img {
    max-height: 75vh;
    object-fit: contain;
}
.wp-lightbox-footer {
    display: flex; justify-content: space-between; align-items: center;
    background: white; padding: 4px; margin-top: 10px;
}
.wp-lightbox-prev, .wp-lightbox-next {
    cursor: pointer; color: white; font-size: 40px;
    user-select: none; border: none; background: transparent;
    padding: 20px; position: absolute; top: 50%; transform: translateY(-50%);
}
.wp-lightbox-prev { left: 20px; }
.wp-lightbox-next { right: 20px; }

/* Global Konten & Responsive */
.dkn-wppost-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0em auto !important;
  border-radius: 8px;
}
button {
  cursor: pointer;
  margin-bottom: 0px !important;
} 
.dkn-wppost-content h1 {
  margin-top: 0em !important;
}
.dkn-wppost-content a {
  text-decoration: none !important;
}

/* Responsive Mobile & Tablet */
@media screen and (max-width: 1024px) {
    .wp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 768px) {
    .wp-body { flex-direction: column; }
    .wp-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; margin-top: 22px;}
    .wp-grid { grid-template-columns: repeat(2, 1fr); }
    .wp-title { font-size: 3rem; }
}
@media screen and (max-width: 480px) {
    .wp-grid { grid-template-columns: repeat(2, 1fr);  }
}