/*
Theme Name: MUI Subang Digital
Theme URI: https://muisubang.com
Author: Majelis Ulama Indonesia Kabupaten Subang
Author URI: https://muisubang.com
Description: Tema resmi Majelis Ulama Indonesia Kabupaten Subang berbasis WordPress Full Site Editing (FSE) Versi 2.0. Menghadirkan ekosistem digital keumatan 30 kecamatan, Pusat Layanan & Sertifikasi Halal UMKM Subang, audio adzan otomatis, berita editorial asimetris standar MUI Jawa Barat, serta multi-channel Tanya Ulama 2.0.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mui-subang-digital
Tags: block-theme, full-site-editing, custom-colors, custom-menu, featured-images, rtl-language-support, news, translation-ready

Tema resmi Majelis Ulama Indonesia (MUI) Kabupaten Subang.
Dikembangkan dengan standar arsitektur WordPress modern (Block Theme FSE).
*/

/* Baseline Styles & CSS Variables Fallback */
:root {
  --wp--preset--color--primary: #075e46;
  --wp--preset--color--primary-dark: #064535;
  --wp--preset--color--accent: #16866a;
  --wp--preset--color--gold: #c9a24b;
  --wp--preset--color--gold-dark: #9c7b2e;
  --wp--preset--color--light: #f7f9f7;
  --wp--preset--color--dark: #101a18;
  --wp--preset--color--surface: #ffffff;
  --wp--preset--color--text: #202724;
  --wp--preset--color--muted: #5e6c64;
  --wp--preset--color--border: #e4eae6;
  --wp--preset--color--card-bg: #ffffff;
  --wp--preset--color--card-border: #e4eae6;
  --mui-header-height: 80px;
  --mui-radius-sm: 4px;
  --mui-radius-md: 8px;
  --mui-radius-lg: 16px;
  --mui-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --mui-shadow-md: 0 4px 12px rgba(7, 94, 70, 0.08);
  --mui-shadow-lg: 0 10px 25px rgba(7, 94, 70, 0.12);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
  --wp--preset--color--surface: #14221f;
  --wp--preset--color--light: #0d1514;
  --wp--preset--color--dark: #f0f4f2;
  --wp--preset--color--text: #e2e8e5;
  --wp--preset--color--muted: #99a8a1;
  --wp--preset--color--border: #233732;
  --wp--preset--color--card-bg: #182a26;
  --wp--preset--color--card-border: #233732;
  --mui-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --mui-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  background-color: var(--wp--preset--color--light);
  color: var(--wp--preset--color--text);
}

/* Smooth Scrolling & Focus Outline */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--wp--preset--color--gold);
  outline-offset: 2px;
}

/* Arab Typography Class */
.arabic-text {
  font-family: 'Noto Naskh Arabic', 'Traditional Arabic', 'Scheherazade New', serif;
  direction: rtl;
  text-align: right;
  line-height: 2;
  font-size: 1.35rem;
}

/* Skip link accessibility */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--wp--preset--color--gold);
  color: #101a18;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 99999;
  border-radius: var(--mui-radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}
