/* English Bol — modern look (2026). Loaded after app.css. Only appearance changes here:
   softer colours, rounded corners, gentle shadows, glass header and floating bottom bar.
   To go back to the old look, remove the one <link> to this file in index.html. */
:root {
  --line: #E2E7EF;
  --soft: #F3F5FA;
  --radius-sm: 12px;
  --radius-md: 18px;
  --shadow-1: 0 1px 2px rgba(26, 45, 71, .06), 0 4px 14px rgba(26, 45, 71, .06);
  --shadow-2: 0 2px 6px rgba(26, 45, 71, .08), 0 14px 34px rgba(26, 45, 71, .10);
  --navy-grad: linear-gradient(135deg, #1A2D47 0%, #26406A 55%, #335C93 100%);
  --gold-grad: linear-gradient(135deg, #FFD54A 0%, #F9C001 60%, #F0A800 100%);
}

html, body { background: radial-gradient(1200px 600px at 50% -200px, #E9EEF8 0%, #F4F6FA 55%, #F4F6FA 100%); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.app { background: transparent; }
@media (min-width: 520px) { .app { background: #F8F9FC; box-shadow: 0 0 0 1px rgba(26,45,71,.05), 0 20px 60px rgba(26,45,71,.08); } }

/* Headings: a modern sans instead of the narrow display face */
.h1 { font-family: var(--font-sans); font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.label { letter-spacing: .1em; font-weight: 700; }

/* Glass header */
.top { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26, 45, 71, .06); box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 6px 20px rgba(26,45,71,.04); }
.top img { height: 46px; mix-blend-mode: multiply; }
.avatar { background: var(--navy-grad); box-shadow: 0 4px 12px rgba(26,45,71,.25); }
.sound-btn { transition: background .15s ease, transform .15s ease; }
.sound-btn:hover { background: rgba(26,45,71,.06); }
.sound-btn:active { transform: scale(.92); }

/* Cards and tiles: white, rounded, softly lifted */
.card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 16px; }
.card.navy { background: var(--navy-grad); box-shadow: 0 10px 28px rgba(26,45,71,.28); }
.card.dark { background: linear-gradient(135deg, #0E1726 0%, #1A2D47 100%); border-radius: var(--radius-md); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
a.card, a.tile { transition: transform .18s ease, box-shadow .18s ease; }
a.card:hover, a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
a.card:active, a.tile:active { transform: scale(.985); }
.tile { background: #fff; box-shadow: var(--shadow-1); }

/* Buttons: rounded, gentle depth, a little press feedback */
.btn { border-radius: 14px; border-width: 1.5px; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--navy-grad); border-color: transparent; box-shadow: 0 6px 16px rgba(26,45,71,.24); }
.btn.primary:hover { box-shadow: 0 8px 22px rgba(26,45,71,.30); }
.btn.yellow { background: var(--gold-grad); border-color: transparent; box-shadow: 0 6px 16px rgba(240,168,0,.28); }
.btn.ghost { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(26,45,71,.05); }
.btn.ghost:hover { border-color: #C9D3E2; background: #FAFBFE; }
.btn.small { border-radius: 12px; }
.btn[aria-pressed="true"] { background: var(--navy-grad); border-color: transparent; }

/* Chips: pills */
.chip { border-radius: 999px; border: 1.5px solid var(--line); background: #fff; box-shadow: 0 1px 2px rgba(26,45,71,.05); transition: transform .12s ease, border-color .15s ease, background .15s ease; }
.chip:hover { border-color: #AFC0D8; }
.chip:active { transform: scale(.97); }
.chip.hot { background: var(--gold-grad); border-color: transparent; }

/* Tags: pills */
.tag-book, .tag-practice, .tag-suggestion { border-radius: 999px; padding: 4px 10px; }

/* Inputs */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
  border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input { background: #fff; border: 1.5px solid var(--line); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy) !important; box-shadow: 0 0 0 4px rgba(249, 192, 1, .28); }

/* Messages */
.error { border-radius: 12px; }
.ok { border-radius: 12px; }
.eb-toast { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(26,45,71,.92); }

/* Floating bottom bar */
.bottom { position: sticky; bottom: 0; margin: 0 10px calc(10px + env(safe-area-inset-bottom)); padding: 6px; border: 1px solid rgba(26,45,71,.06);
  border-radius: 22px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 10px 30px rgba(26,45,71,.14); }
.bottom a { min-height: 54px; border-radius: 16px; transition: background .15s ease, color .15s ease; }
.bottom a[aria-current="page"] { background: #EEF2FA; color: var(--navy); }
.bottom a[aria-current="page"] svg { stroke-width: 2.4; }

/* Chapter pieces */
.steps i { border-radius: 999px; height: 6px; }
.sentence { border-radius: var(--radius-md); background: linear-gradient(135deg, #0E1726 0%, #1A2D47 100%); box-shadow: 0 10px 26px rgba(0,0,0,.2); }
.bar, .bar > i { border-radius: 999px; }

/* Tables inside lessons and the admin panel */
table { border-radius: 12px; overflow: hidden; }

/* Screens fade in gently */
@keyframes ebIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page { animation: ebIn .22s ease-out both; }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } a.card, a.tile, .btn, .chip { transition: none; } }
