/**
 * Base Styles
 * CSS 변수, 리셋, 기본 스타일
 */

/* CSS 변수 */
:root {
  /* Colors */
  --color-black: #030303;
  --color-background: #0B0B0B;
  --color-white: #ffffff;
  --color-gray-light: #e0e0e0;
  --color-gray-dark: #333333;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 64px;

  /* Typography */
  --font-size-base: 16px;
  --font-size-lg: 24px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Layout */
  --navbar-height: 95px;
  --max-width: 1200px;
  --min-width-mobile: 375px;
}

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-background);
  background-image: url('/assets/images/grid-background-web.svg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  overflow-x: hidden;
  padding-top: var(--navbar-height);
  min-width: var(--min-width-mobile);

  /* 텍스트 선택 불가능 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 링크 기본 스타일 */
a {
  color: inherit;
  text-decoration: none;
}

/* 버튼 기본 스타일 */
button {
  font-family: inherit;
  cursor: pointer;
}

/* 이미지 기본 스타일 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 폼 요소는 선택 가능하게 예외 처리 */
input,
textarea {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* 유틸리티 클래스 */
.hidden {
  display: none !important;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Main Content Wrapper */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 160px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 60px;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 60px;
  position: relative;
}

.main-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: url('/assets/images/gradient-Wallpaper.png');
  background-size: 100% auto;
  background-position: bottom center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  body {
    background-image: url('/assets/images/grid-background-mobile.svg');
  }

  .main-content {
    gap: 100px;
    padding: 24px 24px 52px 24px;
  }
}
