/*
Theme Name: DarmanTheme
Theme URI: https://darmanpurba.com
Author: Darman Purba
Author URI: https://darmanpurba.com
Description: Tema WordPress editorial dan blog inspiratif bergaya Sandbox Demo 34 untuk Life Quotes — Quote You with Motivational and Inspirational Stories (darmanpurba.com). Dilengkapi pilihan Header & Mega Menu 4-kolom kontras tinggi, Video Background Hero, opsi Sidebar (Kanan, Kiri, Tanpa Sidebar) dengan Recent Posts ber-thumbnail, variasi Footer, serta Meta Box kutipan khusus.
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: darmantheme
Tags: blog, custom-background, custom-header, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, left-sidebar, right-sidebar, sticky-post, theme-options
*/

:root {
  --dt-primary: #747ed1;
  --dt-grape: #605dba;
  --dt-fuchsia: #e668b3;
  --dt-emerald: #2eb872;
  --dt-heading: #343f52;
  --dt-body: #60697b;
  --dt-lavender-bg: #f2f3fb;
  --dt-lavender-card: #f0f0f8;
  --dt-rose-card: #fdf1f8;
  --dt-footer-bg: #21262c;
  --dt-footer-text: #cacaca;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--dt-body);
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  color: var(--dt-heading);
}

.font-serif-quote {
  font-family: 'IBM Plex Serif', serif;
}

.bg-gradient-purple {
  background: linear-gradient(180deg, #f2f3fb 0%, #ffffff 100%);
}

.bg-gradient-reverse-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f2f3fb 100%);
}

.typer-cursor {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  background-color: var(--dt-primary);
  margin-left: 3px;
  vertical-align: -0.14em;
  animation: dtBlinkCursor 0.85s infinite;
}

@keyframes dtBlinkCursor {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.ripple-badge {
  position: relative;
}
.ripple-badge::before,
.ripple-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--dt-fuchsia);
  z-index: -1;
  animation: dtBadgeRipple 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.ripple-badge::after {
  animation-delay: 1.4s;
}

@keyframes dtBadgeRipple {
  0%   { transform: scale(1);   opacity: 0.45; }
  100% { transform: scale(1.9); opacity: 0; }
}

.btn-pill {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn-pill:hover {
  transform: translateY(-2px);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 0.75rem 2.25rem rgba(30, 34, 40, 0.12);
}

/* Mobile drawer menu (rendered by wp_nav_menu) */
#mobileOffcanvasDrawer ul { list-style: none; margin: 0; padding: 0; }
#mobileOffcanvasDrawer ul li > a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dt-heading);
  transition: background-color 0.2s ease, color 0.2s ease;
}
#mobileOffcanvasDrawer ul li > a:hover,
#mobileOffcanvasDrawer ul li.current-menu-item > a {
  background: var(--dt-lavender-bg);
  color: var(--dt-primary);
}
#mobileOffcanvasDrawer ul ul { margin: 0.25rem 0 0.5rem 1rem; border-left: 2px solid var(--dt-lavender-card); }

/* Category icon tiles (Mega Menu & Archive) */
.dt-cat-icon {
  box-shadow: 0 0.35rem 0.9rem rgba(52, 63, 82, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.group:hover .dt-cat-icon,
a:hover > .dt-cat-icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.08);
  box-shadow: 0 0.6rem 1.2rem rgba(52, 63, 82, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* High-Contrast Mega Menu Panel & Single-Line Header Navigation */
#mainNavbar nav ul > li > a,
#mainNavbar nav ul > li > button {
  white-space: nowrap;
}

.mega-menu-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s;
  color: #343f52 !important;
}

.mega-menu-panel h4,
.mega-menu-panel h5,
.mega-menu-panel .dt-cat-title {
  color: #343f52 !important;
  opacity: 1 !important;
}

.mega-menu-panel .dt-cat-desc {
  color: #60697b !important;
  opacity: 1 !important;
}

.mega-menu-panel a:hover .dt-cat-title,
.mega-menu-panel a:hover h5 {
  color: #747ed1 !important;
}

.mega-trigger:hover .mega-menu-panel,
.mega-trigger.is-open .mega-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.img-zoom {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .img-zoom {
  transform: scale(1.06);
}

.dt-hero-video-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.dt-hero-video-wrapper video,
.dt-hero-video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.entry-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.entry-content blockquote {
  font-family: 'IBM Plex Serif', serif;
  font-style: italic;
  background-color: #f2f3fb;
  border-left: 4px solid var(--dt-primary);
  border-radius: 0 1rem 1rem 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--dt-heading);
}
.entry-content ul,
.entry-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.5rem 0 1rem 1.5rem; }
.wp-caption-text { font-size: 0.8125rem; color: var(--dt-body); text-align: center; margin-top: 0.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
