/*
Theme Name: Auf Indonesia
Theme URI: https://aufindonesia.id
Author: Auf Indonesia Team
Author URI: https://aufindonesia.id
Description: WordPress template modern untuk publikasi artikel Indonesia. Tampilan hijau-putih elegan mirip Mizan.com, responsive, cepat, dan aman.
Version: 1.0.0
Text Domain: auf-indonesia
*/

/* Fallback Styles - Ensures the site isn't "plain white" if CDN fails */
body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Main Colors - Mizan Style Green/White */
.header-primary { background-color: #059669; }
.header-secondary { background-color: #10b981; }
.text-primary { color: #059669; }
.text-secondary { color: #10b981; }
.bg-primary { background-color: #059669; }
.bg-secondary { background-color: #10b981; }
.bg-light { background-color: #f3f4f6; }

/* Layout */
header {
    background-color: #059669;
    border-bottom: 4px solid #10b981;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ensure the layout has some structure even without Tailwind */
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.border { border: 1px solid #e2e8f0; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-7 { padding: 1.75rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-medium { font-weight: 500; }
.object-cover { object-fit: cover; }
.overflow-hidden { overflow: hidden; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:hidden { display: none; }
    .md\:inline-flex { display: inline-flex; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Navigation */
.nav-link {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fbbf24 !important;
}

/* Search Bar */
.search-bar {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border-radius: 0 0 24px 24px;
}

/* Article Cards */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e5e7eb;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Price Badges */
.price-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: #059669;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #047857;
}

.btn-secondary {
    background-color: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #059669;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Footer */
.footer-primary {
    background-color: #059669;
    color: white;
}

.footer-secondary {
    background-color: #047857;
    color: #e5e7eb;
}

/* Form Inputs */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #059669;
}

/* Badges */
.badge-success {
    background-color: #dcfce7;
    color: #15803d;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.badge-pending {
    background-color: #fef3c7;
    color: #d97706;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* =========================================
   DARK MODE STYLES - WCAG AA/AAA Compliant
   ========================================= */

/* Base dark mode styles */
body.dark-mode {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}

/* Dark mode text colors with WCAG compliant contrast */
body.dark-mode .text-gray-900 { color: #f0fdf4 !important; }
body.dark-mode .text-gray-800 { color: #dcfce7 !important; }
body.dark-mode .text-gray-700 { color: #bbf7d0 !important; }
body.dark-mode .text-gray-600 { color: #86efac !important; }
body.dark-mode .text-gray-500 { color: #4ade80 !important; }
body.dark-mode .text-gray-400 { color: #86efac !important; }
body.dark-mode .text-green-800 { color: #15803d !important; }
body.dark-mode .text-green-700 { color: #16a34a !important; }

/* Dark mode background colors */
body.dark-mode .bg-white { background-color: #1e293b !important; color: #f1f5f9 !important; }
body.dark-mode .bg-gray-50 { background-color: #0f172a !important; }
body.dark-mode .bg-gray-100 { background-color: #1e293b !important; }
body.dark-mode .bg-gray-200 { background-color: #334155 !important; }
body.dark-mode .bg-gray-300 { background-color: #475569 !important; }

/* Article cards dark mode */
body.dark-mode .article-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-mode .article-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Button dark mode */
body.dark-mode .btn-primary {
    background-color: #047857 !important;
}
body.dark-mode .btn-primary:hover {
    background-color: #059669 !important;
}
body.dark-mode .btn-secondary {
    background-color: #059669 !important;
}
body.dark-mode .btn-secondary:hover {
    background-color: #047857 !important;
}

/* Form inputs dark mode */
body.dark-mode .input-field {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .input-field:focus {
    border-color: #10b981 !important;
}
body.dark-mode .input-field::placeholder {
    color: #94a3b8 !important;
}

/* Badge dark mode */
body.dark-mode .badge-success {
    background-color: #14532d !important;
    color: #86efac !important;
}
body.dark-mode .badge-pending {
    background-color: #78350f !important;
    color: #fcd34d !important;
}

/* Header dark mode */
body.dark-mode header {
    background-color: #047857 !important;
    border-bottom: 4px solid #059669 !important;
}

/* Footer dark mode */
body.dark-mode .footer-primary {
    background-color: #047857 !important;
    color: #f1f5f9 !important;
}
body.dark-mode .footer-secondary {
    background-color: #064e3b !important;
    color: #d1fae5 !important;
}

/* Navigation dark mode */
body.dark-mode .nav-link {
    color: #f1f5f9 !important;
}
body.dark-mode .nav-link:hover {
    color: #34d399 !important;
}

/* Search bar dark mode */
body.dark-mode .search-bar {
    background-color: #1e293b !important;
}

/* Hero section dark mode */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #047857 0%, #064e3b 100%) !important;
}

/* Price badge dark mode */
body.dark-mode .price-badge {
    background-color: #14532d !important;
    color: #86efac !important;
}

/* Link colors dark mode */
body.dark-mode a {
    color: #34d399 !important;
}
body.dark-mode a:hover {
    color: #10b981 !important;
}

/* Border colors dark mode */
body.dark-mode .border-gray-200 { border-color: #334155 !important; }
body.dark-mode .border-gray-300 { border-color: #475569 !important; }
body.dark-mode .border-gray-400 { border-color: #64748b !important; }
body.dark-mode .border-green-200 { border-color: #86efac !important; }
body.dark-mode .border-green-300 { border-color: #4ade80 !important; }

/* Shadow dark mode */
body.dark-mode .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.5) !important;
}
body.dark-mode .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5) !important;
}

/* =========================================
   HERO SLIDER STYLES - Mizan Style
   ========================================= */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(5, 150, 105, 0.95) 0%, rgba(5, 150, 105, 0.4) 50%, transparent 100%);
    padding: 3rem 1rem 2rem 1rem;
    color: white;
}

.hero-slider-badge {
    display: inline-block;
    background: #fbbf24;
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-slider-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-slider-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slider-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #059669;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-slider-btn:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 1rem;
}

.slider-nav.next {
    right: 1rem;
}

.slider-nav svg {
    width: 24px;
    height: 24px;
    color: #059669;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-indicator.active {
    background: #fbbf24;
    transform: scale(1.2);
    width: 32px;
    border-radius: 6px;
}

/* Dark mode slider styles */
.dark-mode .hero-slider-content {
    background: linear-gradient(to top, rgba(5, 87, 87, 0.95) 0%, rgba(5, 87, 87, 0.4) 50%, transparent 100%);
}

.dark-mode .slider-nav {
    background: rgba(30, 41, 59, 0.85);
    color: #f1f5f9;
}

.dark-mode .slider-nav:hover {
    background: #1e293b;
}

.dark-mode .slider-indicator {
    background: rgba(30, 41, 59, 0.5);
}

.dark-mode .slider-indicator.active {
    background: #86efac;
}

.dark-mode .hero-slider-btn {
    background: #0f172a;
    color: #f0fdf4;
}

.dark-mode .hero-slider-btn:hover {
    background: #1e293b;
}
