/*
Theme Name: DJBC Media Hub
Theme URI: https://djbcmediahub.com
Author: DJBC Media Team
Author URI: https://djbcmediahub.com
Description: Modern minimalist WordPress theme for customs news and media hub - Portal berita Bea Cukai Indonesia dengan desain modern dan minimalis.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: djbctemplate
Tags: news, media, custom-menu, custom-logo, featured-images, translation-ready, responsive-layout

DJBC Media Hub - Portal Berita Bea Cukai Indonesia
*/

/* ===========================
   CSS Variables - Design System
   =========================== */
:root {
    /* Colors - Navy, White, Gold Accent */
    --color-primary: #001F3F;        /* Navy Blue */
    --color-primary-dark: #001528;   /* Darker Navy */
    --color-primary-light: #003366;  /* Lighter Navy */
    --color-accent: #D4AF37;         /* Gold */
    --color-accent-light: #E8C95A;   /* Light Gold */
    --color-accent-dark: #B8941F;    /* Dark Gold */
    
    --color-background: #FFFFFF;     /* White */
    --color-background-light: #F8F9FA; /* Off-white */
    --color-background-alt: #F5F5F5; /* Light gray */
    
    --color-text: #1A1A1A;          /* Almost black */
    --color-text-light: #666666;    /* Medium gray */
    --color-text-lighter: #999999;  /* Light gray */
    --color-border: #E5E5E5;        /* Border gray */
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    
    /* Font Sizes - Modular Scale (1.250) */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.563rem;   /* 25px */
    --font-size-2xl: 1.953rem;  /* 31px */
    --font-size-3xl: 2.441rem;  /* 39px */
    --font-size-4xl: 3.052rem;  /* 49px */
    
    /* Spacing - 8-Point Grid */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    
    /* Layout */
    --container-max: 1200px;
    --container-wide: 1400px;
    --border-radius: 4px;
    --border-radius-lg: 8px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ===========================
   Modern CSS Reset
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h1 { font-size: var(--font-size-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--font-size-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-md);
}

/* ===========================
   Layout Utilities
   =========================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-fluid {
    max-width: 100%;
}

/* ===========================
   Main Structure
   =========================== */
.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: var(--space-2xl) 0;
    background-color: var(--color-background);
}

/* ===========================
   Responsive Typography
   =========================== */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.625rem;
        --font-size-xl: 1.375rem;
    }
    
    .site-content {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 480px) {
    :root {
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
}

/* ===========================
   WordPress Core Alignment
   =========================== */
.alignleft {
    float: left;
    margin-right: var(--space-md);
    margin-bottom: var(--space-md);
}

.alignright {
    float: right;
    margin-left: var(--space-md);
    margin-bottom: var(--space-md);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-md);
}

.alignwide {
    max-width: var(--container-wide);
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ===========================
   Screen Reader Text
   =========================== */
.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;
}

.screen-reader-text:focus {
    background-color: var(--color-background);
    clip: auto !important;
    clip-path: none;
    color: var(--color-text);
    display: block;
    font-size: var(--font-size-base);
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
