/* Sahyfa Streaming — Academic Elegance design tokens.
   Mirrors the Flutter app theme (lib/app/theme/app_theme.dart):
   - Sand Parchment surfaces (#FCF9F8)
   - Seminary Green primary (#002E1E / #0B4631)
   - Gold Calligraphy accents (#C5A059)
   - Vazirmatn typeface, RTL-friendly */

/* Local Vazirmatn font faces — loaded from /fonts/ */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/Vazirmatn-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Vazirmatn-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Vazirmatn-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Vazirmatn-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Vazirmatn-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Vazirmatn-ExtraBold.ttf') format('truetype');
}

:root {
  --primary: #002E1E;
  --primary-container: #0B4631;
  --on-primary: #FFFFFF;
  --on-primary-container: #B6EFD1;
  --gold: #C5A059;
  --gold-dim: #A88A48;
  --sand: #FCF9F8;
  --surface: #FFFFFF;
  --surface-container: #F0EDEC;
  --surface-container-high: #EBE7E7;
  --on-surface: #1C1B1B;
  --on-surface-variant: #404943;
  --outline: #707973;
  --outline-variant: #C0C9C2;
  --error: #BA1A1A;
  --success: #1A7A5E;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 6px 20px 0 rgba(0, 0, 0, 0.10);
}

html {
  box-sizing: border-box;
  font-size: 14px;
  font-family: 'Vazirmatn', 'Segoe UI', Arial, Helvetica, sans-serif;
  background: url('/images/background.svg') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-color: var(--sand);
  color: var(--on-surface);
}

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

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  padding: 16px;
}

hr {
  margin-top: 16px; margin-bottom: 16px;
  border: 0;
  height: 1px;
  background: var(--outline-variant);
}

.content {
  min-width: 300px;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.logo-box a {
  text-decoration: none;
  font-weight: bold;
  color: var(--on-surface-variant);
}

.logo-box {
  text-align: center;
}

.info-box p {
  margin-top: 2px;
}

.link-box {
  text-align: center;
  color: var(--outline);
}

.link-box a {
  text-decoration: none;
  color: var(--primary-container);
  transition: color .12s ease;
}

.link-box a:hover {
  color: var(--primary);
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;

  width: 100%;
  margin-top: 12px;

  padding: 12px 14px;
  border-radius: var(--radius-lg);

  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;

  font-weight: 600;
  font-size: 14px;
  line-height: 1;

  box-shadow: 0 6px 16px rgba(0, 46, 30, .22);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.cta:hover {
  background: var(--primary-container);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 46, 30, .28);
}

.cta:active { transform: translateY(0px); }

.cta:focus-visible {
  outline: 3px solid rgba(11, 70, 49, .45);
  outline-offset: 2px;
}
