/* JuanWorks Design System - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #FFD400;
  --color-primary-dark: #E6BF00;
  --color-secondary: #FFFFFF;
  --color-accent: #1A1A2E;
  --color-success: #2ECC71;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-bg: #F9FAFB;
  --color-bg-card: #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --tab-bar-height: 64px;
  --header-height: 56px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--tab-bar-height);
}

/* Pages without tab bar (index, etc) */
body.no-tabs #app {
  padding-bottom: 0;
}

/* Page container */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: calc(var(--tab-bar-height) + 16px);
}

.page-header {
  padding: 16px 0;
  margin-bottom: 16px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-accent);
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 4px 0 0 0;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }

p {
  margin: 0 0 0.5em 0;
  line-height: 1.5;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Buttons and card links: no underline on hover */
.btn:hover,
.btn:focus,
.tab-item:hover,
.tab-item:focus,
.provider-card:hover,
.service-card:hover,
.booking-card:hover,
.section-header a:hover {
  text-decoration: none;
}

/* Responsive */
@media (min-width: 768px) {
  .page {
    max-width: 720px;
    padding: 24px;
  }

  .page-with-sidebar {
    display: flex;
    gap: 24px;
  }

  .page-main {
    flex: 1;
  }

  .page-sidebar {
    width: 200px;
    flex-shrink: 0;
  }
}
