/* ==========================================================================
   Pigalle Header Plugin - Main Stylesheet
   ========================================================================== */

/* CSS Custom Properties - Define color variables */
:root {
  --awb-custom_color_1: #181b20; /* Dark background color */
  --awb-custom_color_2: #ffcf06; /* Golden/yellow accent color */
  --canter-font: "Canter", "Arial", sans-serif;
}

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.pigalle-header-container {
  display: flex;
  width: 100vw; /* Full viewport width */
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  /* Ensure it breaks out of theme containers */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* Minimum height if not specified */
  min-height: 500px;
  /* Remove any theme margins/paddings */
  box-sizing: border-box;
}

/* Individual panel styling */
.pigalle-panel {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: hidden;
  /* Animation setup */
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}

/* Panel activation for animations */
.pigalle-panel.animated {
  opacity: 1;
  transform: translateX(0);
}

/* Panel overlays for better text readability */
.pigalle-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
  transition: background 0.3s ease;
}

/* Hover effect for panels */
.pigalle-panel:hover .pigalle-panel-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Panel content wrapper */
.pigalle-panel-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ==========================================================================
   Typography Styles
   ========================================================================== */

/* Subtitle styling - small text above main title */
.pigalle-subtitle {
  font-family: var(--canter-font);
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: var(--awb-custom_color_2);
  margin-bottom: -5px;
  margin-top: 35px;
  text-transform: none;
  letter-spacing: 1px;
  opacity: 0.9;
  /* Animation */
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease-out 0.3s;
}

/* Subtitle animation */
.pigalle-panel.animated .pigalle-subtitle {
  transform: translateY(0);
  opacity: 0.9;
}

/* Main title styling */
.pigalle-title {
  margin-bottom: 10px;
  /* Animation */
  transform: translateY(30px);
  opacity: 0;
  transition: all 1.2s ease-out 0.5s;
}

.pigalle-title h2 {
  font-family: var(--canter-font);
  font-size: 40px;
  font-weight: 400;
  font-style: normal;
  color: var(--awb-custom_color_2);
  margin: 0;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Title animation */
.pigalle-panel.animated .pigalle-title {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Button Styles - Based on provided fusion button code
   ========================================================================== */

.pigalle-button-wrapper {
  margin-top: 30px;
  /* Animation */
  transform: translateY(40px);
  opacity: 0;
  transition: all 1.0s ease-out 0.7s;
}

/* Button animation */
.pigalle-panel.animated .pigalle-button-wrapper {
  transform: translateY(0);
  opacity: 1;
}

.pigalle-button {
  display: inline-block;
  font-family: var(--canter-font);
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  color: var(--awb-custom_color_2);
  background: rgba(255, 207, 6, 0);
  border: 1px solid var(--awb-custom_color_2);
  padding: 15px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 0;
  line-height: 1;
  /* Box shadow for depth */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pigalle-button:hover,
.pigalle-button:focus {
  color: var(--awb-custom_color_1);
  background: rgba(24, 27, 32, 0.92);
  border-color: var(--awb-custom_color_2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.pigalle-button-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}

/* Button hover effect overlay */
.pigalle-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.pigalle-button:hover::before {
  left: 100%;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Large tablets and small desktops */
@media screen and (max-width: 1200px) {
  .pigalle-title h2 {
    font-size: 36px;
  }
  
  .pigalle-subtitle {
    font-size: 18px;
  }
  
  .pigalle-button {
    font-size: 18px;
    padding: 12px 25px;
  }
}

/* Medium tablets */
@media screen and (max-width: 768px) {
  .pigalle-header-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  
  .pigalle-panel {
    min-height: 300px;
    width: 100%;
  }
  
  .pigalle-title h2 {
    font-size: 32px;
  }
  
  .pigalle-subtitle {
    font-size: 16px;
    margin-top: 20px;
  }
  
  .pigalle-button {
    font-size: 16px;
    padding: 12px 20px;
  }
  
  .pigalle-panel-content {
    padding: 30px 15px;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .pigalle-panel {
    min-height: 250px;
  }
  
  .pigalle-title h2 {
    font-size: 28px;
    letter-spacing: 1px;
  }
  
  .pigalle-subtitle {
    font-size: 14px;
    margin-top: 15px;
  }
  
  .pigalle-button {
    font-size: 14px;
    padding: 10px 18px;
  }
  
  .pigalle-panel-content {
    padding: 20px 10px;
  }
  
  .pigalle-button-wrapper {
    margin-top: 20px;
  }
}

/* ==========================================================================
   Specific Panel Adjustments
   ========================================================================== */

/* Left panel specific styling */
.pigalle-panel-left {
  /* Additional filter for black and white effect */
  filter: saturate(0.3) contrast(1.1);
}

/* Middle panel specific styling */
.pigalle-panel-middle {
  /* Slightly more saturated colors */
  filter: saturate(1.2) contrast(1.05);
}

/* Right panel specific styling */
.pigalle-panel-right {
  /* Warm color enhancement */
  filter: saturate(1.1) sepia(0.1) contrast(1.05);
}

/* ==========================================================================
   Animation Keyframes
   ========================================================================== */

@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Alternative animation classes */
.pigalle-panel.bounce-in-left {
  animation: bounceInLeft 1.2s ease-out forwards;
}

.pigalle-title.fade-in-up {
  animation: fadeInUp 1.0s ease-out forwards;
}

/* ==========================================================================
   Theme Compatibility & Overrides
   ========================================================================== */

/* Override common theme containers */
.pigalle-header-container * {
  box-sizing: border-box;
}

/* Reset margins and paddings that themes might add */
.pigalle-header-container,
.pigalle-header-container * {
  margin: 0;
  padding: 0;
}

.pigalle-panel-content * {
  margin-top: 0;
  margin-bottom: 0;
}

/* Ensure buttons don't inherit theme styles */
.pigalle-button {
  background-image: none !important;
  border-radius: 0 !important;
  text-shadow: none !important;
}

/* Prevent theme typography from affecting titles */
.pigalle-title h2 {
  font-family: var(--canter-font) !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.pigalle-button:focus {
  outline: 2px solid var(--awb-custom_color_2);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .pigalle-panel {
    transition: none;
  }
  
  .pigalle-title,
  .pigalle-subtitle,
  .pigalle-button-wrapper {
    transition: none;
    transform: none;
    opacity: 1;
  }
} 