/* assets/style.css
   Calm enterprise theme (Google/Microsoft-ish): clean, minimal, premium.
*/

:root{
  /* Light */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface2: #fbfbfc;

  --text: #111827;
  --muted: rgba(17,24,39,.68);
  --muted2: rgba(17,24,39,.52);

  --border: rgba(17,24,39,.12);
  --border2: rgba(17,24,39,.08);

  --shadow: 0 10px 28px rgba(17,24,39,.10);
  --shadow2: 0 2px 10px rgba(17,24,39,.06);

  --radius: 16px;
  --radius2: 12px;

  /* Calm accent (not neon) */
--accent: #6b7280;          /* gray-500 */
--accent-hover: #4b5563;   /* gray-600 */
--accent-soft: rgba(107,114,128,.18);
--focus: rgba(107,114,128,.35);


  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

@media (prefers-color-scheme: dark){
  :root{
    /* Dark */
    --bg: #0b1220;
    --surface: #0f172a;
    --surface2: #0c1526;

    --text: #e5e7eb;
    --muted: rgba(229,231,235,.72);
    --muted2: rgba(229,231,235,.56);

    --border: rgba(229,231,235,.14);
    --border2: rgba(229,231,235,.10);

    --shadow: 0 14px 42px rgba(0,0,0,.55);
    --shadow2: 0 6px 18px rgba(0,0,0,.35);

--accent: #9ca3af;          /* gray-400 */
--accent-hover: #d1d5db;   /* gray-300 */
--accent-soft: rgba(156,163,175,.22);
--focus: rgba(156,163,175,.38);

  }
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
}

/* Background canvas (subtle particles) */
.bg-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: blur(0.6px);
  z-index: 0;
  
}

/* Centering */
.page{
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 44px 18px;
}

/* Shell */
.shell{
  width: min(900px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
  z-index: 1;
  
}

/* Header */
.head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border2);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}

.mark{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

.brand-name{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.brand-sub{
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

/* Meta (status + time) */
.meta{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
}

/* Live dot */
.live-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e; /* green-500 */
  box-shadow: 0 0 0 4px rgba(34,197,94,.25);
  display: inline-block;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse{
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.15); opacity: .75; }
}

.time{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.sep{ opacity:.55; }

/* Content */
.content{
  padding: 28px 22px 22px 22px;
}

.title{
  margin: 0 0 10px 0;
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 700;
}

.lead{
  margin: 0 0 18px 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  max-width: 74ch;
}

.title,
.lead{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Details */
.details{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 18px 0;
}

.detail{
  padding: 12px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  background: transparent;
}

.k{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted2);
}

.v{
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

/* Progress */
.progress{
  padding: 12px 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  background: transparent;
}

.bar{
  height: 8px;
  border-radius: 999px;
  overflow:hidden;
  background: rgba(17,24,39,.10);
}
@media (prefers-color-scheme: dark){
  .bar{ background: rgba(229,231,235,.10); }
}

.bar > i{
  display:block;
  height:100%;
  width: 0%;
  background: var(--accent);
  transition: width .45s ease;
}

.row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.mono{ font-family: var(--mono); }

/* Actions */
.actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 16px;
  justify-content: center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration:none;
  font-size: 13px;
  min-width: 220px;
  box-shadow: var(--shadow2);
}

.btn:hover{
  background: var(--accent-hover);
  color: #000; /* hover'da yazı siyah */
}

.btn:active{ transform: translateY(1px); }

.btn.ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn.ghost:hover{
  background: var(--accent-soft);
  border-color: rgba(107,114,128,.28);
}


.arrow{
  font-family: var(--mono);
  opacity: .9;
}

/* Footer */
.foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--border2);
  color: var(--muted2);
  font-size: 12px;
  background: linear-gradient(180deg, var(--surface), var(--surface2));
}

.foot a{
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px solid transparent;
}
.foot a:hover{
  color: var(--text);
  border-bottom-color: rgba(107,114,128,.45);
}


/* Accessibility */
:focus-visible{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce){
  .live-dot{ animation: none; }
  .bar > i{ transition: none; }
}

/* Responsive */
@media (max-width: 820px){
  .head{ flex-wrap:wrap; }
  .brand{ min-width:unset; }
  .details{ grid-template-columns: 1fr; }
  .btn{ min-width: 100%; }
}

/* Noscript toast */
.noscript{
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  box-shadow: var(--shadow2);
}
