/* =========================================
   GLOBAL THEME — Muggs Of Dreams
   Celtic Modern Dark Theme (Kells)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --gold: #d4a726;
  --gold-light: #f0d78a;
  --gold-glow: rgba(212, 167, 38, 0.4);

  --green-900: #071a0e;
  --green-800: #0d2818;
  --green-700: #143d24;
  --green-600: #1a5231;

  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  --success-green: #22c55e;
  --error-red: #ef4444;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text-primary);
  background: var(--green-900);
  min-height: 100vh;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--green-700) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(212, 167, 38, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, var(--green-600) 0%, transparent 40%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url('../kells/book_of_kells_1.jpg') center/cover no-repeat;
  opacity: 0.06;
  filter: grayscale(40%) brightness(0.7);
  z-index: -1;
  pointer-events: none;
}

h1, h2 {
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: -0.01em;
}

h1 {
  color: var(--gold);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  text-shadow:
    0 0 20px rgba(212, 167, 38, 0.4),
    0 0 40px rgba(212, 167, 38, 0.2);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.35rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

p {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tagline {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}

/* Logo */
.logo-container {
  text-align: center;
  margin: 1rem 0;
}

.logo {
  max-width: 120px;
  width: 100%;
  height: auto;
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Main Content */
#main-content {
  opacity: 0;
  transition: opacity 0.6s var(--transition);
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

/* Form Styles */
.dream-form {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  text-align: left;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.form-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: left;
}

label {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.optional-tag {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Submit Button */
.btn-submit {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-900);
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  text-align: center;
  display: none;
}

.message.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.message.show {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 1rem;
  border-top: 1px solid var(--glass-border);
  width: 100%;
  text-align: center;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.dashboard-link {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  opacity: 0.6;
  transition: var(--transition);
}

.dashboard-link:hover {
  opacity: 1;
  color: var(--gold);
}

/* Splash Screen */
#splash-screen {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  color: var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Cinzel Decorative', serif;
  text-align: center;
  animation: splashFade 1.8s ease forwards;
  pointer-events: none;
}

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

#splash-screen p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  opacity: 0;
  animation: splashSlide 0.8s ease 0.3s forwards;
}

@keyframes splashFade {
  0%, 40% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes splashSlide {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   Dashboard Styles
====================================================== */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2rem;
}

.btn-back {
  padding: 0.6rem 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-secondary);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.btn-back:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.dreams-list {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dream-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.dream-card:hover {
  border-color: rgba(212, 167, 38, 0.2);
  background: var(--glass-hover);
}

.dream-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dream-card h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.1rem;
  color: var(--gold);
}

.dream-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dream-card p {
  margin: 0 0 0.75rem;
  text-align: left;
  max-width: 100%;
}

.dream-card strong {
  color: var(--gold-light);
}

.dream-contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 20px;
  font-weight: 600;
}

.status-new {
  background: rgba(212, 167, 38, 0.2);
  color: var(--gold);
}

.status-working {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success-green);
}

.status-completed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* Login Form */
.login-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  backdrop-filter: blur(12px);
}

.login-form input {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .dream-form {
    padding: 1.5rem;
  }

  .logo {
    max-width: 100px;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
  }
}
