/*
Theme Name: Mlggdg Equinox
Theme URI:
Author: mlggdg
Author URI:
Description: Bold equinox-magenta stands out on a fast, readable layout made for news and opinion sites.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mlggdgequinox
Tags: featured-images, blog, news, custom-menu, grid-layout, right-sidebar, custom-logo, threaded-comments
Update URI: false
*/

:root {
    /* Colors */
    --color-bg: #f8fafc;
    --color-header-bg: #ffffff;
    --color-card-bg: #ffffff;
    --color-primary: #A30065;
    --color-primary-rgb: 163, 0, 101;
    --color-text-main: #0f172a;
    --color-text-muted: #475569; /* Slate 600 (Accessibility compliant) */
    --color-border: #e2e8f0;
    
    /* Category Badges (Vibrant Multi-Color Accent System) */
    --color-badge-green: #A010B9;
    --color-badge-purple: #F6A75C;
    --color-badge-orange: #16F99C;
    --color-badge-blue: #A30065;
    --color-badge-pink: #7BEC48;

    /* Fonts: system fonts for performance (no Google Fonts download) */
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

/* Mega Menu Custom Styling */
#site-header nav li.group > a::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
    display: none;
    pointer-events: none;
}
#site-header nav li.group:hover > a::after {
    display: block;
    pointer-events: auto;
}
.mega-menu-panel a {
    color: #ffffff !important;
}
.mega-menu-panel a:hover {
    color: var(--color-primary) !important;
}

/* Header Search Custom Classes */
.header-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}
.header-search__form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}
.header-search__input {
    width: 100%;
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px 0 0 4px !important;
    padding: 10px 16px !important;
    padding-right: 48px !important;
    font-size: 0.875rem !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.3s ease;
    height: 44px !important;
}
.header-search__input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}
.header-search__input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 1px var(--color-primary);
}
.header-search__btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 0 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    height: 44px !important;
}
.header-search__btn:hover {
    opacity: 0.9;
}

/* Post Typography (Prose) */
.prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 700 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25 !important;
    color: var(--color-text-main) !important;
    font-family: var(--font-heading) !important;
}
.prose p {
    margin-bottom: 1.25rem !important;
    line-height: 1.75 !important;
    color: var(--color-text-main) !important;
}
.prose ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.25rem !important;
    margin-top: 0.5rem !important;
}
.prose ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1.25rem !important;
    margin-top: 0.5rem !important;
}
.prose li {
    margin-bottom: 0.5rem !important;
    line-height: 1.625 !important;
    display: list-item !important;
    color: var(--color-text-main) !important;
}
.prose strong, .prose b {
    font-weight: 700 !important;
    color: var(--color-text-main) !important;
}
.prose blockquote {
    border-left: 4px solid var(--color-primary) !important;
    padding-left: 1.25rem !important;
    font-style: italic !important;
    margin: 1.5rem 0 !important;
    color: var(--color-text-muted) !important;
}

.prose a,
.prose-a {
    background-color: rgba(0, 0, 0, 0) !important;
    color: var(--color-primary) !important;
}

/* Sidebar Widget Links styling */
.widget-area a,
.widget a,
#secondary a {
    color: #111111 !important;
    transition: color 0.2s ease-in-out;
}
.widget-area a:hover,
.widget a:hover,
#secondary a:hover {
    color: var(--color-primary) !important;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 9999px; /* Rounded pill / circle */
    background-color: #ffffff;
    border: 1px solid var(--color-border);
    color: var(--color-text-main) !important;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
}
.pagination a.page-numbers:hover {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
}
.pagination .page-numbers.current {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
    cursor: default;
}
.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}
.pagination .page-numbers svg {
    width: 1rem;
    height: 1rem;
}

/* Fullpage Slide Snapping Styles */
.fullpage-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 0px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 900ms cubic-bezier(0.25, 1, 0.5, 1), opacity 900ms cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

.fullpage-active {
    transform: translateY(0%) scale(1) !important;
    opacity: 1 !important;
    z-index: 20 !important;
}

.fullpage-prev {
    transform: translateY(-100%) scale(0.85) !important;
    opacity: 0 !important;
    z-index: 10 !important;
}

.fullpage-next {
    transform: translateY(100%) scale(0.85) !important;
    opacity: 0 !important;
    z-index: 10 !important;
}

.fullpage-shrinking {
    transform: translateY(0%) scale(0.9) !important;
    opacity: 0.4 !important;
    z-index: 20 !important;
}

/* Global scrollbar hiding for clean presentation look */
html, body, .no-scrollbar {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
}

html::-webkit-scrollbar, 
body::-webkit-scrollbar, 
.no-scrollbar::-webkit-scrollbar {
    display: none !important; /* Chrome, Safari, Opera */
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

html::-webkit-scrollbar-track, 
body::-webkit-scrollbar-track, 
.no-scrollbar::-webkit-scrollbar-track {
    background: transparent !important;
}

html::-webkit-scrollbar-thumb, 
body::-webkit-scrollbar-thumb, 
.no-scrollbar::-webkit-scrollbar-thumb {
    background: transparent !important;
}

/* Global Accessibility Contrast Overrides (WCAG AA Compliant) */
.text-gray-500, .text-slate-500 {
    color: #4b5563 !important; /* Forces gray-600 on light backgrounds */
}
.text-gray-400, .text-slate-400 {
    color: #475569 !important; /* Forces slate-600 on light backgrounds */
}
#hero-section-container .text-gray-400,
#hero-section-container .text-slate-400,
#hero-section-container .text-gray-500,
#hero-section-container .text-slate-500,
#masthead .text-gray-500,
.bg-gray-900 .text-gray-400,
.bg-gray-900 .text-slate-400,
.bg-black .text-gray-400,
.bg-black .text-slate-400,
.bg-slate-900 .text-gray-400,
.bg-slate-900 .text-slate-400 {
    color: #cbd5e1 !important; /* slate-300 has excellent high contrast on dark backgrounds */
}

/* Category Badge Colors (Vibrant Multi-Color Accent System, dipakai blue_clouds_get_cat_color) */
.badge-green  { background-color: var(--color-badge-green); }
.badge-purple { background-color: var(--color-badge-purple); }
.badge-orange { background-color: var(--color-badge-orange); }
.badge-blue   { background-color: var(--color-badge-blue); }
.badge-pink   { background-color: var(--color-badge-pink); }

/* Accent helpers (ganti kelas "sky-*" bawaan Tailwind yang dulu gak ikut var(--color-primary)) */
.accent-badge { background-color: var(--color-primary); }
.accent-title:hover { color: var(--color-primary) !important; }
.accent-tagline { color: var(--color-primary) !important; }
.accent-footer-link:hover { color: var(--color-primary) !important; }
.accent-tint-30 { background-color: rgba(var(--color-primary-rgb), 0.3); }
.accent-tint-40 { background-color: rgba(var(--color-primary-rgb), 0.4); }
.accent-shadow { --tw-shadow-color: rgba(var(--color-primary-rgb), 0.2) !important; --tw-shadow: var(--tw-shadow-colored) !important; }

/* ------------------------------------------------------------------ */
/* Kontrol form (Contact Us, form komentar, dsb di dalam konten)       */
/* Tailwind preflight nge-reset `border:0` + background transparan ke   */
/* SEMUA input/textarea, jadi kotak field dari plugin/editor jadi tak   */
/* terlihat (label kelihatan, kotaknya hilang). Aturan ini balikin      */
/* border + padding + background biar kotaknya muncul lagi.             */
/* ------------------------------------------------------------------ */
.prose input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=file]),
.prose textarea,
.prose select,
.comment-form input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
.comment-form textarea,
.comment-form select {
    display: block;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f2937;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.prose textarea,
.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}
.prose input:focus,
.prose textarea:focus,
.prose select:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.comment-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
.prose input::placeholder,
.prose textarea::placeholder,
.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #9ca3af;
}
.prose input[type=submit],
.prose button[type=submit],
.prose button.wp-block-button__link,
.comment-form input[type=submit],
.comment-form button[type=submit] {
    display: inline-block;
    width: auto;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.prose input[type=submit]:hover,
.prose button[type=submit]:hover,
.prose button.wp-block-button__link:hover,
.comment-form input[type=submit]:hover,
.comment-form button[type=submit]:hover {
    opacity: 0.9;
}


