/*
Theme Name: Portal Berita Modern
Theme URI: https://ajnn.net/
Author: Antigravity Digital Studio
Author URI: https://ajnn.net/
Description: Tema WordPress portal berita modern, bersih, cepat, dan responsif yang terinspirasi dari tata letak dan nuansa visual AJNN.net. Dilengkapi fitur Mode Gelap / Terang (Light & Dark Mode) otomatis tersimpan di browser, breaking news ticker, hero headline beraksen merah tajam, trending top bernomor khas biru navy, carousel multimedia grafis/video, serta Sistem Manajemen Banner Iklan Instansi Tanpa Batas (Unlimited & Dinamis) dengan aneka pilihan slot dan mode display (tumpuk, grid, slider rotasi).
Version: 1.0.0
Requires at least: 5.8
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: portal-berita
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* Core CSS reset & typography imports */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Rubik:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette inspired by AJNN.net */
  --primary-red: #d82523;
  --primary-red-hover: #b71c1c;
  --primary-blue: #1d64a9;
  --navy-trending: #115291;
  --navy-dark: #0c3b69;
  --accent-gold: #f59e0b;

  /* Light Theme Variables */
  --body-bg: #f4f5f7;
  --card-bg: #ffffff;
  --card-border: #e6e8ec;
  --text-main: #2d3748;
  --text-title: #1a202c;
  --text-title-link: #1d64a9;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --header-bg: #ffffff;
  --topbar-bg: #0f172a;
  --topbar-text: #cbd5e1;
  --navbar-bg: #ffffff;
  --navbar-text: #1e293b;
  --navbar-border: #e2e8f0;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-title: #ffffff;
  --footer-bottom: #090e1a;
  --ticker-bg: #ffffff;
  --badge-bg: #d82523;
  --badge-text: #ffffff;
  --input-bg: #f8fafc;
  --input-border: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Dark Theme Variables */
body.dark-theme {
  --body-bg: #18191a;
  --card-bg: #242526;
  --card-border: #3a3b3c;
  --text-main: #e4e6eb;
  --text-title: #f5f6f7;
  --text-title-link: #f0f2f5;
  --text-muted: #b0b3b8;
  --text-light: #8a8d91;
  --header-bg: #242526;
  --topbar-bg: #141516;
  --topbar-text: #a0aec0;
  --navbar-bg: #242526;
  --navbar-text: #e4e6eb;
  --navbar-border: #3a3b3c;
  --footer-bg: #141516;
  --footer-text: #8a8d91;
  --footer-title: #e4e6eb;
  --footer-bottom: #0c0d0e;
  --ticker-bg: #242526;
  --input-bg: #18191a;
  --input-border: #3a3b3c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-red);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', 'Roboto', sans-serif;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* WordPress Core Alignment Classes */
.alignwide {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
