/**
 * Kumparan Style CSS - Haliyora Theme
 * 99% Match with Kumparan.com
 */

/* ================================
   Base Styles
   ================================ */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

/* ================================
   Header - Exact Kumparan Match
   ================================ */
.kumparan-header {
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.kumparan-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo a {
  text-decoration: none;
  color: #00a9b8;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-logo img {
  max-height: 32px;
  width: auto;
}

/* Search Bar Desktop - Exact Match */
.header-search-wrapper {
  flex: 1;
  max-width: 320px;
  display: none;
}

@media (min-width: 769px) {
  .header-search-wrapper {
    display: block;
  }
}

.header-search-form {
  position: relative;
}

.header-search-form .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
}

.header-search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  font-size: 14px;
  background: #f5f5f5;
  transition: all 0.2s;
}

.header-search-input:focus {
  outline: none;
  border-color: #00a9b8;
  background: white;
}

.header-search-input::placeholder {
  color: #999;
}

/* Header Actions - Exact Match */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .shadcn-btn-ghost {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  color: #666;
}

.header-actions .shadcn-btn-ghost:hover {
  background: #f5f5f5;
  color: #333;
}

.header-actions .shadcn-btn-primary {
  height: 36px;
  padding: 0 20px;
  background: #00a9b8;
  color: white;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

.header-actions .shadcn-btn-primary:hover {
  background: #008c99;
}

.header-actions .shadcn-btn-secondary {
  height: 36px;
  padding: 0 20px;
  background: #2c5f2d;
  color: white;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

.header-actions .shadcn-btn-secondary:hover {
  background: #234d24;
}

@media (max-width: 768px) {
  .header-actions > .shadcn-btn:not(.mobile-menu-toggle) {
    display: none;
  }
}

/* Primary Navigation - Exact Match */
.kumparan-primary-nav {
  border-bottom: 1px solid #e5e5e5;
  overflow: hidden;
}

.kumparan-nav-scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kumparan-nav-scroll::-webkit-scrollbar {
  display: none;
}

.kumparan-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.kumparan-nav-item:hover {
  color: #333;
}

.kumparan-nav-item.active {
  color: #333;
  font-weight: 600;
}

.kumparan-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 3px;
  background: #00a9b8;
}

.kumparan-nav-more {
  color: #999;
}

.kumparan-nav-more i {
  font-size: 12px;
  margin-left: 4px;
}

/* Secondary Navigation - Badges Exact Match */
.kumparan-secondary-nav {
  padding: 12px 0;
  overflow: hidden;
  border-bottom: 1px solid #e5e5e5;
}

.kumparan-badges-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kumparan-badges-scroll::-webkit-scrollbar {
  display: none;
}

.kumparan-badges-scroll .shadcn-badge {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.kumparan-badges-scroll .shadcn-badge-outline {
  background: white;
  border: 1px solid #e5e5e5;
  color: #666;
}

.kumparan-badges-scroll .shadcn-badge-outline:hover {
  border-color: #00a9b8;
  color: #00a9b8;
}

.kumparan-badge-green {
  background: #10b981;
  color: white;
  border: none;
}

.kumparan-badge-green:hover {
  background: #059669;
}

.kumparan-badge-blue {
  background: #3b82f6;
  color: white;
  border: none;
}

.kumparan-badge-blue:hover {
  background: #2563eb;
}

/* ================================
   Mobile Menu
   ================================ */
.mobile-menu-slide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
}

.mobile-menu-slide.active {
  pointer-events: all;
}

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-slide.active .mobile-menu-overlay {
  opacity: 1;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85%;
  height: 100%;
  background: hsl(var(--background));
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

.mobile-menu-slide.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-search-wrapper {
  margin-bottom: var(--spacing-lg);
}

.mobile-search-form {
  display: flex;
  gap: var(--spacing-xs);
}

.mobile-category-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  border-radius: var(--radius);
  text-decoration: none;
  color: hsl(var(--foreground));
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s ease;
}

.mobile-nav-item:hover {
  background: hsl(var(--accent));
}

.mobile-nav-item.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}


/* ================================
   Layout - Exact Kumparan Match
   ================================ */
.shadcn-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

.kumparan-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 20px 0;
}

@media (max-width: 1024px) {
  .kumparan-layout {
    grid-template-columns: 1fr;
  }
  
  .kumparan-sidebar {
    display: none;
  }
}

/* ================================
   Hero Section - Exact Match
   ================================ */
.kumparan-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.kumparan-hero-large {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 420px;
  background: #000;
}

.hero-large-link {
  display: block;
  height: 100%;
  position: relative;
}

.hero-large-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-large-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
  padding: 24px;
  color: white;
}

.hero-large-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-large-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.hero-author,
.hero-time {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
}

.hero-author i {
  color: #00a9b8;
  font-size: 16px;
}

.hero-time i {
  font-size: 13px;
}

/* Hero Small Grid - Exact Match */
.kumparan-hero-small-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.kumparan-hero-small {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 240px;
  background: #000;
}

.hero-small-link {
  display: block;
  height: 100%;
  position: relative;
}

.hero-small-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-small-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
  padding: 16px;
  color: white;
}

.hero-small-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-small-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

.hero-small-meta .hero-author i {
  font-size: 14px;
}

@media (max-width: 768px) {
  .kumparan-hero-large {
    height: 300px;
  }
  
  .hero-large-title {
    font-size: 22px;
  }
  
  .hero-large-overlay {
    padding: 16px;
  }
  
  .kumparan-hero-small-grid {
    grid-template-columns: 1fr;
  }
  
  .kumparan-hero-small {
    height: 200px;
  }
}

/* ================================
   Trending Sidebar - EXACT Kumparan Match
   Judul kiri, foto 80x80 kanan, scroll vertical
   ================================ */
.kumparan-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.trending-widget {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.trending-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 15px 16px;
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.trending-indicator {
  width: 4px;
  height: 22px;
  background: #dc2626;
  border-radius: 2px;
  flex-shrink: 0;
}

.trending-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  flex: 1;
  color: #1a1a1a;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.trending-more {
  font-size: 13px;
  color: #00a9b8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.trending-more:hover {
  opacity: 0.8;
}

.trending-more svg {
  margin-top: 1px;
}

/* Trending List - Layout: Number + Content (left) + Photo (right) */
.trending-list {
  display: flex;
  flex-direction: column;
}

.trending-item {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  transition: background 0.15s ease;
  align-items: flex-start !important;
}

.trending-item:hover {
  background: #fafafa;
}

.trending-item:last-child {
  border-bottom: none;
}

/* Left side: Number + Content */
.trending-left {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.trending-number {
  flex-shrink: 0;
  width: 16px;
  font-weight: 700;
  color: #999999;
  font-size: 14px;
  line-height: 1.4;
  padding-top: 2px;
}

.trending-content {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.trending-item-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  letter-spacing: -0.2px;
}

.trending-item-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.trending-item-title a:hover {
  color: #00a9b8;
}

.trending-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-bottom: 4px;
}

.trending-author {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 11px;
}

.trending-author svg:first-child {
  flex-shrink: 0;
  margin-top: -1px;
}

.trending-author svg:last-child {
  flex-shrink: 0;
  margin-left: 2px;
}

.trending-time {
  color: #999999;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
}

/* Right side: Photo 80x80 */
.trending-thumbnail {
  flex-shrink: 0 !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
  line-height: 0;
}

.trending-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease;
}

.trending-thumbnail:hover .trending-image {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .kumparan-sidebar {
    display: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .kumparan-sidebar {
    display: none;
  }
}

/* ================================
   Utilities
   ================================ */
.text-center {
  text-align: center;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

/* ================================
   Responsive Adjustments
   ================================ */
@media (max-width: 768px) {
  .kumparan-header-top {
    padding: var(--spacing-sm) 0;
  }
  
  .header-logo img {
    max-height: 40px;
  }
  
  .kumparan-hero-section {
    margin: var(--spacing-lg) 0;
  }
  
  .kumparan-latest-section {
    margin: var(--spacing-lg) 0;
  }
  
  .kumparan-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  
  .kumparan-section-header .section-title {
    font-size: var(--font-size-xl);
  }
}

/* ================================
   Animation
   ================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* ================================
   Hover Effects
   ================================ */
.kumparan-article-card a,
.kumparan-hero-card a {
  display: block;
  height: 100%;
}

.kumparan-article-title a,
.kumparan-hero-title {
  transition: color 0.2s ease;
}

.kumparan-article-card:hover .kumparan-article-title a,
.kumparan-hero-card:hover .kumparan-hero-title {
  color: hsl(var(--primary));
}
/ *   M o b i l e   M e n u   &   U t i l i t i e s   * / 
 
 
 
 . m o b i l e - m e n u - s l i d e { p o s i t i o n : f i x e d ; t o p : 0 ; l e f t : 0 ; r i g h t : 0 ; b o t t o m : 0 ; z - i n d e x : 9 9 9 9 ; p o i n t e r - e v e n t s : n o n e } . m o b i l e - m e n u - s l i d e . a c t i v e { p o i n t e r - e v e n t s : a l l } . m o b i l e - m e n u - o v e r l a y { p o s i t i o n : a b s o l u t e ; i n s e t : 0 ; b a c k g r o u n d : r g b a ( 0 , 0 , 0 , 0 . 5 ) ; o p a c i t y : 0 ; t r a n s i t i o n : o p a c i t y   0 . 3 s } . m o b i l e - m e n u - s l i d e . a c t i v e   . m o b i l e - m e n u - o v e r l a y { o p a c i t y : 1 } . m o b i l e - m e n u - c o n t e n t { p o s i t i o n : a b s o l u t e ; t o p : 0 ; r i g h t : 0 ; w i d t h : 3 0 0 p x ; m a x - w i d t h : 8 5 % ; h e i g h t : 1 0 0 % ; b a c k g r o u n d : w h i t e ; b o x - s h a d o w : - 2 p x   0   8 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ; t r a n s f o r m : t r a n s l a t e X ( 1 0 0 % ) ; t r a n s i t i o n : t r a n s f o r m   0 . 3 s ; o v e r f l o w - y : a u t o ; p a d d i n g : 2 0 p x } . m o b i l e - m e n u - s l i d e . a c t i v e   . m o b i l e - m e n u - c o n t e n t { t r a n s f o r m : t r a n s l a t e X ( 0 ) } . m o b i l e - s e a r c h - w r a p p e r { m a r g i n - b o t t o m : 2 0 p x } . m o b i l e - s e a r c h - f o r m { d i s p l a y : f l e x ; g a p : 8 p x } . m o b i l e - s e a r c h - f o r m   . s h a d c n - i n p u t { f l e x : 1 ; h e i g h t : 4 0 p x ; b o r d e r : 1 p x   s o l i d   # e 5 e 5 e 5 ; b o r d e r - r a d i u s : 8 p x } . m o b i l e - s e a r c h - f o r m   . s h a d c n - b t n { h e i g h t : 4 0 p x ; w i d t h : 4 0 p x ; p a d d i n g : 0 ; b o r d e r - r a d i u s : 8 p x } . m o b i l e - c a t e g o r y - n a v { d i s p l a y : f l e x ; f l e x - d i r e c t i o n : c o l u m n ; g a p : 4 p x } . m o b i l e - n a v - i t e m { d i s p l a y : f l e x ; a l i g n - i t e m s : c e n t e r ; g a p : 1 2 p x ; p a d d i n g : 1 2 p x   1 6 p x ; b o r d e r - r a d i u s : 8 p x ; t e x t - d e c o r a t i o n : n o n e ; c o l o r : # 3 3 3 ; f o n t - s i z e : 1 5 p x ; f o n t - w e i g h t : 5 0 0 ; t r a n s i t i o n : a l l   0 . 2 s } . m o b i l e - n a v - i t e m : h o v e r { b a c k g r o u n d : # f 5 f 5 f 5 } . m o b i l e - n a v - i t e m . a c t i v e { b a c k g r o u n d : # e 0 f 7 f 9 ; c o l o r : # 0 0 a 9 b 8 } . m o b i l e - n a v - i t e m   . m a t e r i a l - i c o n s { f o n t - s i z e : 2 0 p x ; c o l o r : # 6 6 6 } . m o b i l e - n a v - i t e m . a c t i v e   . m a t e r i a l - i c o n s { c o l o r : # 0 0 a 9 b 8 } 
 
 