/* =========================================
   GLOBAL THEME — MSDS Demo
========================================= */
:root {
  --gold: #d4af37;
  --gold-light: #ffe8a8;
  --parchment: #f3ecd8;

  --deep-blue: #0c1a2e;
  --mid-blue: #17314d;
  --bg2: #17314d; /* Mapped to match activity usage if needed, or blue equivalent */
  --ink: #f3ecd8;

  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======================================================
   Background + Typography
====================================================== */
body {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  background: radial-gradient(circle, #1a2a3a 0%, #0a131f 90%);
  min-height: 100vh;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Watermark removed */
/* body::before { ... } */

/* ======================================================
   Headings
====================================================== */
h1, h2 {
  font-family: 'Cinzel Decorative', serif;
  text-shadow:
    0 0 12px rgba(255,215,100,0.5),
    0 0 24px rgba(200,155,60,0.35);
}

h1 {
  color: #000;
  font-size: 3.2rem;
  text-shadow:
    0 0 10px rgba(255,215,100,1),
    0 0 25px rgba(230,190,60,0.9),
    0 0 45px rgba(200,155,40,0.75),
    0 0 60px rgba(160,120,30,0.5);
}

h2 {
  font-size: 1.55rem;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

/* ======================================================
   Paragraphs
====================================================== */
p, li {
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--gold-light);
  line-height: 1.65;
}

/* ======================================================
   Button Stack
====================================================== */
.nav-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 700px;
  margin-top: 2rem;
}

.nav-stack .btn {
  width: 100%;
}

/* ======================================================
   Base Button (ALL buttons share this)
====================================================== */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 80px; /* Default height */
  padding: 0.75rem 1rem;

  background: rgba(10, 35, 60, 0.85);
  border-radius: 1.5rem;
  border: 1px solid rgba(212,175,55,0.4);

  color: #e9dba8;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;

  transition: 0.2s ease;
}

.btn:hover {
  background: rgba(10, 35, 60, 1);
  transform: translateY(-2px);
}

/* Activity-specific small buttons override */
.footer-controls .btn {
    height: auto;
    font-size: 1rem;
    display: inline-flex;
    width: auto;
    margin: 0.5rem;
    border-radius: 12px;
}

/* ======================================================
   Site Header
====================================================== */
.site-header-main {
  width: 100%;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-link {
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.2rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ======================================================
   Footer
====================================================== */
.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #f5eedb;
  font-family: 'Cormorant Garamond', serif;
}

.footer-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-line a {
  text-decoration: none;
  font-weight: 600;
  color: #d4af37;
}

.footer-line a:hover {
  text-decoration: underline;
}

.name-gaelic {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  text-decoration: none;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--deep-green); /* defined? fallback to inherit or specific color if needed */
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ======================================================
   Activity / Form Components
====================================================== */
/* Dropdown / Standards Boxes */
.board-member {
  width: 100%;
  max-width: 850px;
  margin: 1.5rem auto;
  background: rgba(12, 26, 46, 0.4);
  border: 1px solid var(--gold); /* Outlined */
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
}

.board-member summary {
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
  padding: 1rem 1.5rem;
  list-style: none;
  text-align: left;
  background: rgba(212, 175, 55, 0.1);
}

.board-member summary::-webkit-details-marker {
  display: none;
}

.board-member summary::after {
  content: "▾";
  float: right;
  font-size: 1.2rem;
  color: var(--gold-light);
  transition: transform 0.25s ease;
}

.board-member[open] summary {
    border-bottom: 1px solid rgba(212,175,55,0.4);
}

.board-member[open] summary::after {
  transform: rotate(-180deg);
}

.member-content {
  text-align: left; /* Left justified content */
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gold-light);
}

.member-content p, 
.member-content ul, 
.member-content li {
    text-align: left !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.member-content ul {
    padding-left: 1.5rem;
}

/* Panels */
.panel {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  text-align: left; /* Activities usually need left alignment in panels */
}

.panel h2 {
    text-align: center;
}

/* Form Elements */
textarea {
  width: 100%;
  min-height: 120px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  padding: .75rem;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,.35);
  background: rgba(0,0,0,.25);
  color: var(--gold-light);
}

textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

label { 
    display: block; 
    margin-top: 1.1rem; 
    font-weight: 600;
    color: var(--gold);
    text-align: left;
}

/* Floating Buttons */
.back-btn {
  position: fixed; top: .75rem; left: .75rem;
  padding: .45rem 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--gold-light);
  z-index: 1000;
  text-decoration: none;
}

.translate-btn {
  position: fixed; top: .75rem; right: .75rem;
  padding: .35rem .9rem;
  background: var(--mid-blue); 
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--gold);
  z-index: 1000;
  cursor: pointer;
}

.save-draft-btn-fixed {
  position: fixed; bottom: .75rem; right: .75rem;
  padding: .6rem 1.25rem;
  background: rgba(10, 35, 60, 0.9);
  border: 1px solid rgba(212,175,55,0.6);
  border-radius: 12px;
  color: var(--gold-light);
  z-index: 1000;
  cursor: pointer;
  font-size: 1rem;
}

/* Language Toggles */
body.lang-es .spanish { display: block; opacity: 1; }
body.lang-es .english { display: none; }
.spanish { display: none; opacity: 0; }

/* Status & Warning */
.warning {
  text-align: center;
  max-width: 900px;
  margin: 4.5rem auto 1rem;
  padding: .75rem 1rem;
  background: rgba(10, 35, 60, 0.9);
  border: 1px solid rgba(212,175,55,0.5);
  border-radius: 12px;
  font-weight: 600;
  color: #ffdb70;
}

#status {
    text-align: center; 
    font-size: 0.9rem; 
    opacity: 0.9; 
    color: #9fd39f; /* Keep a hint of green for status success if desired, or change to gold */
}

/* Library Elements */
img.library-shot {
  display: block;
  margin: 1.25rem auto;
  width: 100%;
  max-width: 260px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.5);
  box-shadow: var(--shadow);
}

.library-card-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.3); /* dark blue tint */
}

.library-card-input {
  display: block;
  margin-top: 0.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.95rem;
  max-width: 260px;
  background: #0f1c2e;
  color: #fff;
}

/* Unsaved field highlighting */
.unsaved {
  border: 2px solid rgba(212,175,55,0.8) !important;
  background: rgba(212,175,55,0.10) !important;
}

/* Footer Controls Wrapper */
.footer-controls {
  text-align: center;
  margin: 3rem auto 5rem;
}

/* ======================================================
   Splash / Fade-In Landing Screen
====================================================== */
#splash-screen {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 46, 0.92); /* deep blue overlay */
  color: var(--gold-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Cinzel Decorative', serif;
  text-align: center;
  animation: fadeOut 2.8s ease forwards;
  pointer-events: none; 
}

#splash-screen h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

#splash-screen p {
  font-size: 1.3rem;
  opacity: 0.9;
}

@keyframes fadeOut {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

#main-content {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-content.fade-in {
  opacity: 1;
}

.logo-container {
  text-align: center;
  margin: 2rem 0;
}

.logo {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.btn-sub {
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0.2rem;
  opacity: 0.85;
  color: var(--gold-light);
}

.btn-gold {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(180,145,40,0.85),  /* softer gold */
    rgba(230,205,120,0.85)
  );
  color: #0c2e1a;
  border: 2px solid rgba(212,175,55,0.55);
  font-weight: 700;
  box-shadow: 0 0 8px rgba(212,175,55,0.25);
}

.btn-gold:hover {
  background: linear-gradient(
    135deg,
    rgba(215,185,95,0.95),
    rgba(180,145,40,0.95)
  );
  transform: translateY(-2px);
}
