@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* HSL tailored color palette - Premium Slate Light */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* App Backgrounds */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  
  /* Borders */
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.12);
  
  /* Text colors */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  /* Accent Violet/Neon Indigo */
  --accent-color: #7c3aed; /* Violet 600 */
  --accent-hover: #6d28d9; /* Violet 700 */
  --accent-rgb: 124, 58, 237;
  --accent-glow: rgba(124, 58, 237, 0.12);
  
  /* Category Specific Colors */
  --color-tag-place: #2563eb;    /* Naver Place - Blue */
  --color-tag-google: #eab308;   /* Google & Retargeting - Gold */
  --color-tag-sns: #db2777;      /* SNS & Shorts - Pink */
  --color-tag-gov: #10b981;      /* Government Support - Green */
  --color-tag-ai: #7c3aed;       /* AI Marketing - Electric Purple */

  /* Glassmorphic values */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 10px 25px -5px rgba(124, 58, 237, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* Premium Obsidian / Carbon Dark Theme */
  --bg-app: #080c14;
  --bg-surface: #0f1626;
  --bg-surface-hover: #1e293b;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  
  --text-primary: #f8fafc; /* Slate 50 */
  --text-secondary: #cbd5e1; /* Slate 300 */
  --text-muted: #64748b; /* Slate 500 */
  
  --accent-color: #a78bfa; /* Violet 400 */
  --accent-hover: #c4b5fd; /* Violet 300 */
  --accent-rgb: 167, 139, 250;
  --accent-glow: rgba(167, 139, 250, 0.25);
  
  /* Category Colors (Slightly lighter for dark mode) */
  --color-tag-place: #60a5fa;    
  --color-tag-google: #fef08a;     
  --color-tag-sns: #f472b6; 
  --color-tag-gov: #34d399;      
  --color-tag-ai: #c4b5fd;

  --glass-bg: rgba(15, 22, 38, 0.8);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 25px -5px rgba(167, 139, 250, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.625;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-app);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Global utility classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Adsense Banner Styles */
.adsense-placeholder {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
  text-align: center;
  padding: 1.5rem;
  margin: 2.5rem auto;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.adsense-placeholder:hover {
  opacity: 1;
  border-color: var(--accent-color);
}

/* Post Content Readability Improvements */
.post-content {
  font-size: 1.125rem;
  line-height: 1.85 !important;
  color: var(--text-secondary);
}

.post-content p {
  margin-bottom: 1.75rem !important; /* Generous breathing room between paragraphs */
  line-height: 1.85 !important;
}

.post-content h2, 
.post-content h3 {
  margin-top: 2.5rem !important;
  margin-bottom: 1.25rem !important;
  color: var(--text-primary);
  font-weight: 800;
}
