/* ============================================================
   ALASANDONG — SHARED PAGE STYLES v5
   Modern, responsive, multi-platform. Distinct Light & Dark
   themes. Used by all content/article pages.
   ============================================================ */
:root {
    --bg-color: #07070b;
    --bg-grad-1: rgba(0, 255, 157, 0.12);
    --bg-grad-2: rgba(120, 90, 255, 0.14);
    --surface: rgba(22, 22, 30, 0.72);
    --surface-solid: #16161e;
    --surface-hover: #1e1e28;
    --text-main: #f4f4f8;
    --text-muted: #9a9aae;
    --text-body: #d3d3df;
    --accent: #00ff9d;
    --accent-2: #7b61ff;
    --accent-text: #05130d;
    --accent-glow: rgba(0, 255, 157, 0.28);
    --danger: #ff6b6b;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --input-bg: rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
    --ring: rgba(0, 255, 157, 0.22);
    color-scheme: dark;
}

body.light-mode {
    --bg-color: #eef1f7;
    --bg-grad-1: rgba(0, 168, 84, 0.16);
    --bg-grad-2: rgba(99, 102, 241, 0.14);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --surface-hover: #f4f6fb;
    --text-main: #10131a;
    --text-muted: #5a6474;
    --text-body: #333a47;
    --accent: #00a35a;
    --accent-2: #6146ff;
    --accent-text: #ffffff;
    --accent-glow: rgba(0, 163, 90, 0.22);
    --danger: #e02f4f;
    --border: rgba(15, 20, 35, 0.10);
    --border-strong: rgba(15, 20, 35, 0.18);
    --input-bg: #eef1f7;
    --shadow-lg: 0 24px 60px rgba(60, 80, 130, 0.18);
    --shadow-sm: 0 8px 24px rgba(60, 80, 130, 0.12);
    --ring: rgba(0, 163, 90, 0.20);
    color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(closest-side at 12% 8%, var(--bg-grad-1) 0%, transparent 60%),
        radial-gradient(closest-side at 88% 92%, var(--bg-grad-2) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
    padding: clamp(16px, 4vw, 28px);
    padding-top: max(clamp(16px, 4vw, 28px), env(safe-area-inset-top));
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.theme-toggle {
    position: fixed; top: clamp(14px, 3vw, 20px); right: clamp(14px, 3vw, 20px);
    background: var(--surface); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid var(--border-strong); width: 46px; height: 46px; border-radius: 50%;
    cursor: pointer; color: var(--text-main); font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    z-index: 100; box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px) rotate(-12deg); box-shadow: 0 10px 24px var(--accent-glow); }
.theme-toggle:active { transform: scale(0.94); }

.container { max-width: 820px; margin: 0 auto; padding-bottom: 40px; }

.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--accent); }

.blog-header { text-align: center; margin-bottom: clamp(30px, 6vw, 44px); padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.blog-header img { width: clamp(92px, 24vw, 120px); height: auto; margin-bottom: 14px; border-radius: 26px; background: linear-gradient(145deg, #ffffff, #e9edf5); padding: 11px; box-shadow: 0 16px 38px var(--accent-glow); transition: transform 0.4s cubic-bezier(.34,1.56,.64,1); }
.blog-header img:hover { transform: scale(1.06) rotate(-4deg); }

h1 { color: var(--accent); font-size: clamp(1.55rem, 6vw, 2.1rem); margin-bottom: 12px; font-weight: 800; line-height: 1.2; }
.subtitle { color: var(--text-muted); font-size: 1.05rem; }

.article-content {
    background: var(--surface); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--border); padding: clamp(22px, 5vw, 34px); border-radius: 22px;
    margin-bottom: 30px; box-shadow: var(--shadow-sm);
}
h2 { color: var(--text-main); font-size: clamp(1.2rem, 4.5vw, 1.45rem); margin-top: 32px; margin-bottom: 16px; padding-left: 16px; border-left: 4px solid var(--accent); line-height: 1.3; }
.article-content > h2:first-child, .article-content > p:first-child { margin-top: 0; }
p { color: var(--text-body); margin-bottom: 20px; font-size: 1.05rem; }
a { color: var(--accent); font-weight: 600; }

ul, ol { margin-bottom: 30px; padding: 20px 20px 20px 42px; background: var(--input-bg); border-radius: 14px; border: 1px solid var(--border); }
li { color: var(--text-body); margin-bottom: 14px; }
li:last-child { margin-bottom: 0; }
strong { color: var(--text-main); font-weight: 700; }

.faq-item { margin-bottom: 22px; }
.faq-item h3 { color: var(--text-main); font-size: 1.1rem; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; color: var(--text-body); }

/* Blog article-card grid */
.article-list { display: flex; flex-direction: column; gap: 18px; margin-top: clamp(28px, 6vw, 40px); }
.article-card {
    background: var(--surface); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 4vw, 26px);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease; text-decoration: none; display: block; box-shadow: var(--shadow-sm);
}
.article-card:hover { border-color: var(--accent); box-shadow: 0 16px 38px var(--accent-glow); transform: translateY(-4px); }
.article-card h2 { color: var(--text-main); font-size: 1.25rem; margin: 0 0 10px 0; border: none; padding: 0; }
.article-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.read-more { color: var(--accent); font-weight: 800; font-size: 0.9rem; margin-top: 14px; display: inline-block; }

/* Log timeline */
.timeline { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.log-item { background: var(--surface); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 20px; padding: clamp(20px, 4vw, 26px); transition: transform 0.28s ease, box-shadow 0.28s ease; box-shadow: var(--shadow-sm); }
.log-item:hover { transform: translateY(-4px); box-shadow: 0 16px 38px var(--accent-glow); }
.log-date { display: inline-block; background: var(--accent-glow); color: var(--accent); font-size: 0.78rem; font-weight: 800; padding: 5px 13px; border-radius: 20px; margin-bottom: 12px; }
.log-title { color: var(--text-main); font-size: 1.2rem; margin-bottom: 15px; font-weight: 800; }
.log-list { list-style: none; display: flex; flex-direction: column; gap: 10px; background: none; border: none; padding: 0; }
.log-list li { color: var(--text-body); font-size: 0.98rem; padding-left: 26px; position: relative; margin-bottom: 0; }
.log-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 900; }
.log-list strong { color: var(--text-main); font-weight: 700; }

/* Contact page */
.contact-card { background: var(--input-bg); border: 1px solid var(--border); padding: 22px; border-radius: 16px; margin-top: 20px; }
.contact-item { margin-bottom: 20px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item strong { color: var(--accent); display: block; margin-bottom: 5px; }

/* Back button */
.btn-back {
    display: flex; justify-content: center; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-text);
    padding: 15px 30px; text-decoration: none; border-radius: 15px; font-weight: 800; font-size: 1.05rem;
    margin: clamp(34px, 7vw, 48px) auto 0; box-shadow: 0 14px 34px var(--accent-glow);
    text-transform: uppercase; letter-spacing: 0.5px; transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease; max-width: fit-content;
}
.btn-back:hover { transform: translateY(-3px); box-shadow: 0 20px 44px var(--accent-glow); filter: brightness(1.05); color: var(--accent-text); }

/* Footer */
.footer-nav {
    margin-top: clamp(40px, 8vw, 56px); padding: 22px; border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; font-size: 0.9rem;
    background: var(--surface); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-radius: 20px; border: 1px solid var(--border);
}
.footer-nav a { color: var(--text-muted); text-decoration: none; transition: color 0.25s; font-weight: 600; }
.footer-nav a:hover { color: var(--accent); }
footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.8rem; opacity: 0.8; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

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