/* (sama seperti yang kamu kirim) */
.pcc-calendar {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.pcc-calendar-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.pcc-calendar-title {
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
  text-align: center;
}

.pcc-calendar-search {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.pcc-calendar-search input[type="search"] {
  width: min(720px, 100%);
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  font-size: 14px;
}

.pcc-cal-search-btn {
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.pcc-calendar-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.pcc-cal-prev,
.pcc-cal-next,
.pcc-cal-today {
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.pcc-cal-monthwrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pcc-cal-monthlabel {
  font-weight: 600;
}

.pcc-cal-monthselect {
  padding: 8px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
}

.pcc-calendar-grid {
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.pcc-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f6f6f6;
  border-bottom: 1px solid #e1e1e1;
}

.pcc-cal-dowcell {
  padding: 10px;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
}

.pcc-cal-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.pcc-cal-cell {
  min-height: 120px;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 8px;
  position: relative;
}

.pcc-cal-cell:nth-child(7n) {
  border-right: none;
}

.pcc-cal-cell.is-out {
  background: #fafafa;
  color: #9a9a9a;
}

.pcc-cal-daynum {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pcc-cal-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcc-cal-ev {
  text-align: left;
  padding: 6px 8px;
  border: 1px solid #ededed;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pcc-cal-ev:hover {
  border-color: #cfcfcf;
}

.pcc-cal-time {
  display: inline-block;
  font-size: 11px;
  opacity: 0.75;
  margin-right: 6px;
}

.pcc-cal-ttl {
  font-size: 12px;
  font-weight: 600;
}

.pcc-cal-more {
  text-align: left;
  padding: 6px 8px;
  border: none;
  background: transparent;
  color: #1a73e8;
  cursor: pointer;
  font-size: 12px;
}

.pcc-cal-error {
  padding: 18px;
  text-align: center;
}

.pcc-calendar.is-loading .pcc-calendar-grid {
  opacity: 0.6;
}

.pcc-cal-popover {
  position: absolute;
  z-index: 9999;
  width: min(340px, calc(100% - 24px));
  background: transparent;
}

.pcc-pop-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  border: 1px solid #e8e8e8;
}

.pcc-pop-img img {
  width: 100%;
  height: auto;
  display: block;
}

.pcc-pop-body {
  padding: 12px 14px;
}

.pcc-pop-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pcc-pop-meta,
.pcc-pop-loc {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.pcc-pop-desc {
  font-size: 12px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.pcc-pop-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

/* =========================
   Responsive - Tablet
   ========================= */
@media (max-width: 768px) {
  .pcc-calendar-search {
    flex-direction: column;
    gap: 8px;
  }
  
  .pcc-calendar-search input[type="search"] {
    width: 100%;
  }
  
  .pcc-cal-search-btn {
    width: 100%;
  }
  
  .pcc-cal-cell {
    min-height: 100px;
    padding: 6px;
  }
  
  .pcc-cal-ev {
    padding: 4px 6px;
  }
  
  .pcc-cal-time {
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
    margin-right: 0;
  }
  
  .pcc-cal-ttl {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* =========================
   Responsive - Mobile
   ========================= */
@media (max-width: 600px) {
  .pcc-calendar-nav {
    gap: 6px;
  }
  
  .pcc-cal-prev,
  .pcc-cal-next,
  .pcc-cal-today {
    padding: 6px 10px;
    font-size: 13px;
  }
  
  .pcc-cal-monthlabel {
    font-size: 14px;
  }
  
  .pcc-cal-monthselect {
    padding: 6px 8px;
    font-size: 13px;
  }
  
  .pcc-cal-dowcell {
    padding: 8px 2px;
    font-size: 10px;
  }
  
  .pcc-cal-cell {
    min-height: 80px;
    padding: 4px;
  }
  
  .pcc-cal-daynum {
    font-size: 11px;
    margin-bottom: 4px;
  }
  
  .pcc-cal-list {
    gap: 4px;
  }
  
  .pcc-cal-ev {
    padding: 3px 5px;
    border-radius: 6px;
  }
  
  .pcc-cal-time {
    font-size: 9px;
  }
  
  .pcc-cal-ttl {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }
  
  .pcc-cal-more {
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* =========================
   Responsive - Small Mobile (< 480px)
   ========================= */
@media (max-width: 480px) {
  .pcc-calendar-grid {
    border-radius: 8px;
  }
  
  .pcc-cal-dowcell {
    padding: 6px 1px;
    font-size: 9px;
  }
  
  .pcc-cal-cell {
    min-height: 70px;
    padding: 3px;
  }
  
  .pcc-cal-daynum {
    font-size: 10px;
    margin-bottom: 2px;
  }
  
  .pcc-cal-list {
    gap: 3px;
  }
  
  .pcc-cal-ev {
    padding: 2px 4px;
    border-radius: 5px;
    box-shadow: none;
  }
  
  .pcc-cal-time {
    font-size: 8px;
  }
  
  .pcc-cal-ttl {
    font-size: 9px;
    line-height: 1.2;
  }
  
  .pcc-cal-more {
    font-size: 9px;
    padding: 2px 4px;
  }
  
  /* Popover adjustments for small screens */
  .pcc-cal-popover {
    width: calc(100% - 16px);
    left: 8px !important;
    right: 8px !important;
  }
  
  .pcc-pop-body {
    padding: 10px 12px;
  }
  
  .pcc-pop-title {
    font-size: 13px;
  }
  
  .pcc-pop-meta,
  .pcc-pop-loc,
  .pcc-pop-desc {
    font-size: 11px;
  }
  
  .pcc-pop-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* =========================
   Responsive - Very Small (< 360px)
   ========================= */
@media (max-width: 360px) {
  .pcc-cal-dowcell {
    font-size: 8px;
    padding: 5px 0;
  }
  
  .pcc-cal-cell {
    min-height: 60px;
    padding: 2px;
  }
  
  .pcc-cal-daynum {
    font-size: 9px;
  }
  
  .pcc-cal-ev {
    padding: 2px 3px;
  }
  
  .pcc-cal-time {
    display: none;
  }
  
  .pcc-cal-ttl {
    font-size: 8px;
  }
  
  .pcc-cal-more {
    font-size: 8px;
  }
}