/* =========================
   ADMIN POSTS
========================= */

/* Hero */

.admin-posts-hero {
    background:
      linear-gradient(90deg, #1e362b 0%, #1c3429 45%, rgba(28,42,41,0.35) 100%),
      url("../images/hero-catalog-image.png");
    background-size: cover;
    background-position: center right;
    padding: 30px 0 30px 10px;
  }
  
  .admin-posts-hero-content {
    max-width: 1200px;
  }
  
  .admin-posts-hero-content h1 {
    font-family: 'Bitter', serif;
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 10px;
  }
  
  .admin-posts-hero-content span {
    display: block;
    width: 180px;
    height: 6px;
    background-color: #e7a22b;
    margin-bottom: 10px;
  }
  
  .admin-posts-hero-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #fff;
    margin: 0;
  }
  
  
  /* Page */
  
  .admin-posts-page {
    background: #F4F1EC;
    padding: 40px 0 70px;
  }
  
  .admin-posts-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  
  /* Header */
  
  .admin-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
  
    box-shadow:
      0 4px 10px rgba(0,0,0,0.06),
      0 12px 28px rgba(0,0,0,0.08);
  }
  
  .admin-posts-header h2 {
    font-family: 'Bitter', serif;
    font-size: 28px;
    font-weight: 800;
    color: #1e362b;
    margin-bottom: 6px;
  }
  
  .admin-posts-header p {
    font-family: 'Bitter', serif;
    font-size: 13px;
    color: #1e362b;
    margin: 0;
  }
  
  
  /* Add Button */
  
  .admin-add-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  
    padding: 10px 15px;
    border-radius: 8px;
  
    background: #1e362b;
    color: #fff;
  
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  
    transition: .3s ease;
  }
  
  .admin-add-post-btn:hover {
    background: #70998A;
    color: #fff;
  }
  
  
  /* List Panel */
  
  .admin-posts-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
  
    box-shadow:
      0 4px 10px rgba(0,0,0,0.06),
      0 12px 28px rgba(0,0,0,0.08);
  }
  
  
  /* List Item */
  
  .admin-post-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
  
    padding: 22px 24px;
  
    border-bottom: 1px solid rgba(30,54,43,0.12);
    border-left: 5px solid transparent;
  
    transition: .3s ease;
  }
  
  .admin-post-item:last-child {
    border-bottom: none;
  }
  
  .admin-post-item:hover {
    background: rgba(112,153,138,0.08);
    border-left-color: #70998A;
  }
  
  .admin-post-info {
    min-width: 0;
  }
  
  
  /* Badges */
  
  .admin-post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .admin-post-badge {
    display: inline-flex;
    align-items: center;
  
    padding: 4px 10px;
    border-radius: 999px;
  
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }
  
  .admin-post-type {
    background: rgba(112,153,138,0.18);
    color: #1e362b;
  }
  
  .admin-post-status.status-published {
    background: rgba(39,174,96,0.18);
    color: #1e362b;
  }
  
  .admin-post-status.status-draft {
    background: rgba(231,162,43,0.22);
    color: #1e362b;
  }
  
  .admin-post-status.status-archived {
    background: rgba(192,57,43,0.16);
    color: #9b2c2c;
  }
  
  
  /* Title */
  
  .admin-post-title {
    font-family: 'Bitter', serif;
    font-size: 22px;
    font-weight: 800;
    color: #1e362b;
    margin-bottom: 8px;
  }
  
  
  /* Meta */
  
  .admin-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6b7a72;
  }
  
  .admin-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .admin-post-meta i {
    font-size: 12px;
  }
  
  
  /* Actions */
  
  .admin-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .admin-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
  
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  
    cursor: pointer;
    transition: .3s ease;
  }
  
  .admin-post-view,
  .admin-post-edit {
    background: rgba(112,153,138,0.18);
    color: #1e362b;
  }
  
  .admin-post-view:hover,
  .admin-post-edit:hover {
    background: #70998A;
    color: #fff;
  }
  
  .admin-post-delete {
    background: rgba(192,57,43,0.12);
    color: #9b2c2c;
  }
  
  .admin-post-delete:hover {
    background: #c0392b;
    color: #fff;
  }
  
  
  /* Empty State */
  
  .admin-posts-empty {
    padding: 34px 24px;
    text-align: center;
  }
  
  .admin-posts-empty i {
    font-size: 36px;
    color: #70998A;
  }
  
  .admin-posts-empty h3 {
    font-family: 'Bitter', serif;
    font-size: 24px;
    font-weight: 800;
    color: #1e362b;
    margin: 12px 0 6px;
  }
  
  .admin-posts-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7a72;
    margin: 0;
  }
  
  
  /* Loading Text */
  
  .loading-text {
    padding: 24px;
    margin: 0;
  
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #6b7a72;
  }
  
  
  /* Responsive */
  
  @media (max-width: 768px) {
    .admin-posts-header {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .admin-post-item {
      grid-template-columns: 1fr;
      gap: 16px;
    }
  
    .admin-post-actions {
      justify-content: flex-start;
      flex-wrap: wrap;
    }
  
    .admin-posts-hero-content h1 {
      font-size: 38px;
    }
  }