/* Base Styles & Typography */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--color-primary-dark);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all var(--transition-fast);
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  outline: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.08);
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-citizen {
  background-color: #E0F2FE;
  color: #0369A1;
}
.badge-business {
  background-color: #FEF3C7;
  color: #92400E;
}
.badge-online {
  background-color: #DCFCE7;
  color: #15803D;
}
.badge-free {
  background-color: #F3E8FF;
  color: #6B21A8;
}
.badge-flag {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 43, 127, 0.15);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: 0 3px 8px rgba(0, 43, 127, 0.2);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #F1F5F9;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: #E2E8F0;
}
.btn-accent {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #0E6B34 100%);
  color: #FFFFFF;
}
.btn-accent:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--color-primary);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}
