/* frontend/organizer/details.blade.php — UI v2 modern (hero gradient + kartu event gaya home) */
/* ============================================================
   ORGANIZER DETAILS UI V2
   Semua rule page-scoped lewat .orgd-ui supaya tidak bentrok
   dengan style.css lama (.event-item, .nav-tabs, dsb.)
   ============================================================ */

/* ============ HERO ============ */
.orgd-hero {
  background: linear-gradient(135deg, #0d1b2e 0%, #1e3a6e 100%);
  padding: 34px 0 64px;
}
.orgd-hero .orgd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}
.orgd-hero .orgd-breadcrumb a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.orgd-hero .orgd-breadcrumb a:hover { color: #fff; }
.orgd-hero .orgd-breadcrumb .sep { opacity: .5; }

.orgd-hero-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hp-shadow-lg);
}
.orgd-ava {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  margin: 0;
  border-radius: 50%;
  padding: 4px;
  background: var(--hp-brand-soft);
}
.orgd-ava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.orgd-id { flex: 1 1 auto; min-width: 0; }
.orgd-id h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--hp-ink);
}
.orgd-id .orgd-username {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hp-ink-soft);
}
.orgd-id .orgd-username .orgd-ig-handle { color: var(--hp-brand); }
.orgd-id .orgd-username .dot { color: var(--hp-muted); }

.orgd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.orgd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.orgd-btn:hover { text-decoration: none; transform: translateY(-2px); }
.orgd-btn-primary {
  background: var(--hp-brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 91, 214, .3);
}
.orgd-btn-primary:hover { background: var(--hp-brand-dark); color: #fff; }
.orgd-btn-ig {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 48%, #6228d7);
  color: #fff;
  box-shadow: 0 8px 18px rgba(238, 42, 123, .28);
}
.orgd-btn-ig:hover { color: #fff; }
.orgd-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--hp-ink-soft);
  transition: transform .2s, border-color .2s, color .2s;
}
.orgd-btn-icon:hover {
  transform: translateY(-2px);
  border-color: var(--hp-brand);
  color: var(--hp-brand);
}

/* ============ SECTION ============ */
.orgd-section {
  background: var(--hp-bg);
  padding: 48px 0 70px;
}
.orgd-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.orgd-events-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}
.orgd-events-count {
  padding: 8px 16px;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: #fff;
  color: var(--hp-brand);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--hp-shadow-sm);
}

/* ============ TABS KATEGORI (pills) ============ */
.orgd-tabs { margin-bottom: 26px; }
.orgd-ui .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 2px 2px 8px;
  overflow-x: auto;
}
.orgd-ui .nav-tabs .nav-item { margin: 0; }
.orgd-ui .nav-tabs .nav-link {
  border: 1px solid var(--hp-line) !important;
  border-radius: 999px !important;
  background: #fff;
  color: var(--hp-ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  line-height: 1.3;
  box-shadow: var(--hp-shadow-sm);
  transition: background .15s, color .15s, border-color .15s;
}
.orgd-ui .nav-tabs .nav-link:hover {
  border-color: var(--hp-brand) !important;
  color: var(--hp-brand);
}
.orgd-ui .nav-tabs .nav-link.active {
  background: var(--hp-brand);
  border-color: var(--hp-brand) !important;
  color: #fff;
}
.orgd-tab-content { margin-bottom: 34px; }

/* ============ GRID KARTU EVENT (gaya home) ============ */
.orgd-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Card — menimpa .event-item lama dari style.css */
.orgd-ui .event-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--hp-shadow-md);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.orgd-ui .event-item:hover {
  transform: translateY(-4px);
  border-color: #cfe0f7;
  box-shadow: 0 16px 32px rgba(13, 27, 46, .12);
  background: #fff;
}
.orgd-ui .event-item .event-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  aspect-ratio: 16 / 10;
  background: #e2e8f0;
}
.orgd-ui .event-item .event-image a { display: block; height: 100%; }
.orgd-ui .event-item .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  background-size: auto;
  transition: transform .5s ease;
}
.orgd-ui .event-item:hover .event-image img { transform: scale(1.05); }

.orgd-ui .event-item .event-content {
  position: static;
  padding: 14px 16px 16px;
  border-radius: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.orgd-ui .event-item .event-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 2px;
  border-radius: 999px;
  background: var(--hp-brand-soft);
  color: var(--hp-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.orgd-ui .event-item .event-cat-label svg { flex-shrink: 0; }
.orgd-ui .event-item .event-cat-label:hover {
  background: var(--hp-brand);
  color: #fff;
  text-decoration: none;
}
.orgd-ui .event-item .event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--hp-ink-soft);
  font-weight: 500;
}
.orgd-ui .event-item .event-meta svg { flex-shrink: 0; color: var(--hp-muted); }
.orgd-ui .event-item h6 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
}
.orgd-ui .event-item h6 a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.orgd-ui .event-item h6 a:hover { color: var(--hp-brand); }
.orgd-ui .event-item .event-price {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
}
.orgd-ui .event-item .event-org {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eef0f5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-ink-soft);
}
.orgd-ui .event-item .event-org-ava {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.orgd-ui .event-item .event-org-initial {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--hp-brand-soft);
  color: var(--hp-brand);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* empty state */
.orgd-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 50px 20px;
  border: 1.5px dashed #dce6ef;
  border-radius: 16px;
  background: #fff;
  color: var(--hp-ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* ============ SIDEBAR ============ */
.orgd-side { padding-bottom: 30px; }
.orgd-widget {
  padding: 24px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--hp-shadow-md);
  margin-bottom: 24px;
}
.orgd-widget-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.orgd-widget-head .orgd-widget-ava {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.orgd-widget-head h6 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
}
.orgd-widget-head span {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-muted);
}
.orgd-about {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--hp-ink-soft);
}
.orgd-about b { color: var(--hp-ink); }
/* read more / less (JS global script.js pakai .click-show/.read-more-btn) */
.orgd-ui .click-show .show-content {
  max-height: 96px;
  overflow: hidden;
  position: relative;
  transition: max-height .3s ease;
}
.orgd-ui .click-show.show .show-content { max-height: 1000px; }
.orgd-ui .click-show .show-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(transparent, #fff);
  opacity: 1;
  transition: opacity .3s;
}
.orgd-ui .click-show.show .show-content::after { opacity: 0; }
.orgd-ui .click-show .read-more-btn {
  display: inline-block;
  margin-top: 6px;
  color: var(--hp-brand);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.orgd-ui .click-show .read-more-btn span:last-child { display: none; }
.orgd-ui .click-show.show .read-more-btn span:first-child { display: none; }
.orgd-ui .click-show.show .read-more-btn span:last-child { display: inline; }

.orgd-toggle {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.orgd-toggle li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hp-line);
  font-size: 13.5px;
}
.orgd-toggle li:last-child { border-bottom: 0; }
.orgd-toggle .first { color: var(--hp-muted); font-weight: 600; flex-shrink: 0; }
.orgd-toggle .last {
  color: var(--hp-ink);
  font-weight: 700;
  text-align: end;
  word-break: break-word;
}
.orgd-toggle .last a { color: inherit; text-decoration: none; }

.orgd-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--hp-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(30, 91, 214, .3);
  transition: background .2s, transform .2s;
}
.orgd-contact-btn:hover { background: var(--hp-brand-dark); color: #fff; transform: translateY(-2px); }

.orgd-ads { text-align: center; }
.orgd-ads + .orgd-ads { margin-top: 20px; }

/* ============ MODAL KONTAK ============ */
.orgd-ui .contact-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--hp-shadow-lg);
}
.orgd-ui .contact-modal .modal-header {
  border-bottom: 1px solid var(--hp-line);
  padding: 18px 22px;
}
.orgd-ui .contact-modal .modal-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
}
.orgd-ui .contact-modal .form_control {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1.5px solid var(--hp-line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--hp-ink);
  font-size: 14px;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.orgd-ui .contact-modal .form_control:focus {
  border-color: var(--hp-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 91, 214, .12);
}
.orgd-ui .contact-modal textarea.form_control { min-height: 110px; resize: vertical; }
.orgd-ui .contact-modal .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--hp-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.orgd-ui .contact-modal .theme-btn:hover { background: var(--hp-brand-dark); color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991.98px) {
  .orgd-hero { padding-bottom: 46px; }
  .orgd-section { padding: 36px 0 56px; }
  .orgd-hero-card { flex-wrap: wrap; }
  .orgd-actions { width: 100%; }
}
@media (max-width: 575.98px) {
  .orgd-hero { padding: 22px 0 34px; }
  .orgd-hero-card { padding: 20px; gap: 16px; }
  .orgd-ava { width: 72px; height: 72px; }
  .orgd-id h1 { font-size: 20px; }
  .orgd-events-head h2 { font-size: 20px; }
  .orgd-cards { grid-template-columns: 1fr; }
}
