/* 
==================================================
  GLOBAL VARIABLES & THEMING
================================================== 
*/
:root {
  /* Brand Colors */
  --brand-primary: #7928CA;
  --brand-secondary: #FF0080;
  --brand-dark: #111111;
  
  /* UI Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  
  /* Text Colors */
  --text-primary: #191F28;
  --text-secondary: #4E5968;
  --text-tertiary: #8B95A1;
  
  /* Accents / Categories */
  --accent-blue: #0070F3;
  --accent-green: #00A65B;
  --accent-orange: #F5A623;
  
  /* Typography */
  --font-family-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;  /* 4px */
  --spacing-sm: 0.5rem;   /* 8px */
  --spacing-md: 1rem;     /* 16px */
  --spacing-lg: 1.5rem;   /* 24px */
  --spacing-xl: 2rem;     /* 32px */
  --spacing-xxl: 3rem;    /* 48px */
  --spacing-3xl: 4rem;    /* 64px */
  
  /* Layout */
  --container-max-width: 1140px;
  --container-padding: 1.5rem;
  --header-height: 72px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
==================================================
  RESET & BASE STYLES
================================================== 
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-primary);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* 
==================================================
  LAYOUT HELPERS
================================================== 
*/
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

main {
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

section {
  padding: var(--spacing-3xl) 0;
}

/* 
==================================================
  TYPOGRAPHY
================================================== 
*/
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* 
==================================================
  UTILITY CLASSES
================================================== 
*/
.bg-blue { background-color: #E8F3FF; }
.bg-yellow { background-color: #FFF9E0; }
.bg-green { background-color: #E6F6ED; }
.bg-orange { background-color: #FFEFDF; }

/* Global Image Override for Cards */
.card-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.article-card:hover .card-image-img {
  transform: scale(1.05);
}

/* Viewport specific generic rules */
@media (max-width: 768px) {
  :root {
    --spacing-3xl: 3rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}
