/* styles.css - Frutiger Aero Styling */

/* Fonts */
@font-face {
  font-family: FrutigerAero;
  src: local('Frutiger'), local('Frutiger LT Std'), local('Segoe UI');
}

:root {
  --aero-blue: #4aa3ff;
  --aero-deep: #2266d6;
  --muted: #5b6b7a;
  --glass: rgba(255, 255, 255, 0.9);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: FrutigerAero, 'Trebuchet MS', Arial, sans-serif;
  margin: 0;
  background: linear-gradient(180deg, var(--aero-blue) 0%, #dfeeff 45%, #ffffff 100%);
  color: #07203a;
  -webkit-font-smoothing: antialiased;
}

/* Splash Screen */
#splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(74,163,255,0.95), rgba(255,255,255,0.02));
  backdrop-filter: blur(6px);
}

.splashCard {
  width: 720px;
  max-width: 92%;
  padding: 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
  box-shadow: 0 28px 80px rgba(34,102,214,.18);
  display: flex;
  gap: 18px;
  align-items: center;
  transform: translateY(20px);
  opacity: 0;
  animation: slideIn 0.9s forwards cubic-bezier(.2,.9,.3,1);
}

@keyframes slideIn {
  to { transform: none; opacity: 1; }
}

.orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,.6) 10%, var(--aero-blue) 50%, var(--aero-deep));
  box-shadow: 0 12px 36px rgba(34,102,214,.18), inset 0 -8px 18px rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 28px;
  position: relative; /* fixed for pseudo element */
}

.splashText {
  flex: 1;
}

.splashTitle {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.splashSub {
  margin-top: 6px;
  color: var(--muted);
}

.enterBtn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--aero-blue), var(--aero-deep));
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(34,102,214,.12);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.7));
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(255,255,255,.6);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--aero-blue), var(--aero-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(34,102,214,.25), inset 0 -6px 14px rgba(255,255,255,.12);
  position: relative; /* for pseudo-element reflections */
}

.title {
  font-size: 20px;
  font-weight: 700;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
}

/* Main Layout */
main {
  display: flex;
  height: calc(100vh - 88px);
  margin: 12px;
}

nav {
  width: 300px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.85));
  box-shadow: 0 12px 36px rgba(34,102,214,.08);
  border: 1px solid rgba(255,255,255,.6);
  overflow: auto;
}

.sectionTitle {
  font-weight: 700;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--aero-blue), var(--aero-deep));
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 6px 18px rgba(34,102,214,.12);
  transition: transform .22s, box-shadow .22s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(34,102,214,.18);
}

.btn.secondary {
  background: linear-gradient(180deg, #fff, #f0f6ff);
  color: var(--aero-deep);
  border: 1px solid rgba(34,102,214,.08);
  box-shadow: none;
}

/* Cards and Templates */
.card {
  background: rgba(255,255,255,0.95);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(2,6,23,.03);
  margin-bottom: 12px;
}

.templates {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.templateCard {
  width: 160px;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #f3faff);
  border: 1px solid rgba(34,102,214,.06);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

/* List items */
.list {
  margin-top: 10px;
}

.item {
  padding: 10px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: background .18s, transform .18s;
}

.item:hover {
  background: linear-gradient(90deg, rgba(255,255,255,.4), rgba(255,255,255,.1));
  transform: translateX(6px);
}

/* Content Area */
.content {
  flex: 1;
  padding: 18px;
  overflow: auto;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}

input[type=text],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(34,102,214,.12);
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.editor {
  min-height: 58vh;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  border: 1px solid rgba(34,102,214,.06);
  box-shadow: inset 0 6px 12px rgba(0,0,0,.02);
}

/* Reflections */
.reflect:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
  border-radius: inherit;
}

/* Pop animations */
.pop {
  opacity: 0;
  transform: translateY(12px) scale(.98);
  animation: popIn .45s forwards cubic-bezier(.2,.9,.3,1);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Small text */
.small {
  font-size: 13px;
  color: var(--muted);
}

.hidden { display: none; }

footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  nav { display: none; }
}

/* Modals */
.modalMask {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  max-width: 720px;
  width: 92%;
  box-shadow: 0 18px 48px rgba(2,6,23,.28);
}

.codeBox {
  width: 100%;
  height: 160px;
  border: 1px solid rgba(34,102,214,.06);
  border-radius: 8px;
  padding: 8px;
  font-family: monospace;
  overflow: auto;
  background: #fbfeff;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(180deg, var(--aero-blue), var(--aero-deep));
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(34,102,214,0.18);
  opacity: 0;
  transform: translateY(12px);
  animation: toastIn 0.4s forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
