/*
Theme Name: OneAroon2026Theme
Theme URI: https://onearoon.com
Author: OneAroon Team & Rapepong
Author URI: https://onearoon.com
Description: Official tailored WordPress theme for OneAroon (ไร่หนึ่งอรุณ). Authentic Dark Luxury & Gold on Charcoal Black theme matching the exact live website design with full Course LMS, E-Commerce Shop, and Audio Visualizer.
Version: 3.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: onearoon2026theme
Tags: one-aroon, dark-mode, custom-colors, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready, seo-optimized
*/

:root {
    --oa-bg: #121212;             /* Deep Matte Black Background */
    --oa-header-bg: #121212;      /* Black Header */
    --oa-card-bg: #1e1e20;        /* Charcoal Dark Card Background */
    --oa-card-border: #2e2e32;    /* Subtle Card Border */
    --oa-gold: #f59e0b;           /* Authentic Gold Accent */
    --oa-gold-dark: #d97706;      /* Deep Amber Gold */
    --oa-gold-light: #fde68a;     /* Soft Gold Text */
    --oa-text-white: #ffffff;     /* Pure White Headings */
    --oa-text-muted: #a1a1aa;     /* Gray Excerpt Text */
    --oa-border: #27272a;         /* Dark Separator Border */
    --oa-radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px; line-height: 1.7; color: #e4e4e7; background-color: var(--oa-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--oa-gold); text-decoration: none; transition: all 0.2s; }
a:hover { color: #fbbf24; }

.oa-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.oa-topbar { background: #0a0a0a; color: #a1a1aa; padding: 8px 0; font-size: 13px; font-weight: 500; border-bottom: 1px solid #1f1f23; }
.oa-topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.oa-topbar-right { display: flex; align-items: center; gap: 12px; }
.oa-topbar-right .sep { color: #3f3f46; }
.oa-member-link { color: var(--oa-gold-light) !important; font-weight: 700; }
.oa-member-link:hover { color: #ffffff !important; text-decoration: underline; }
.oa-logout-link { color: #ef4444 !important; font-size: 12px; }

/* Main Header (Black Minimalist with Pill Active Link) */
.oa-header {
    background: var(--oa-header-bg); border-bottom: 1px solid var(--oa-border);
    position: sticky; top: 0; z-index: 999;
}
.oa-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.oa-logo-wrap { display: flex; align-items: center; gap: 12px; }
.oa-logo a { font-size: 26px; font-weight: 800; color: #ffffff; letter-spacing: -0.5px; }
.oa-logo .dot { color: var(--oa-gold); }

.oa-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; align-items: center; }
.oa-nav a { color: #ffffff; font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 20px; transition: all 0.2s; }
.oa-nav a:hover, .oa-nav .current-menu-item a, .oa-nav a.is-active {
    background: transparent; border: 1px solid var(--oa-gold); color: #ffffff;
}
.oa-header-cart { color: #ffffff; font-size: 14px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.oa-header-cart .bag-badge { background: var(--oa-gold); color: #121212; padding: 2px 7px; border-radius: 10px; font-size: 12px; font-weight: 800; }

.oa-mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: #ffffff; }

/* Ticker Bar */
.oa-ticker-bar {
    background: #18181b; color: var(--oa-gold-light); padding: 12px 0; font-size: 13px; font-weight: 600;
    letter-spacing: 1px; text-align: center; text-transform: uppercase; border-bottom: 1px solid #27272a;
}

/* Hero Section */
.oa-hero-section {
    background: linear-gradient(180deg, #121212 0%, #18181b 100%);
    color: #ffffff; padding: 90px 20px; text-align: center; position: relative; border-bottom: 1px solid #27272a;
}
.oa-hero-badge {
    display: inline-block; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 6px 18px; border-radius: 20px; font-size: 13px; font-weight: 800; color: var(--oa-gold);
    margin-bottom: 20px; letter-spacing: 1.2px; text-transform: uppercase;
}
.oa-hero-title { font-size: 46px; font-weight: 800; margin: 0 0 18px; color: #ffffff; line-height: 1.2; }
.oa-hero-desc { font-size: 17.5px; color: #d4d4d8; max-width: 780px; margin: 0 auto 35px; line-height: 1.65; }
.oa-hero-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.oa-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 26px;
    border-radius: 25px; font-size: 14.5px; font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.oa-btn-primary { background: var(--oa-gold); color: #121212 !important; }
.oa-btn-primary:hover { background: #fbbf24; transform: translateY(-2px); }
.oa-btn-outline { background: transparent; color: #ffffff !important; border: 1px solid rgba(255,255,255,0.3); }
.oa-btn-outline:hover { border-color: var(--oa-gold); color: var(--oa-gold) !important; }

/* Sections */
.oa-section { padding: 65px 0; }
.oa-section-header { text-align: center; margin-bottom: 45px; }
.oa-section-subtitle { font-size: 13px; font-weight: 800; color: var(--oa-gold); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 8px; display: block; }
.oa-section-title { font-size: 32px; font-weight: 800; color: #ffffff; margin: 0 0 10px; }
.oa-section-desc { font-size: 15px; color: var(--oa-text-muted); margin: 0; max-width: 650px; margin: 0 auto; }

/* Authentic OneAroon Post & Product Cards (Dark Mode) */
.oa-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.oa-card {
    background: var(--oa-card-bg); border-radius: var(--oa-radius); overflow: hidden;
    border: 1px solid var(--oa-card-border); display: flex; flex-direction: column;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.oa-card:hover { transform: translateY(-4px); border-color: var(--oa-gold); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.oa-card-thumb { position: relative; padding-bottom: 58%; background: #121212; }
.oa-card-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.oa-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }

.oa-card-meta { font-size: 12.5px; font-weight: 700; color: var(--oa-gold); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.oa-card-title { font-size: 19px; font-weight: 700; margin: 0 0 12px; line-height: 1.4; }
.oa-card-title a { color: #ffffff; }
.oa-card-title a:hover { color: var(--oa-gold); }
.oa-card-excerpt { font-size: 14.5px; color: var(--oa-text-muted); line-height: 1.6; margin-bottom: 22px; flex-grow: 1; }

/* Signature Pill Button "☝ คลิกอ่าน" */
.oa-read-btn {
    align-self: flex-start; background: var(--oa-gold); color: #121212 !important; border: none;
    padding: 8px 18px; border-radius: 20px; font-size: 13.5px; font-weight: 800; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.oa-read-btn:hover { background: #fbbf24; transform: scale(1.03); }

/* Product Cards */
.oa-card-footer-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid #2e2e32; }
.oa-prod-price { font-size: 22px; font-weight: 800; color: var(--oa-gold); }
.oa-btn-buy { background: var(--oa-gold); color: #121212 !important; border: none; padding: 8px 20px; border-radius: 20px; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.oa-btn-buy:hover { background: #fbbf24; }
.oa-stock-badge { font-size: 12px; font-weight: 700; margin-bottom: 8px; display: inline-block; color: #22c55e; }

/* Pagination */
.oa-pagination { margin-top: 40px; text-align: center; }
.oa-pagination ul { list-style: none; padding: 0; margin: 0; display: inline-flex; gap: 8px; }
.oa-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
    padding: 0 14px; background: #1e1e20; color: #ffffff; border: 1px solid #2e2e32;
    border-radius: 8px; font-weight: 600; font-size: 14px;
}
.oa-pagination .page-numbers.current { background: var(--oa-gold); color: #121212 !important; border-color: var(--oa-gold); font-weight: 800; }
.oa-pagination .page-numbers:hover { border-color: var(--oa-gold); color: var(--oa-gold); }

/* Business CTA */
.oa-business-cta {
    background: #18181b; color: #ffffff; padding: 60px 35px; border-radius: var(--oa-radius);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 25px;
    margin: 30px 0; border: 1px solid var(--oa-card-border);
}
.oa-business-content h2 { font-size: 28px; margin: 0 0 10px; color: #ffffff; }
.oa-business-content p { font-size: 16px; color: #d4d4d8; margin: 0 0 15px; }
.oa-tags-row { display: flex; gap: 10px; flex-wrap: wrap; }
.oa-tag { background: rgba(245, 158, 11, 0.12); color: var(--oa-gold); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; border: 1px solid rgba(245, 158, 11, 0.25); }

/* Footer */
.oa-footer { background: #0a0a0a; color: #a1a1aa; padding: 60px 0 30px; border-top: 1px solid #1f1f23; }
.oa-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #27272a; }
.oa-footer-col h4 { color: #ffffff; font-size: 18px; margin: 0 0 16px; }
.oa-footer-col p { font-size: 14px; line-height: 1.8; margin: 0; color: #a1a1aa; }
.oa-footer-bottom { padding-top: 25px; text-align: center; font-size: 13px; color: #71717a; }

@media (max-width: 900px) {
    .oa-hero-title { font-size: 34px; }
    .oa-footer-grid { grid-template-columns: 1fr; }
    .oa-mobile-toggle { display: block; }
    .oa-nav { display: none; width: 100%; position: absolute; top: 100%; left: 0; background: #121212; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-bottom: 1px solid #27272a; }
    .oa-nav.is-active { display: block; }
    .oa-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ==========================================================================
   INTERACTIVE UI STATES & MICRO-INTERACTIONS (STANDBY, HOVER, CLICK/ACTIVE)
   ========================================================================== */

/* 1. Navigation Menu Interactive States */
.oa-nav a {
    color: #ffffff; font-weight: 600; font-size: 15px; padding: 7px 16px;
    border-radius: 20px; border: 1px solid transparent; transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; display: inline-block;
}

/* Standby / Active Page (เมนูที่กำลังเปิดอยู่) */
.oa-nav .current-menu-item a,
.oa-nav a.is-active {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

/* Hover ("แค่ดู / เลื่อนเมาส์ไปชี้") */
.oa-nav a:hover {
    border: 1px solid rgba(253, 230, 138, 0.6);
    color: #fde68a !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Click / Pressed (เมื่อกดคลิก) */
.oa-nav a:active {
    background: rgba(251, 191, 36, 0.25) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    transform: scale(0.94);
}

/* 2. Article & Product Cards Interactive States */
.oa-card, .rp-pro-post-card {
    background: var(--oa-card-bg); border-radius: var(--oa-radius); overflow: hidden;
    border: 1px solid var(--oa-card-border); display: flex; flex-direction: column;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1); position: relative;
}

.oa-card-thumb, .rp-post-thumb-wrap {
    position: relative; padding-bottom: 58%; background: #121212; overflow: hidden;
}
.oa-card-thumb img, .rp-post-thumb {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover ("แค่ดู"): ยกการ์ดลอยขึ้น + เส้นขอบสีทองเรืองแสง + ซูมภาพ */
.oa-card:hover, .rp-pro-post-card:hover {
    transform: translateY(-6px);
    border-color: #f59e0b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.2);
}
.oa-card:hover .oa-card-thumb img,
.rp-pro-post-card:hover .rp-post-thumb {
    transform: scale(1.05);
}

/* Click / Active (เมื่อคลิกที่การ์ด) */
.oa-card:active, .rp-pro-post-card:active {
    transform: translateY(-2px) scale(0.99);
    border-color: #fbbf24;
}

/* 3. Button "☝ คลิกอ่าน" & "🛒 สั่งซื้อด่วน" Interactive States */
.oa-read-btn, .rp-readmore, .oa-btn-buy {
    align-self: flex-start; background: #f59e0b; color: #121212 !important; border: none;
    padding: 8px 20px; border-radius: 20px; font-size: 13.5px; font-weight: 800;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    display: inline-flex; align-items: center; gap: 5px;
}

/* Hover ("แค่ดู"): ขยายตัว + สีทองสว่างขึ้น + เงาเปล่งแสง */
.oa-read-btn:hover, .rp-readmore:hover, .oa-btn-buy:hover {
    background: #fbbf24;
    color: #000000 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Click / Active ("เมื่อกดคลิก"): ยุบตัวลงรับการกด + เปลี่ยนเฉดสีเหลืองทองชัดเจน */
.oa-read-btn:active, .rp-readmore:active, .oa-btn-buy:active {
    background: #fde047 !important;
    transform: translateY(1px) scale(0.95);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* 4. Numbered Navigator Pagination Interactive States */
.oa-pagination .page-numbers, .rp-pagination-container .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
    padding: 0 14px; background: #1e1e20; color: #ffffff; border: 1px solid #2e2e32;
    border-radius: 8px; font-weight: 600; font-size: 14px; transition: all 0.2s ease;
}

/* Standby Active Page (หน้าปัจจุบัน) */
.oa-pagination .page-numbers.current, .rp-pagination-container .page-numbers.current {
    background: #f59e0b !important; color: #121212 !important; border-color: #f59e0b !important;
    font-weight: 800; box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

/* Hover ("แค่ดู") */
.oa-pagination .page-numbers:hover, .rp-pagination-container .page-numbers:hover {
    border-color: #f59e0b; color: #f59e0b; background: #27272a; transform: translateY(-2px);
}

/* Click ("เมื่อกดคลิก") */
.oa-pagination .page-numbers:active, .rp-pagination-container .page-numbers:active {
    transform: scale(0.92); background: #f59e0b; color: #121212;
}
