:root {
  /* Modern OKLCH Colors - Vibrant and Friendly */
  --primary: oklch(0.65 0.18 200); /* Bright Blue-Cyan */
  --primary-glow: oklch(0.65 0.18 200 / 0.3);
  --secondary: oklch(0.75 0.15 45); /* Warm Orange/Yellow */
  --accent: oklch(0.7 0.25 0); /* Soft Pink/Red */
  --bg-main: oklch(0.98 0.01 200); /* Off-white with a hint of blue */
  --text-main: oklch(0.2 0.02 200);
  --card-bg: white;
  --card-shadow: 0 10px 30px oklch(0 0 0 / 0.08);
  --radius: 1.5rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --primary: oklch(0.75 0.12 210);
  --secondary: oklch(0.8 0.12 60);
  --bg-main: oklch(0.15 0.02 210);
  --text-main: oklch(0.95 0.01 210);
  --card-bg: oklch(0.2 0.02 210);
  --card-shadow: 0 10px 30px oklch(0 0 0 / 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Texture Background Effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 999;
}

header {
  padding: 1rem 2rem;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid oklch(1 0 0 / 0.1);
}

.saju-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input, select {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  border: 2px solid oklch(0.9 0.01 200);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.results {
  margin-top: 3rem;
  display: none;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reading-card {
  background: linear-gradient(135deg, oklch(0.95 0.05 200), oklch(0.95 0.05 50));
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.adsense-placeholder {
  width: 100%;
  min-height: 100px;
  background: oklch(0.9 0.01 200);
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: oklch(0.5 0.01 200);
  font-size: 0.8rem;
  border: 1px dashed oklch(0.7 0.01 200);
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  margin-top: auto;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
