html {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f1e8;
  color: #3d4449;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.branding-header {
  background: #f5f1e8;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.logo {
  max-width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(200, 150, 62, 0.6));
}

.site-title {
  display: none;
}

nav {
  background-color: #3d4449;
  padding: 0;
  text-align: center;
}

.main-nav {
  background-color: #3d4449;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

nav a,
.main-nav a {
  color: #C8963E;
  text-decoration: none;
  padding: 1rem 1.5rem;
  display: inline-block;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

nav a:hover,
.main-nav a:hover {
  background-color: rgba(200, 150, 62, 0.1);
}

nav a.active,
.main-nav a.active {
  background-color: rgba(200, 150, 62, 0.15);
}

nav .logout-link,
.main-nav .logout-link {
  color: #C8963E;
  font-weight: 400;
  margin-left: auto;
}

nav .logout-link:hover,
.main-nav .logout-link:hover {
  background-color: rgba(200, 150, 62, 0.1);
}

.container {
  padding: 2rem;
}

.decoder-intro {
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0 2rem 0;
  border-left: 4px solid #C8963E;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.decoder-intro p {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
}

.inline-link {
  color: #C8963E;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.inline-link:hover {
  border-bottom-color: #C8963E;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1F1F2E; /* SoulArt deep navy */
}

.emotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

/* Emotion Grid Buttons - SoulArt Branding */
.emotion-grid button {
  background-color: #1F1F2E;   /* SoulArt deep navy */
  color: #C8963E;              /* SoulArt gold text */
  border: none;
  border-radius: 12px;
  padding: 1rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  font-family: 'Segoe UI', sans-serif;
  word-wrap: break-word;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emotion-grid button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(200, 150, 62, 0.4); /* subtle golden glow */
}

.emotion-grid button:active,
.emotion-grid button.selected {
  box-shadow: 0 0 20px rgba(200, 150, 62, 0.7); /* stronger golden glow when clicked */
  transform: scale(1.03);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .emotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }
  
  .emotion-grid button {
    padding: 0.9rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .emotion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  
  .emotion-grid button {
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .container {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 1.6rem;
  }
}

.release-output {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.release-output.animate-in {
  animation: fadeSlideUp 0.5s ease-out;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.release-button {
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #C8963E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.release-button:hover {
  background-color: #b5802d;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.video-toggle-btn {
  margin: 1.5rem 0;
  padding: 0.8rem 1.5rem;
  background-color: #1F1F2E;
  color: #C8963E;
  border: 2px solid #C8963E;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.video-toggle-btn:hover {
  background-color: #C8963E;
  color: #1F1F2E;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

#video-guide {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  animation: fadeSlideUp 0.5s ease-out;
}

#video-guide h3 {
  color: #1F1F2E;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

#video-guide video {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Recoding After Release Section */
.recoding-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #F5E6C3 100%);
  border-radius: 12px;
  border: 2px solid #C8963E;
  box-shadow: 0 4px 10px rgba(200, 150, 62, 0.15);
}

.recoding-section h3 {
  color: #1F1F2E;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.recoding-subtitle {
  color: #666;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.frequency-prompt {
  background: #fff;
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #C8963E;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.prompt-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1F1F2E;
  margin: 0 0 1rem 0;
}

.prompt-instruction {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.meridian-swipe-instruction {
  background: #fff;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.meridian-swipe-instruction p {
  margin: 0.5rem 0;
}

.affirmation-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1rem 0;
  padding: 1rem;
  background: #f5f7fa;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.education-link {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #666;
}

.education-link a {
  color: #C8963E;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.education-link a:hover {
  border-bottom-color: #C8963E;
}

/* Hidden Shadows Section */
.hidden-shadows-prompt {
  background: linear-gradient(135deg, #2a2a3e 0%, #1F1F2E 100%);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 2px solid #C8963E;
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.2);
  text-align: center;
}

.hidden-shadows-prompt p {
  color: #F5E6C3;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 1.2rem 0;
  font-weight: 500;
}

.explore-shadows-btn {
  padding: 0.9rem 2rem;
  background-color: #C8963E;
  color: #1F1F2E;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', sans-serif;
}

.explore-shadows-btn:hover {
  background-color: #b5802d;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(200, 150, 62, 0.4);
}

.shadow-btn {
  background: linear-gradient(135deg, #2a2a3e 0%, #1F1F2E 100%);
  border: 2px solid #8F5AFF;
  box-shadow: 0 4px 8px rgba(143, 90, 255, 0.15);
}

.shadow-btn:hover {
  box-shadow: 0 0 15px rgba(143, 90, 255, 0.5);
  border-color: #C8963E;
}

.shadow-btn:active,
.shadow-btn.selected {
  box-shadow: 0 0 20px rgba(143, 90, 255, 0.7);
  border-color: #C8963E;
}

#hidden-shadows-grid {
  margin-top: 1rem;
  animation: fadeSlideUp 0.5s ease-out;
}

/* Footer Styles */
.site-footer {
  background-color: #3d4449;
  color: #e8e4dc;
  text-align: center;
  padding: 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Main content wrapper */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}