/* ═══════════════════════════════════════════
   DONGSEON STUDIO - BUILDING UI SYSTEM
   4-Floor Architecture with Elevator Navigation
   ═══════════════════════════════════════════ */

:root {
  /* Building Theme - Daejehak Gold */
  --building-bg: #0A0A0A;
  --floor-surface: rgba(212,175,55,0.05);
  --floor-border: rgba(212,175,55,0.2);
  --floor-hover: rgba(212,175,55,0.1);
  --gold-primary: #D4AF37;
  --gold-light: #F4D03F;
  --gold-dark: #8B6914;
  --text-cream: #F5F5DC;
  --text-gold: #D4AF37;
  --text-muted: #6B5B45;
  --lock-red: #8B0000;
  --unlock-green: #2E7D32;
}

/* ═══════════════════════════════════════════
   BUILDING CONTAINER
   ═══════════════════════════════════════════ */
.building-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.building-title {
  text-align: center;
  margin-bottom: 40px;
}

.building-title h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.building-title .subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════
   BUILDING STRUCTURE - 4 FLOORS
   ═══════════════════════════════════════════ */
.building {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--floor-border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--building-bg);
  box-shadow:
    0 0 60px rgba(212,175,55,0.1),
    inset 0 0 100px rgba(212,175,55,0.02);
}

.floor {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--floor-border);
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 140px;
}

.floor:last-child {
  border-bottom: none;
}

.floor:hover {
  background: var(--floor-hover);
}

.floor:hover .floor-number {
  background: var(--gold-primary);
  color: #0A0A0A;
}

/* Floor Number Indicator */
.floor-number {
  width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-primary);
  background: rgba(212,175,55,0.08);
  border-right: 1px solid var(--floor-border);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

/* Floor Content */
.floor-content {
  flex: 1;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.floor-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-cream);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floor-name-ko {
  font-size: 1rem;
  color: var(--text-gold);
  font-weight: 500;
}

.floor-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.floor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.floor-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 20px;
  color: var(--gold-light);
}

/* Lock Status */
.floor-status {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--floor-border);
  flex-shrink: 0;
}

.lock-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

.lock-icon.locked {
  color: var(--lock-red);
}

.lock-icon.unlocked {
  color: var(--unlock-green);
}

.lock-icon.open {
  color: var(--gold-primary);
}

/* ═══════════════════════════════════════════
   ELEVATOR SIDEBAR
   ═══════════════════════════════════════════ */
.elevator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  padding: 12px;
  border-radius: 30px;
  border: 1px solid var(--floor-border);
}

.elevator-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--floor-border);
  background: transparent;
  color: var(--gold-primary);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elevator-btn:hover {
  background: var(--gold-primary);
  color: #0A0A0A;
  border-color: var(--gold-primary);
  transform: scale(1.1);
}

.elevator-btn.active {
  background: var(--gold-primary);
  color: #0A0A0A;
  border-color: var(--gold-primary);
}

.elevator-btn.locked {
  opacity: 0.5;
}

.elevator-btn.locked::after {
  content: '🔒';
  font-size: 0.6rem;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

/* ═══════════════════════════════════════════
   PASSWORD MODAL
   ═══════════════════════════════════════════ */
.password-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.password-modal.active {
  display: flex;
}

.password-box {
  background: linear-gradient(145deg, #1A1A1A 0%, #0F0F0F 100%);
  border: 2px solid var(--floor-border);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.password-box h3 {
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.password-box .floor-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.password-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1.2rem;
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--floor-border);
  border-radius: 12px;
  color: var(--text-cream);
  text-align: center;
  letter-spacing: 0.3em;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.password-input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.password-input.error {
  border-color: var(--lock-red);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.password-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: 12px;
  color: #0A0A0A;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

.password-cancel {
  margin-top: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.password-cancel:hover {
  color: var(--text-cream);
}

/* ═══════════════════════════════════════════
   1F LOBBY SPECIFIC STYLES
   ═══════════════════════════════════════════ */
.lobby-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, rgba(212,175,55,0.05) 0%, transparent 100%);
}

.lobby-hero .monument {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  background: linear-gradient(180deg, #D4AF37 0%, #8B6914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 20px;
}

.lobby-hero .tagline {
  font-size: 1.2rem;
  color: var(--text-gold);
  margin-bottom: 8px;
}

.lobby-hero .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Philosophy Section */
.philosophy-section {
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-section h2 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 30px;
  text-align: center;
}

.philosophy-card {
  background: var(--floor-surface);
  border: 1px solid var(--floor-border);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 20px;
}

.philosophy-card h3 {
  font-size: 1.2rem;
  color: var(--text-cream);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.philosophy-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.philosophy-card .highlight {
  color: var(--gold-light);
  font-weight: 600;
}

/* 3 Pillars Section */
.pillars-section {
  padding: 60px 20px;
}

.pillars-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 40px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.pillar-card {
  background: var(--floor-surface);
  border: 1px solid var(--floor-border);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 40px rgba(212,175,55,0.1);
}

.pillar-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-size: 1.2rem;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.pillar-card .pillar-ko {
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .floor {
    flex-direction: column;
    min-height: auto;
  }

  .floor-number {
    width: 100%;
    height: 50px;
    border-right: none;
    border-bottom: 1px solid var(--floor-border);
  }

  .floor-status {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    width: auto;
  }

  .floor-content {
    padding: 20px;
  }

  .elevator {
    bottom: 20px;
    top: auto;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    padding: 8px 16px;
  }

  .elevator-btn {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}
