/* ==========================================================================
   MEDICUBE US - CORE DESIGN SYSTEM & BASE STYLES
   ========================================================================== */

@import url('fonts.css');

:root {
  /* Colors */
  --color-primary: #121212;
  --color-secondary: #303030;
  --color-text-muted: #666666;
  --color-text-light: #888888;
  --color-accent-red: #d8232a;
  --color-accent-red-hover: #b81920;
  --color-sale-red: #c8002f;
  --color-tag-new: #111111;
  --color-tag-best: #d8232a;
  --color-background: #ffffff;
  --color-bg-light: #f7f7f7;
  --color-bg-subtle: #f0f0f0;
  --color-border: #e8e8e8;
  --color-border-dark: #333333;
  --color-star: #ffb800;
  --color-success: #29845a;
  --color-success-bg: #cdfee1;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout & Spacing */
  --max-width: 1360px;
  --header-height: 68px;
  --header-mobile-height: 58px;
  --announcement-height: 38px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.14);
  --shadow-drawer: -4px 0 24px rgba(0, 0, 0, 0.15);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-primary);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Utilities */
.page-width {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-width {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hidden {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  text-align: center;
  user-select: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #333333;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--color-accent-red);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: var(--color-accent-red-hover);
}

.btn-block {
  width: 100%;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 18px;
  height: 18px;
  fill: #4cd964;
}
