/* =========================
   Notes (Cloud & DevOps) UI
   File: /notes/assets/notes.css
   ========================= */

/* Reset */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --bg: #0b1220;
  --panel: #0f172a;
  --panel-2: #111c33;
  --border: rgba(255,255,255,.10);

  --text: #e5e7eb;
  --muted: #94a3b8;
  --soft: #cbd5f5;

  --accent: #60a5fa;
  --accent-2: #22d3ee;
  --success: #10b981;

  --shadow: 0 14px 30px rgba(0,0,0,.25);
  --radius: 16px;
  --radius-lg: 20px;

  --max: 1050px;
}

/* Base */
html{ scroll-behavior:smooth; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(96,165,250,.20), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(34,211,238,.16), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.notes-wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 60px;
}

/* ===== Topbar ===== */
.notes-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.notes-back{
  color: var(--soft);
  text-decoration:none;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.notes-back:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.notes-lang{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-weight:800;
}

.notes-lang a{
  color: var(--soft);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.notes-lang a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.notes-lang a.active{
  color:#fff;
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}

/* ===== Headings / text ===== */
.notes-header{ margin: 10px 0 22px; }

h1{
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  display:flex;
  align-items:center;
  gap:12px;
}

h2{
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 900;
  color:#fff;
}

p{ color: var(--soft); }

.muted{
  margin-top:8px;
  opacity:.92;
  color: var(--soft);
}

a{ color: inherit; }

/* ===== Stats ===== */
.notes-stats{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
}

.stat{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.stat-value{
  font-size:1.1rem;
  font-weight:900;
  color:#fff;
}

.stat-label{
  margin-top:4px;
  color: var(--muted);
  font-size:.92rem;
  font-weight: 600;
}

/* ===== Cards grid ===== */
.notes-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
  margin-top: 10px;
}

.note-card{
  display:block;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding:16px;
  text-decoration:none;
  color:#e5e7eb;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  position:relative;
  overflow:hidden;
}

.note-card::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 200px at 20% 0%, rgba(96,165,250,.15), transparent 60%);
  pointer-events:none;
}

.note-card:hover{
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--shadow);
}

.note-title{
  font-weight:900;
  color:#fff;
  font-size:1.05rem;
}

.note-desc{
  margin-top:8px;
  color: var(--soft);
  line-height:1.45;
  font-size:.95rem;
}

.note-meta{
  margin-top:12px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

/* Tags */
.tag{
  font-size:.78rem;
  font-weight:800;
  color:#e5e7eb;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(2,6,23,.65);
  border: 1px solid rgba(255,255,255,.10);
}

.tag.live{
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.12);
  color: #d1fae5;
}

.tag.soon{
  opacity: .9;
}

/* ===== Footer ===== */
.notes-footer{
  margin-top:28px;
  color: var(--muted);
  font-weight: 600;
}

.notes-footer a{
  color: var(--soft);
  text-decoration:none;
  font-weight:900;
}

.notes-footer a:hover{ text-decoration:underline; }

/* ======================
   Article content polish
   ====================== */
.article{
  margin-top: 10px;
}

.article h2{
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.article p{
  margin-top: 10px;
  color: var(--soft);
}

.article ul{
  margin-top: 12px;
  padding-left: 20px;
}

.article li{
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--soft);
}

.article strong{
  color:#fff;
}

.article a{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article pre{
  margin-top: 12px;
  background: #020617;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 16px;
  font-size: .92rem;
  overflow:auto;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.article code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #e5e7eb;
}

.article .hint{
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34,211,238,.10);
  border: 1px solid rgba(34,211,238,.22);
  color: #cffafe;
  font-weight: 650;
}

/* Post footer navigation */
.post-footer{
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content: space-between;
}

.post-footer a{
  color: var(--soft);
  font-weight: 900;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.post-footer a:hover{
  text-decoration: underline;
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

/* ===== Responsive ===== */
@media (max-width: 640px){
  .notes-wrap{ padding: 18px 14px 50px; }
  .notes-topbar{ flex-direction: column; align-items: flex-start; }
}
