/* ========================================
   Landing Page - Split Screen Styles
   ======================================== */

/* Landing Container */
.landing {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Split Panels */
.landing-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--transition-slow);
}

/* Background Images */
.landing-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--transition-slower);
  z-index: 0;
}

.landing-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 10, 5, 0.55);
  transition: background var(--transition-base);
  z-index: 1;
}

/* Hover Effects */
.landing-panel:hover::before {
  transform: scale(1.05);
}

.landing-panel:hover::after {
  background: rgba(20, 10, 5, 0.45);
}

/* Random House Panel */
.panel-house::before {
  background-image: url('../images/hero/house-landing.png');
}

/* Random Studio Panel */
.panel-studio::before {
  background-image: url('../images/hero/studio-landing.jpg');
}

/* Panel Content */
.panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 400px;
}

/* Logo */
.panel-logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--space-6);
  filter: brightness(0) invert(1);
  transition: transform var(--transition-base);
}

.landing-panel:hover .panel-logo {
  transform: scale(1.05);
}

/* Premium Stamp */
.premium-stamp {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-8);
  animation: stampAppear 1s ease 0.5s both;
}

.stamp-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-accent);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
  box-shadow:
    0 0 20px rgba(201, 162, 39, 0.4),
    inset 0 0 20px rgba(201, 162, 39, 0.1);
}

.stamp-ring::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.6);
}

.stamp-ring::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.6);
}

.stamp-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 125px;
  border: 2px solid rgba(201, 162, 39, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(201, 162, 39, 0.25) 0%, transparent 60%),
    linear-gradient(145deg, #1a1510 0%, #2d2418 50%, #1a1510 100%);
  box-shadow:
    inset 0 0 40px rgba(201, 162, 39, 0.2),
    inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.stamp-logo {
  width: 105%;
  height: 105%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.5)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}

.stamp-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  border-radius: 50%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%, 100% { left: -100%; opacity: 0; }
  50% { left: 100%; opacity: 1; }
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes stampAppear {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Stamp glow pulse */
.premium-stamp::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Center Divider with Logo */
.center-divider {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
  pointer-events: none;
}

.center-divider .premium-stamp {
  pointer-events: auto;
}

.divider-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.5) 100%
  );
  opacity: 0;
  animation: lineAppear 1s ease 0.8s forwards;
}

.divider-top {
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.6)
  );
  margin-bottom: -5px;
}

.divider-bottom {
  background: linear-gradient(
    to top,
    transparent,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.6)
  );
  margin-top: -5px;
}

@keyframes lineAppear {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Center Stamp - positioned in the middle of both panels */
.center-stamp {
  position: relative;
  margin: 0;
}

.center-stamp .stamp-inner {
  width: 140px;
  height: 140px;
}

.center-stamp .stamp-logo {
  width: 110%;
  height: 110%;
}

/* Text Logo (if no image) */
.panel-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  color: var(--color-white);
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 0, 0, 0.3);
}

.panel-logo-subtext {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  font-style: italic;
  letter-spacing: var(--tracking-wider);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-6);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Panel Title & Description */
.panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
  color: var(--color-white);
  text-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 0, 0, 0.4);
  line-height: var(--leading-tight);
}

.panel-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-2xl);
  font-style: italic;
  margin-bottom: var(--space-8);
  color: rgba(255, 255, 255, 0.95);
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 0, 0, 0.3);
}

.panel-description {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

/* Panel CTA Button */
.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--color-white);
  border-radius: var(--rounded);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.panel-cta:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.panel-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-base);
}

.panel-cta:hover svg {
  transform: translateX(4px);
}

/* Coming Soon Styles */
.coming-soon-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: #1a1a1a;
  background-color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: var(--rounded-full);
  margin-bottom: var(--space-6);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

/* Subscribe Form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
  margin-top: var(--space-6);
}

.subscribe-input {
  padding: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-dark);
  background-color: var(--color-white);
  border: none;
  border-radius: var(--rounded);
  text-align: center;
  transition: box-shadow var(--transition-fast);
}

.subscribe-input::placeholder {
  color: var(--color-gray-light);
}

.subscribe-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.subscribe-btn {
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: #1a1a1a;
  background-color: var(--color-accent);
  border: none;
  border-radius: var(--rounded);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.subscribe-btn:hover {
  background-color: #d4b02e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.subscribe-success {
  display: none;
  padding: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-white);
  background-color: rgba(201, 162, 39, 0.25);
  border: 1px solid var(--color-accent);
  border-radius: var(--rounded);
  text-align: center;
}

.subscribe-success.show {
  display: block;
  animation: fadeInUp var(--transition-base) ease;
}

/* Old Divider Line - hidden, replaced by center-divider */
.landing-divider {
  display: none;
}

/* Language Switcher */
.landing-language {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 20;
}

.landing-language .lang-btn {
  width: 50px !important;
  padding: var(--space-2) 0 !important;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--rounded);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.landing-language .lang-btn:hover,
.landing-language .lang-btn.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-divider {
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 20;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator span {
  font-size: var(--text-xs);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
  .panel-title {
    font-size: var(--text-4xl);
  }

  .panel-subtitle {
    font-size: var(--text-xl);
  }

  .panel-content {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .landing {
    flex-direction: column;
  }

  .landing-panel {
    min-height: 50vh;
    min-height: 50dvh;
  }

  /* Mobile: horizontal layout for divider */
  .center-divider {
    flex-direction: row;
    top: 56%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
  }

  .divider-line {
    height: 2px;
    width: auto;
    flex: 1;
  }

  .divider-top {
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.6)
    );
    margin-bottom: 0;
    margin-right: -5px;
  }

  .divider-bottom {
    background: linear-gradient(
      to left,
      transparent,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0.6)
    );
    margin-top: 0;
    margin-left: -5px;
  }

  .center-divider {
    display: none;
  }

  .panel-title {
    font-size: var(--text-3xl);
  }

  .panel-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
  }

  .panel-description {
    font-size: var(--text-base);
  }

  .landing-language {
    top: 20px;
    bottom: auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: var(--space-2);
    border-radius: var(--rounded);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(0.85);
  }

  .landing-language .lang-btn {
    width: 40px !important;
    padding: 6px 0 !important;
    font-size: 11px !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
  }

  .landing-language .lang-btn:hover,
  .landing-language .lang-btn.active {
    background-color: rgba(255, 255, 255, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
  }

  .subscribe-form {
    max-width: 280px;
  }

  .premium-stamp {
    width: 120px;
    height: 120px;
    margin-bottom: var(--space-4);
  }

  .stamp-inner {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .landing-panel {
    padding: var(--space-6);
  }

  .panel-title {
    font-size: var(--text-2xl);
  }

  .panel-subtitle {
    font-size: var(--text-base);
  }

  .panel-cta {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
  }

  .subscribe-input,
  .subscribe-btn {
    padding: var(--space-3);
  }
}

/* ========================================
   Animation on Load
   ======================================== */
.landing-panel .panel-content {
  opacity: 0;
  transform: translateY(30px);
}

.landing.loaded .panel-house .panel-content {
  animation: slideInLeft 0.8s ease 0.3s forwards;
}

.landing.loaded .panel-studio .panel-content {
  animation: slideInRight 0.8s ease 0.5s forwards;
}

.landing.loaded .landing-divider {
  animation: fadeIn 1s ease 0.7s forwards;
  opacity: 0;
}

.landing.loaded .landing-language {
  animation: fadeInUpCentered 0.8s ease 0.9s forwards;
  opacity: 0;
}

@keyframes fadeInUpCentered {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Parallax Effect */
.landing-panel.parallax::before {
  will-change: transform;
}

/* ========================================
   Rating Badges on Panels
   ======================================== */
.panel-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--rounded-full);
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.panel-rating-bottom {
  position: absolute;
  bottom: var(--space-16);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 5;
}

.panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel-rating-stars {
  display: flex;
  gap: 2px;
}

.panel-rating-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.4));
}

.panel-rating-score {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-white);
  line-height: 1;
}

.panel-rating-count {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
}

/* Disabled state for Studio */
.panel-rating-disabled {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.15);
}

.panel-rating-disabled .panel-rating-stars svg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.5;
  filter: none;
}

.panel-rating-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

@media (max-width: 768px) {
  .panel-rating {
    padding: var(--space-1) var(--space-3);
    gap: var(--space-2);
  }

  .panel-rating-bottom {
    position: static;
    transform: none;
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
  }

  .panel-rating-stars svg {
    width: 14px;
    height: 14px;
  }

  .panel-rating-score {
    font-size: var(--text-base);
  }
}

/* Landing Info Section */
.landing-info {
  background: var(--color-cream, #fdf8f3);
  padding: var(--space-16, 4rem) var(--space-6, 1.5rem);
  text-align: center;
}

.landing-info-container {
  max-width: var(--container-md, 900px);
  margin: 0 auto;
}

.landing-info h2 {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--text-3xl, 1.875rem);
  font-weight: 600;
  color: var(--color-dark, #1a1a1a);
  margin-bottom: var(--space-6, 1.5rem);
}

.landing-info-container > p {
  font-size: var(--text-base, 1rem);
  line-height: 1.7;
  color: var(--color-dark-lighter);
  margin-bottom: var(--space-8, 2rem);
}

.landing-info-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6, 1.5rem);
  text-align: left;
  margin-bottom: var(--space-8, 2rem);
}

.landing-info-feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}

.landing-info-feature strong {
  font-family: var(--font-heading, 'Playfair Display', serif);
  font-size: var(--text-lg, 1.125rem);
  color: var(--color-dark, #1a1a1a);
}

.landing-info-feature span {
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.6;
  color: var(--color-dark-lighter);
}

@media (max-width: 768px) {
  .landing-info-features {
    grid-template-columns: 1fr;
  }
}
