/* ================================================
   LAUTAN DIGITAL ? Public Page Styles
   ================================================ */

/* ??? Variables ??????????????????????????????????? */
:root {
  --wa-color: #25D366;
  --wa-dark:  #1DA851;
  --free-color: #059669;
  --free-dark:  #047857;
}

/* ??? Body ????????????????????????????????????????? */
body.public-page {
  background: #F8FAFC;
  font-family: var(--font);
  margin: 0;
  padding: 0;
}

/* ??? Navbar ??????????????????????????????????????? */
.public-navbar {
  background: #ffffff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 900;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none !important;
  color: #1E293B !important;
}

.public-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.public-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-admin-login {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-admin-login:hover {
  background: #E2E8F0;
  color: #1E293B;
  text-decoration: none;
}

/* ??? Hero ????????????????????????????????????????? */
.public-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 55%, #2563EB 100%);
  padding: 4rem 1rem 3.5rem;
  color: #fff;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.filter-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #1E293B;
}

/* ??? Templates Section ??????????????????????????? */
.templates-section {
  padding: 2.5rem 0 3rem;
}

/* ??? Template Card ??????????????????????????????? */
.template-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.template-preview-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #F1F5F9;
  overflow: hidden;
}

.template-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.template-card:hover .template-preview-img {
  transform: scale(1.03);
}

.template-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #CBD5E1;
}

.template-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3em 0.7em;
  border-radius: 2rem;
}

.badge-free {
  background: #D1FAE5;
  color: #065F46;
}

.badge-paid {
  background: #FEF3C7;
  color: #92400E;
}

.template-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.template-desc {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 0.25rem;
}

.template-action {
  margin-top: auto;
}

/* Action buttons */
.btn-free {
  background: var(--free-color);
  border-color: var(--free-color);
  color: #fff;
  font-weight: 700;
}

.btn-free:hover {
  background: var(--free-dark);
  border-color: var(--free-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,0.3);
}

.btn-free-disabled {
  background: #E2E8F0;
  border-color: #E2E8F0;
  color: #94A3B8;
  cursor: default;
}

.btn-wa {
  background: var(--wa-color);
  border-color: var(--wa-color);
  color: #fff;
  font-weight: 700;
}

.btn-wa:hover {
  background: var(--wa-dark);
  border-color: var(--wa-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}

/* ??? Empty State ?????????????????????????????????? */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #94A3B8;
}

.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.empty-state h4 {
  font-weight: 800;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* ??? Footer ??????????????????????????????????????? */
.public-footer {
  background: #1E293B;
  color: rgba(255,255,255,0.65);
  padding: 1.75rem 1rem;
  font-size: 0.875rem;
}

.public-footer strong {
  color: #fff;
}

.public-brand-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 0.3rem;
  color: #fff;
  font-size: 0.7rem;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* ??? Responsive ??????????????????????????????????? */
@media (max-width: 576px) {
  .hero-title { font-size: 1.75rem; }
  .hero-subtitle { font-size: 0.925rem; }
  .template-preview-wrap { height: 160px; }
}
