/* Main stylesheet for AtharSense */

:root {
  --primary: #0F766E;
  --secondary: #0B1F3B;
  --accent: #4F46E5;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

/* English typography: Inter for body, Space Grotesk for headings */
html[lang="en"],
html[lang="en"] body {
  font-family: 'Inter', system-ui, sans-serif;
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: 'Space Grotesk', sans-serif;
}

html[lang="ar"] {
  font-family: 'Cairo', sans-serif;
}

/* Ensure Arabic placeholders render RTL for text/tel/textarea */
html[dir="rtl"] input[type="text"]::placeholder,
html[dir="rtl"] input[type="tel"]::placeholder,
html[dir="rtl"] textarea::placeholder {
  direction: rtl;
  text-align: right;
}

header {
  background: linear-gradient(135deg, #0F766E 0%, #0B1F3B 100%);
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header a,
header nav a {
  color: white;
}

header a:hover,
header nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#lang-toggle {
  background: #4F46E5;
  color: white;
  border: none;
  cursor: pointer;
}

#lang-toggle:hover {
  opacity: 0.9;
}

/* Mobile menu button visibility (fallback if utility classes unavailable) */
#mobile-menu-btn {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
}

#mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

#mobile-menu-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Logo badge for contrast on gradient header */
.logo-badge {
  display: inline-block;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.75) 100%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
