/*
Theme Name: Kampung Online Kita
Theme URI: https://kampungonlinekita.id
Author: Kampung Online Kita Developer Team
Author URI: https://kampungonlinekita.id
Description: Tema Berita Premium, Modern, Elegan & Marketplace WooCommerce untuk Kampung Online Kita. Dilengkapi dengan Hero Slider Otomatis, Breaking News Ticker, Integrasi WhatsApp Checkout untuk WooCommerce, SEO & GEO Ready, Mobile Bottom Bar, dan Kompatibel 100% dengan PHP 8.x dan Elementor.
Version: 2.1.0
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kampung-online-kita
Tags: news, blog, e-commerce, woocommerce, grid-layout, custom-colors, custom-menu, featured-images, theme-options, translation-ready, full-width-template
*/

/* Reset & Root Variables */
:root {
  --kok-primary: #0f2b5c;
  --kok-primary-dark: #091a38;
  --kok-accent-gold: #c8963e;
  --kok-accent-gold-light: #fef08a;
  --kok-accent-gold-dark: #92400e;
  --kok-bg-light: #f8fafc;
  --kok-text-dark: #0f172a;
  --kok-text-muted: #64748b;
  --kok-whatsapp: #25d366;
  --kok-whatsapp-dark: #128c7e;
  --kok-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --kok-font-serif: 'Playfair Display', Georgia, serif;
}

body {
  font-family: var(--kok-font-sans);
  background-color: var(--kok-bg-light);
  color: var(--kok-text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--kok-font-serif);
  color: var(--kok-primary);
  font-weight: 700;
  line-height: 1.25;
}

/* Container */
.kok-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar & Ticker */
.kok-topbar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.813rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.kok-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.kok-ticker-badge {
  background: #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Header & Brand */
.kok-header-container {
  background: #ffffff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.kok-site-branding {
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
}

.kok-brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.kok-site-title {
  font-size: 1.85rem;
  margin: 0;
  color: var(--kok-primary);
  letter-spacing: -0.02em;
}

.kok-site-description {
  font-size: 0.8rem;
  color: var(--kok-accent-gold-dark);
  margin: 0.2rem 0 0 0;
  font-weight: 600;
}

/* Navigation */
.kok-main-navigation {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.kok-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.kok-nav-menu a {
  display: block;
  padding: 0.85rem 0;
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.938rem;
  transition: color 0.2s ease;
  position: relative;
}

.kok-nav-menu a:hover,
.kok-nav-menu .current-menu-item > a {
  color: #1d4ed8;
}

/* Hero Slider */
.kok-hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 8px 30px rgba(15, 43, 92, 0.12);
}

.kok-slide-item {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
}

.kok-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.kok-slide-content {
  max-width: 800px;
  color: #ffffff;
}

/* WooCommerce WhatsApp Button */
.kok-btn-whatsapp-order {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.kok-btn-whatsapp-order:hover {
  background: #1eb855;
  transform: translateY(-2px);
}

/* Mobile Bottom Bar */
.kok-mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  .kok-mobile-bottom-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  body {
    padding-bottom: 70px;
  }
}
