:root {
  /* Color Palette - Refined OrangeRed Theme */
  --color-primary: #ff4500;
  /* OrangeRed */
  --color-primary-hover: #a08e87;
  --color-primary-soft: rgba(255, 69, 0, 0.08);

  --color-background: #f7f7f7;
  /* Cool light gray for depth */
  --color-surface: #ffffff;
  --color-surface-hover: #f8f9fa;

  --color-text-main: #111827;
  /* Deep gray-black */
  --color-text-secondary: #6b7280;
  /* Cool gray */
  --color-text-tertiary: #9ca3af;

  --color-border: #e5e7eb;
  --color-border-hover: #d1d5db;

  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  /* Shadows - Soft & Layered */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Layout */
  --layout-max-width: 1280px;
  --sidebar-width: 260px;
  --feed-width: 640px;
  --widgets-width: 320px;
  --header-height: 70px;
  --bottom-nav-height: 64px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;

  /* Typography */
  --font-family-system: "Inter", system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-md: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-main);
  font-family: var(--font-family-system);
  font-size: var(--font-size-md);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Utility Classes */
.container {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Card Style - Premium */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.05);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-lg);
  height: 44px;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(255, 69, 0, 0.2);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 8px rgba(255, 69, 0, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-text-main);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  height: 32px;
  padding: 0 var(--spacing-md);
  font-size: var(--font-size-xs);
}

/* Typography Utilities */
.text-bold {
  font-weight: var(--font-weight-bold);
}

.text-semibold {
  font-weight: var(--font-weight-semibold);
}

.text-muted {
  color: var(--color-text-secondary);
}

.text-primary {
  color: var(--color-primary);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-xs {
  font-size: var(--font-size-xs);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

/* Layout Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  justify-content: flex-start !important;
  align-items: center !important;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: 25px !important;
  gap: 25px !important;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 50px;
  height: 100%;
  color: var(--color-text-tertiary);
  font-size: 24px;
  gap: 2px;
  position: relative;
  padding: 0;
}

.mobile-bottom-nav a.active {
  color: var(--color-primary);
}

.mobile-bottom-nav a.active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40%;
  height: 3px;
  background-color: var(--color-primary);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.mobile-bottom-nav a span {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
}

.fab-btn {
  transform: translateY(-20px);
}

.fab-btn i {
  background-color: var(--color-primary);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  font-size: 24px !important;
  border: 4px solid var(--color-background);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .container {
    padding: 0 var(--spacing-md);
  }
}

/* Desktop Font Optimization */
@media (min-width: 1024px) {
  :root {
    --font-weight-medium: 400;
    --font-weight-semibold: 500;
    --font-weight-bold: 600;
    --font-weight-extrabold: 700;
  }
}
