/* =========================================================
   RYSC UI — Teal Scheme (Duolingo x Twitter-ish)
   Full replacement: assets/style.css
   ========================================================= */

/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
img{ max-width:100%; display:block; }
button, input, textarea, select{ font: inherit; }
a{ color: inherit; text-decoration:none; }

/* Theme */
:root{
  --bg: #F5F8FA;
  --text: #22313a;
  --muted: #6b7b86;

  --card: #ffffff;
  --border: #DDEEEF;

  --teal: #00A5A5;
  --teal2: #008080;
  --teal-soft: #F0F7F7;

  --shadow: 0 2px 10px rgba(0,165,165,0.10);
  --shadow2: 0 2px 6px rgba(0,165,165,0.10);

  --radius: 12px;
  --radius2: 16px;

  --container: 1040px; /* wider than before so nav doesn’t stack */
  --nav-h: 62px;
}

/* Base */
body{
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Page container (content only) */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 18px) 18px 48px;
}

@media (max-width: 640px){
  .container{
    padding: calc(var(--nav-h) + 18px) 12px 44px;
  }
}

/* Typography */
h1{
  color: var(--teal);
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
h2{
  color: var(--teal2);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
}
h3{
  color: var(--teal);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
p{ margin: 10px 0; }

.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

/* =========================================================
   NAVBAR (full width, non-stacking)
   ========================================================= */

.navbar-wrap{
  position: fixed;
  top:0; left:0; right:0;
  height: var(--nav-h);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow2);
  z-index: 999;
}

.navbar{
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

/* Logo */
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 150px;
}
.brand-badge{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(to bottom, var(--teal), var(--teal2));
  display:flex;
  align-items:center;
  justify-content:center;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}
.brand-text .name{
  font-size: 14px;
  font-weight: 900;
  color: var(--teal2);
}
.brand-text .tag{
  font-size: 12px;
  color: var(--muted);
}

/* Desktop links */
.navlinks{
  display:flex;
  align-items:center;
  gap: 6px;
  flex-wrap:nowrap;
}

.navlink{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--teal);
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.navlink:hover{
  background: var(--teal-soft);
  color: var(--teal2);
}
.navlink.active{
  background: var(--teal-soft);
  color: var(--teal2);
  box-shadow: 0 0 0 2px rgba(0,165,165,0.10) inset;
}

/* Right side chip */
.userchip{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}
.avatar{
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 1px solid var(--border);
}
.userchip .meta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.userchip .meta .u{
  font-size: 12px;
  font-weight: 800;
  color: var(--teal2);
}
.userchip .meta .s{
  font-size: 11px;
  color: var(--muted);
}

/* More dropdown (desktop) */
.nav-item{
  position: relative;
}
.dropdown{
  position:absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 180px;
  display:none;
  overflow:hidden;
}
.dropdown a{
  display:block;
  padding: 10px 12px;
  color: var(--teal);
  font-weight: 700;
}
.dropdown a:hover{
  background: var(--teal-soft);
  color: var(--teal2);
}
.nav-item:hover .dropdown{ display:block; }

/* Hamburger (mobile) */
.hamburger{
  display:none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
}
.hamburger:hover{ background: var(--teal-soft); }
.hamburger span{
  display:block;
  width: 24px;
  height: 3px;
  background: var(--teal);
  margin: 5px 0;
  border-radius: 4px;
}

/* Mobile drawer */
.mobile-drawer{
  display:none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow2);
  z-index: 998;
}
.mobile-drawer.open{ display:block; }
.mobile-drawer a{
  display:block;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  color: var(--teal);
  font-weight: 800;
}
.mobile-drawer a:hover{
  background: var(--teal-soft);
  color: var(--teal2);
}

@media (max-width: 980px){
  .navlinks{ display:none; }
  .hamburger{ display:inline-block; }
}

/* =========================================================
   CARDS / LIST ITEMS (Twitter-ish feed feel)
   ========================================================= */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.card + .card{ margin-top: 14px; }

.list{
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 14px;
}

.item{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 2px rgba(0,165,165,0.05);
  padding: 14px;
  transition: box-shadow .25s ease, transform .12s ease;
}
.item:hover{
  box-shadow: 0 0 10px rgba(0,165,165,0.12);
  transform: translateY(-1px);
}

.item-title{
  font-weight: 900;
  color: var(--teal2);
}
.item-sub{
  font-size: .92rem;
  color: var(--muted);
  margin-top: 4px;
}
.item-actions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

/* Achievement state accents */
.state-incomplete{
  border-left: 6px solid rgba(0,165,165,0.45);
}
.state-complete{
  border-left: 6px solid rgba(255, 193, 7, 0.55);
}

/* Pills / badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--teal-soft);
  color: var(--teal2);
  font-size: .85rem;
  font-weight: 800;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--teal);
  font-weight: 900;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover{
  background: var(--teal-soft);
  color: var(--teal2);
  border-color: rgba(0,165,165,0.25);
}

/* Buttons */
.btn{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  cursor:pointer;
  font-weight: 900;
  text-decoration:none;
}
.btn-primary{
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover{ background: var(--teal2); }
.btn-outline{
  background: #fff;
  border: 1px solid var(--border);
  color: var(--teal);
}
.btn-outline:hover{
  background: var(--teal-soft);
  color: var(--teal2);
}
.btn-danger{
  background: #ff5a6b;
  color: #fff;
}
.btn-danger:hover{ filter: brightness(.95); }

/* =========================================================
   FORMS (nice spacing like your old one)
   ========================================================= */
.form{
  margin-top: 14px;
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  width: 100%;
}

.field{ margin-bottom: 16px; }

label{
  display:block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="search"],
textarea,
select{
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #CCDDE0;
  border-radius: 10px;
  background: #F9FCFD;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder, textarea::placeholder{
  color: #99A9AC;
  font-style: italic;
}

input:focus, textarea:focus, select:focus{
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,165,165,0.18);
  outline: none;
}

textarea{ min-height: 140px; resize: vertical; }

.help{
  display:block;
  color: #666;
  font-size: .92rem;
  margin-top: 6px;
}

/* Alerts */
.error{
  background: rgba(255, 87, 51, 0.08);
  border: 1px solid rgba(255, 87, 51, 0.30);
  color: #c03a23;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 12px;
}
.success{
  background: rgba(0,165,165,0.10);
  border: 1px solid rgba(0,165,165,0.30);
  color: var(--teal2);
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 12px;
}

/* Simple separator */
.sep{
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
