/*
Theme Name: Mousai
Theme URI: https://mousai.saipprentice.com
Description: Custom child theme for Mousai music discovery site. Built on GeneratePress with purple-toned design system matching Senpai.
Author: Saip Prentice
Author URI: https://saipprentice.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mousai
*/

/* ============================================
   CSS DESIGN SYSTEM — Matching Senpai
   Purple-toned color palette with HSL variables
   ============================================ */

:root {
  --background: 270 15% 96%;
  --foreground: 270 20% 25%;
  --card: 270 15% 98%;
  --card-foreground: 270 20% 25%;
  --primary: 270 70% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 270 30% 88%;
  --secondary-foreground: 270 20% 25%;
  --muted: 270 10% 92%;
  --muted-foreground: 270 10% 45%;
  --accent: 280 65% 65%;
  --accent-foreground: 0 0% 100%;
  --border: 270 12% 88%;
  --input: 270 12% 88%;
  --ring: 270 70% 60%;
  --radius: 0.75rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.025em;
  margin: 0;
  padding: 0;
}

/* ============================================
   SITE-WIDE PASSWORD GATE
   Matching Senpai's gate design
   ============================================ */

.mousai-site-gate {
  position: fixed;
  inset: 0;
  background: hsl(270 15% 96%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.mousai-site-gate-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 44px 36px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px hsla(270 30% 5% / 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: mousai-gate-in 0.35s ease;
}

@keyframes mousai-gate-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.mousai-site-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  margin-bottom: 4px;
}

.mousai-site-gate-title {
  font-size: 24px;
  font-weight: 700;
  color: hsl(var(--primary));
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

.mousai-site-gate-desc {
  font-size: 15px;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.mousai-site-gate-field {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.mousai-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

.mousai-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}

.mousai-site-gate-error {
  font-size: 13px;
  color: hsl(0 72% 51%);
  min-height: 18px;
  margin: 0;
  text-align: center;
}

.mousai-site-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.025em;
  margin-top: 4px;
}

.mousai-site-gate-btn:hover {
  background: hsl(var(--accent));
}

@media (max-width: 440px) {
  .mousai-site-gate-card {
    padding: 32px 22px 26px;
  }
  .mousai-site-gate-title {
    font-size: 22px;
  }
}
