/* ============================================
   BASE.CSS — Design System Foundation
   Lucky Draw Lottery Application
   Inspired by santony.com
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Roboto:wght@400;500;700&display=swap');

/* Design Tokens */
:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --bg-accent: #fafafa;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-tertiary: rgba(0, 0, 0, 0.45);
  --border-color: #efefef;
  --border-strong: #d9d9d9;
  --accent-gold: #D4A853;
  --accent-gold-light: #F5E6C8;
  --accent-gold-dark: #B8922F;
  --accent-red: #C0392B;
  --accent-green: #27AE60;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Transition */
  --transition: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body Defaults */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background-color: var(--accent-gold);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--accent-gold);
  color: #ffffff;
}

/* Scrollbar Styling — Webkit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-tertiary);
}

/* Scrollbar Styling — Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

/* Base element resets */
a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
