/*
Theme Name: Raka Preorder Theme
Theme URI: http://raka-gadget.local
Description: Official preorder status tracking theme — Red & Black color scheme with dark/light mode.
Author: raka gadget
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: raka-preorder-theme
*/

/* ─── Font Face ─────────────────────────────────────────── */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/kanit/Kanit-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/kanit/Kanit-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/kanit/Kanit-Bold.ttf') format('truetype');
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Kanit', sans-serif;
  scroll-behavior: smooth;
}

body {
  font-family: 'Kanit', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

a    { color: inherit; }
img  { display: block; max-width: 100%; }
input, button, textarea, select { font-family: inherit; }

/* ═══════════════════════════════════════════════════════════
   DARK MODE  (default — class="dark" on <html>)
   Palette: Deep Crimson + Jet Black
   ═══════════════════════════════════════════════════════════ */
html.dark body {
  background-color: #0a0a0a;
  color: #f5f5f5;
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE  (class="light" or class="" on <html>)
   Palette: Crimson accent on bright background
   ═══════════════════════════════════════════════════════════ */
html.light body,
html:not(.dark) body {
  background-color: #fafafa;
  color: #111111;
}

/* ─── Site Wrapper ──────────────────────────────────────── */
#raka-site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
#raka-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* dark header */
html.dark #raka-site-header {
  background-color: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid rgba(185, 28, 28, 0.25);
}

/* light header */
html.light #raka-site-header,
html:not(.dark) #raka-site-header {
  background-color: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(220, 38, 38, 0.18);
}

#raka-header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ─── Logo ──────────────────────────────────────────────── */
#raka-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s;
}
#raka-logo-link:hover { opacity: 0.82; }

#raka-header-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  flex-shrink: 0;
  letter-spacing: 0;
}

#raka-header-logo-text-block {
  display: flex;
  flex-direction: column;
}

#raka-logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  transition: color 0.3s;
}
html.dark  #raka-logo-text { color: #f5f5f5; }
html.light #raka-logo-text,
html:not(.dark) #raka-logo-text { color: #111111; }

#raka-logo-subtext {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.2px;
  opacity: 0.45;
  line-height: 1;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ─── Header Right ──────────────────────────────────────── */
#raka-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── Status Badge ──────────────────────────────────────── */
#raka-nav-badge {
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.3s;
}
html.dark  #raka-nav-badge {
  background-color: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
}
html.light #raka-nav-badge,
html:not(.dark) #raka-nav-badge {
  background-color: rgba(254, 226, 226, 0.9);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
}

/* ─── Toggle Button ─────────────────────────────────────── */
#raka-theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid;
  cursor: pointer;
  background: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
#raka-theme-toggle-btn:hover { transform: scale(1.08); }

html.dark  #raka-theme-toggle-btn {
  border-color: rgba(185, 28, 28, 0.4);
  color: #fca5a5;
  background-color: rgba(185, 28, 28, 0.12);
}
html.dark  #raka-theme-toggle-btn:hover { background-color: rgba(185, 28, 28, 0.25); }

html.light #raka-theme-toggle-btn,
html:not(.dark) #raka-theme-toggle-btn {
  border-color: #fecaca;
  color: #dc2626;
  background-color: #fff5f5;
}
html.light #raka-theme-toggle-btn:hover,
html:not(.dark) #raka-theme-toggle-btn:hover { background-color: #fee2e2; }

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */
#raka-site-main {
  flex: 1;
  padding: 52px 16px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: background-color 0.3s;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
#raka-site-footer {
  padding: 28px 32px;
  transition: background-color 0.3s, border-color 0.3s;
}
html.dark  #raka-site-footer {
  background-color: #080808;
  border-top: 1px solid rgba(185, 28, 28, 0.2);
}
html.light #raka-site-footer,
html:not(.dark) #raka-site-footer {
  background-color: #ffffff;
  border-top: 1px solid rgba(220, 38, 38, 0.12);
}

#raka-footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#raka-footer-copyright {
  font-size: 13px;
  transition: color 0.3s;
}
html.dark  #raka-footer-copyright { color: #525252; }
html.light #raka-footer-copyright,
html:not(.dark) #raka-footer-copyright { color: #71717a; }

#raka-footer-disclaimer {
  font-size: 11px;
  display: block;
  margin-top: 3px;
  transition: color 0.3s;
}
html.dark  #raka-footer-disclaimer { color: #3f3f3f; }
html.light #raka-footer-disclaimer,
html:not(.dark) #raka-footer-disclaimer { color: #a1a1aa; }

#raka-footer-links {
  display: flex;
  gap: 24px;
}
#raka-footer-links a {
  font-size: 12px;
  text-decoration: none;
  transition: color 0.2s;
}
html.dark  #raka-footer-links a { color: #3f3f3f; }
html.dark  #raka-footer-links a:hover { color: #f5f5f5; }
html.light #raka-footer-links a,
html:not(.dark) #raka-footer-links a { color: #a1a1aa; }
html.light #raka-footer-links a:hover,
html:not(.dark) #raka-footer-links a:hover { color: #dc2626; }

/* ─── Custom Scrollbar ──────────────────────────────────── */
html.dark ::-webkit-scrollbar              { width: 6px; height: 6px; }
html.dark ::-webkit-scrollbar-track        { background: #0a0a0a; }
html.dark ::-webkit-scrollbar-thumb        { background: #1a0000; border-radius: 9999px; }
html.dark ::-webkit-scrollbar-thumb:hover  { background: #7f1d1d; }
