/* Family Legacy Dashboard — style.css
   Matched to Taylor-Graham Library palette & typography */


/* ── 1. CUSTOM FONTS ──────────────────────────────────────────── */

@font-face {
    font-family: 'Cinzel';
    src: url('fonts/cinzel-v26-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('fonts/cinzel-v26-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'EB Garamond';
    src: url('fonts/EBGaramond-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Pinyon Script';
    src: url('fonts/PinyonScript-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Garton';
    src: url('fonts/Garton.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ── 2. CSS VARIABLES ─────────────────────────────────────────── */

:root {
  /* Core flipbook palette */
  --cream:        #FCFBF4;
  --gold:         #C4934A;
  --gold-dark:    #A07A3D;
  --gold-light:   rgba(196,147,74,0.12);
   /* Browns / ink */
 --brown:        #8B7355;
  --brown-dark:   #5C4A2A;
  --brown-mid:    #7A6040;
  --brown-light:  #A08060;
  --ink:          #3A2E1E;
  /* Botanical olive / sage palette */
 --blush:        #D4C9A8;
  --blush-light:  #EEE8D8;
  --sage:         #7A8C6A;
  --sage-light:   #E8EDE2;
  --sage-mid:     #5C7050;
  --sage-pale:    #F0F3EC;
  --olive:        #6B7A52;
  --olive-light:  #E4E8DC;
  --sepia:        #C4A882;
  --sepia-light:  #F2EDE2;
   /* Rules & borders */
 --rule:         rgba(196,147,74,0.30);
  --rule-soft:    rgba(196,147,74,0.15);
  --parchment:    #E8DCC8;
  --warm-white:   #FDFAF4;
  --shadow:       rgba(58,46,30,0.10);
  
    /* Layout */
    --max-width:      1200px;
    --sidebar-width:  270px;
    --gap:            55px;

  /* Aliases used in dashboard components */
  --status-good:  #5C7050;
  --status-warn:  #C4934A;
  --status-bad:   #A0522D;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle linen texture — same as library */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(196,147,74,0.018) 60px, rgba(196,147,74,0.018) 61px),
    repeating-linear-gradient(0deg,  transparent, transparent 40px, rgba(139,115,85,0.018) 40px, rgba(139,115,85,0.018) 41px);
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER & HERO ─────────────────────────────────────────────── */

.site-header {
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  z-index: 1;
}

/* Gradient hero band — keeps Family Legacy colors */
.hero-image-wrap {
    position: relative;
    width: 100%;
    min-height: 210px;  /* Changes the Height of the Header */
    background: linear-gradient(
        160deg,
        var(--sepia-light) 0%,
        var(--blush-light) 35%,
        var(--sage-light)  70%,
        var(--cream)       100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* Logo — absolutely positioned far left, never affects header height */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 34px;
  transform: translateY(-50%);
  width: 200px;		 /* ← controls the size */
  height: 200px;	 /* ← controls the size */

}
/* Center title block */
.header-text-block {
  position: relative;
  z-index: 2;
  padding: 20px 20px 5px;
  text-align: center;
}

.header-ornament {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: var(--olive);
    letter-spacing: 6px;
    display: block;
    margin-bottom: 10px;
    animation: fadeDown 0.8s ease both;
}

.site-title {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(56px, 9vw, 96px);   /* The Last px Changes the Header Title */
    color: var(--gold);
    font-weight: 400;
    line-height: 1;
    animation: fadeDown 0.9s ease 0.1s both;
}

.site-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--olive);
  text-transform: uppercase;
  margin-top: 14px;   /* Higher px the further down away from sit title */
  margin-bottom: 8px;
}

/* Clock block — absolutely positioned far right */
.header-clock {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  text-align: right;
  z-index: 3;
}

#clock {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--brown-dark);
  letter-spacing: 2px;
}

#date-display {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--brown);
  margin-top: 2px;
}

/* Floral banner — Top Menu   */
.hero-floral {
  display: block;
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  object-position: center;
  margin-top: -10px;
}


/* ── TOP NAV ────────────────────────────────────────────────────── */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1px 20px;   /* lower ox less menu bar height */
  box-shadow: 0 1px 6px rgba(107,122,82,0.10);
  gap: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.top-nav a,
.nav-links a {
  font-family: 'Pinyon Script', cursive;
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--brown);
  text-decoration: none;
  padding: 2px 12px;
  -webkit-text-stroke: 0.3px var(--brown);
  transition: color 0.3s, -webkit-text-stroke-color 0.3s;
  white-space: nowrap;
}

.top-nav a:hover,
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  -webkit-text-stroke-color: var(--gold);
}

.nav-divider {
  color: var(--olive);
  font-size: 13px;
  opacity: 0.7;
}

/* MAIN */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  position: relative;
  z-index: 1;
}

/* SECTION TITLES */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--rule), transparent);
}

/* STATUS CARDS */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.status-card {
  background: var(--warm-white);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 1.4rem;
  box-shadow: 0 2px 10px var(--shadow);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}

.status-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--sepia));
}

.status-card .card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.status-card .card-label {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
}
.status-card .card-value {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--brown-dark);
  margin: 0.3rem 0;
}
.status-card .card-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--brown);
}

.status-good { color: var(--sage-mid) !important; }
.status-warn  { color: var(--gold) !important; }
.status-bad   { color: #A0522D !important; }

/* DISK BAR */
.disk-bar-wrap { background: var(--blush-light); border-radius: 20px; height: 6px; margin-top: 0.6rem; overflow: hidden; }
.disk-bar { height: 100%; border-radius: 20px; background: linear-gradient(to right, var(--gold), var(--sage-mid)); transition: width 1s ease; }

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* PANELS */
.panel {
  background: var(--warm-white);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  box-shadow: 0 2px 12px var(--shadow);
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

.panel-header {
  background: linear-gradient(90deg, var(--olive-light), var(--cream));
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.panel-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage-mid);
  font-weight: 600;
}

.panel-header .panel-icon { font-size: 1.1rem; }
.panel-body { padding: 1.2rem; }

/* QUICK LINKS */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: var(--sage-pale);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  text-decoration: none;
  color: var(--brown-dark);
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.quick-link:hover {
  background: var(--gold-light);
  border-left-color: var(--gold);
  color: var(--brown-dark);
  padding-left: 1.1rem;
}

.quick-link .link-icon { font-size: 1.2rem; flex-shrink: 0; }
.quick-link .link-sub {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--brown);
  display: block;
  margin-top: 0.05rem;
}

/* VOLUME LIST */
.volume-item { padding: 0.8rem 0; border-bottom: 1px solid var(--rule-soft); display: flex; justify-content: space-between; align-items: flex-end; }
.volume-item:last-child { border-bottom: none; }
.volume-name { font-family: 'Cinzel', serif; font-size: 0.82rem; letter-spacing: 1px; color: var(--brown-dark); }
.volume-path { font-family: 'EB Garamond', serif; font-style: italic; font-size: 0.78rem; color: var(--brown); margin-top: 0.15rem; }
.volume-usage { text-align: right; font-size: 0.78rem; color: var(--brown); }
.volume-usage strong { display: block; font-family: 'Cinzel', serif; font-size: 1rem; color: var(--brown-dark); }

/* BACKUP */
.backup-list { list-style: none; }
.backup-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--rule-soft); font-family: 'EB Garamond', serif; font-size: 0.95rem; }
.backup-item:last-child { border-bottom: none; }
.backup-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 0.5rem; }
.dot-good { background: var(--sage-mid); }
.dot-warn { background: var(--gold); }
.dot-bad  { background: #A0522D; }
.backup-time { font-style: italic; font-size: 0.78rem; color: var(--brown); }

/* MEDIA GRID */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .media-grid { grid-template-columns: 1fr 1fr; } }

.media-card {
  background: var(--warm-white);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 2px 10px var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: all 0.25s;
  animation: fadeUp 0.7s ease both;
  border-left: 2px solid transparent;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 20px rgba(196,147,74,0.15);
  border-left-color: var(--gold);
  background: var(--sage-pale);
}

.media-card .media-icon { font-size: 2.4rem; margin-bottom: 0.7rem; display: block; }
.media-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.3rem;
}
.media-card p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--brown);
}


/* ── 16. SIDEBAR ──────────────────────────────────────────────── */

.sidebar {
    position: sticky;
    top: 44px;  /* clears the single sticky nav bar */
}

.sidebar-block {
    margin-bottom: 14px;
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
    overflow: hidden;
}

/* Alternating header tints */
.sidebar-block:nth-child(odd)  .sidebar-header { background: linear-gradient(90deg, var(--olive-light), var(--cream)); }
.sidebar-block:nth-child(even) .sidebar-header { background: linear-gradient(90deg, var(--sage-light),  var(--cream)); }

.sidebar-header {
    padding: 8px 14px;
    border-bottom: 1px solid var(--rule-soft);
}

.sidebar-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
  	color:var(--sage-mid);   /* Color WAS: var(--brown-dark) ---sage-mid is #5C7050 */
	
	
}

.sidebar-block ul {
    list-style: none;
    padding: 4px 0;
}

.sidebar-block ul li a {
    display: block;
    padding: 4px 14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--brown-dark);
    text-decoration: none;
    transition: color 0.2s, background 0.2s, padding-left 0.2s, border-left-color 0.2s;
    border-left: 2px solid transparent;
    line-height: 1.5;
}

.sidebar-block ul li a:hover {
    color: var(--sage-mid);
    border-left-color: var(--gold);
    background: var(--gold-light);
    padding-left: 20px;
}








/* FOOTER */
footer {
  text-align: center;
  padding: 1.8rem 2rem;
  border-top: 1px solid var(--rule-soft);
  background: linear-gradient(180deg, var(--sage-pale), var(--olive-light));
  position: relative;
  z-index: 1;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--brown);
}

footer span { color: var(--gold); font-style: normal; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-card:nth-child(1) { animation-delay: 0.05s; }
.status-card:nth-child(2) { animation-delay: 0.10s; }
.status-card:nth-child(3) { animation-delay: 0.15s; }
.status-card:nth-child(4) { animation-delay: 0.20s; }
.status-card:nth-child(5) { animation-delay: 0.25s; }

/* SHIMMER */
.shimmer {
  background: linear-gradient(90deg, var(--blush-light) 25%, var(--cream) 50%, var(--blush-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 3px;
  display: inline-block;
  min-width: 60px;
  min-height: 1em;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── MAIN CARDS GRID ── */
.main-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) { .main-cards-grid { grid-template-columns: 1fr; } }

.main-card {
  background: var(--warm-white);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 1.8rem;
  box-shadow: 0 2px 12px var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
  border-left: 3px solid transparent;
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--sepia));
}

.main-card:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 24px rgba(196,147,74,0.15);
  border-left-color: var(--gold);
  background: var(--sage-pale);
}

.main-card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.main-card-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}

.main-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.2rem;
  margin-top: 0.3rem;
}

.main-card-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.main-card-stat span:first-child {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--brown-dark);
  font-weight: 600;
}

.mcs-label {
  font-family: 'EB Garamond', serif !important;
  font-style: italic;
  font-size: 0.78rem !important;
  color: var(--brown) !important;
  font-weight: 400 !important;
}

.main-card-hint {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold-dark);
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule-soft);
}

.main-card:nth-child(1) { animation-delay: 0.05s; }
.main-card:nth-child(2) { animation-delay: 0.10s; }
.main-card:nth-child(3) { animation-delay: 0.15s; }
.main-card:nth-child(4) { animation-delay: 0.20s; }
