/*
  Put all project-specific overrides here.
  This file is loaded last and safe to edit without touching parent theme files.
*/

/* ============================================
   Hero Section - Full Width
   ============================================ */

main.ww-shell {
  position: relative;
}

.wp-block-group.alignfull,
.wp-block-cover.alignfull,
.wp-block-cover.hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Hero specific styling */
.wp-block-cover.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-block-cover.hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Keep hero CTA group centered regardless of block nesting */
.wp-block-cover.hero .wp-block-columns {
  justify-content: center;
}

.wp-block-cover.hero .wp-block-column {
  display: flex;
  justify-content: center;
}

.wp-block-cover.hero .wp-block-buttons {
  width: 100%;
  justify-content: center;
}

.wp-block-cover.hero .wp-block-button {
  width: auto;
}

/* Hero button design */
.wp-block-cover.hero .wp-block-button__link {
  display: inline-block;
  min-width: 180px;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 2px solid #ff6900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wp-block-cover.hero .wp-block-button:first-child .wp-block-button__link {
  background: #ff6900;
  color: #ffffff;
}

.wp-block-cover.hero .wp-block-button:first-child .wp-block-button__link:hover {
  background: #e55a00;
  border-color: #e55a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 105, 0, 0.35);
}

.wp-block-cover.hero .wp-block-button:last-child .wp-block-button__link {
  background: transparent;
  color: #ff6900;
}

.wp-block-cover.hero .wp-block-button:last-child .wp-block-button__link:hover {
  background: #ff6900;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 105, 0, 0.35);
}

/* ============================================
   Text Section
   ============================================ */

.ww-h1 {
  color: wheat;
  font-size: 4em
}

.ww-subheading {
  font-size: 1.30em;
}

/* Kontaktsektion */
.wp-block-contact-form-7-contact-form-selector {
  display: flex;
  justify-content: center;
  margin: 2.5rem auto 1.5rem;
  padding: 0 1rem;
}

/* Selve formular-kortet */
.wp-block-contact-form-7-contact-form-selector .wpcf7 {
  width: 100%;
  max-width: 760px;
  background: rgba(10, 14, 20, 0.86);
  border: 1px solid rgba(255, 105, 0, 0.35);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

/* Labels og felter */
.wp-block-contact-form-7-contact-form-selector .wpcf7 label {
  display: block;
  font-weight: 600;
  color: #f7f1e6;
  margin-bottom: 0.45rem;
}

.wp-block-contact-form-7-contact-form-selector .wpcf7-form-control {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 0.78rem 0.95rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-contact-form-7-contact-form-selector textarea.wpcf7-form-control {
  min-height: 150px;
  resize: vertical;
}

.wp-block-contact-form-7-contact-form-selector .wpcf7-form-control:focus {
  outline: none;
  border-color: #ff6900;
  box-shadow: 0 0 0 4px rgba(255, 105, 0, 0.22);
}

.wp-block-contact-form-7-contact-form-selector .wpcf7-form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Luft mellem rækker */
.wp-block-contact-form-7-contact-form-selector .wpcf7 p {
  margin: 0 0 1rem;
}

/* Knap */
.wp-block-contact-form-7-contact-form-selector .wpcf7-submit {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6900, #ff8c2a);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.wp-block-contact-form-7-contact-form-selector .wpcf7-submit:hover {
  filter: brightness(1.05);
}

.wp-block-contact-form-7-contact-form-selector .wpcf7-submit:active {
  transform: translateY(1px);
}

/* Fejl/succes tekster */
.wp-block-contact-form-7-contact-form-selector .wpcf7-not-valid-tip,
.wp-block-contact-form-7-contact-form-selector .wpcf7-response-output {
  font-size: 0.95rem;
}

/* E-mail tekst under formular */
.wp-block-group .has-text-align-center a[href^="mailto:"] {
  color: #ff6900;
  font-weight: 700;
  text-decoration-thickness: 2px;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large screens (desktop) */
@media (min-width: 1200px) {
  .wp-block-cover.hero {
    min-height: 848px;
  }
  
  .wp-block-cover.hero h2 {
    font-size: 3.5rem;
    line-height: 1.2;
  }
}

/* Tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .wp-block-cover.hero {
    min-height: 650px;
  }
  
  .wp-block-cover.hero h2 {
    font-size: 2.5rem;
    line-height: 1.3;
  }
  
  .wp-block-cover.hero p {
    font-size: 1.1rem;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .wp-block-cover.hero {
    min-height: 500px;
    padding: 20px;
  }
  
  .wp-block-cover.hero h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .wp-block-cover.hero p {
    font-size: 0.95rem;
  }
  
  .wp-block-cover.hero .wp-block-columns {
    flex-direction: column;
    align-items: center;
  }
  
  .wp-block-cover.hero .wp-block-button {
    width: 100%;
    max-width: 320px;
  }

  .wp-block-cover.hero .wp-block-button__link {
    width: 100%;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .wp-block-cover.hero {
    min-height: 400px;
    padding: 15px;
  }
  
  .wp-block-cover.hero h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   Background Effects
   ============================================ */

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #0f1520 50%, #0a0a0f 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 105, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 105, 0, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

main.ww-shell {
  position: relative;
  background: transparent;
}

/* Gradient overlays for sections */
.wp-block-group.alignfull {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* ============================================
   Content Sections
   ============================================ */

.wp-block-group.is-vertical {
  padding: 30px 20px;
  text-align: center;
}

.wp-block-group.is-vertical h3 {
  margin-bottom: 5px;
  font-size: 2.5rem;
}

.wp-block-group.is-vertical p {
  max-width: 900px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ============================================
   Countdown Section
   ============================================ */

.ww-next-event-countdown {
  margin: 40px 0;
}

.ww-countdown-boxes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0;
  padding: 20px;
  color: #1a1a1a;
}

.ww-countdown-box {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
  min-width: 100px;
  text-align: center;
}

.ww-countdown-box strong {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.ww-countdown-box small {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ============================================
   Grid & Cards
   ============================================ */

.ww-grid {
  display: grid;
  gap: 30px;
  margin: 40px 0;
}

.ww-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.ww-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  position: relative;
}

.ww-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.ww-card img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.ww-card:hover img {
  opacity: 1;
}

.ww-grid .ww-card h3 {
  padding: 20px;
  margin: 0;
  font-size: 1.1rem !important;
  color: white;
}

.ww-card h3 a {
  color: inherit;
  text-decoration: none;
}

.ww-card h3 a:hover {
  color: #ff6900;
}

/* Hidden Artist Cards */
.ww-hidden-artist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 40px;
  text-align: center;
}

.ww-hidden-artist h3 {
  margin-bottom: 20px;
  color: #ff6900;
  font-size: 1.2rem;
}

.ww-hidden-artist p {
  margin: 0;
  font-size: 0.95rem;
  color: white;
}

/* Billetter Section */
.ww-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff6900;
  margin: 10px 0;
}

.ww-status {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 10px 0;
}

.ww-status-i_salg {
  background-color: #d4edda;
  color: #155724;
}

.ww-status-udsolgt {
  background-color: #f8d7da;
  color: #721c24;
}

.ww-card ul {
  list-style: none;
  padding: 0 20px 20px 20px;
  margin: 0;
}

.ww-card li {
  padding: 8px 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: white;
}

.ww-button {
  display: block;
  background: #ff6900;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  margin: 20px auto;
  width: fit-content;
}

.ww-button:hover {
  background: #e55a00;
}

/* ============================================
   Responsive Grid
   ============================================ */

/* Tablets */
@media (max-width: 1199px) and (min-width: 768px) {
  .ww-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .wp-block-group.is-vertical h3 {
    font-size: 2rem;
  }
  
  .ww-card h3 {
    font-size: 1.15rem;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .ww-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .ww-grid {
    gap: 20px;
    margin: 30px 0;
  }
  
  .wp-block-group.is-vertical {
    padding: 40px 15px;
  }
  
  .wp-block-group.is-vertical h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .wp-block-group.is-vertical p {
    font-size: 1rem;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }
  
  .ww-countdown-boxes {
    gap: 10px;
    padding: 15px;
  }
  
  .ww-countdown-box {
    min-width: 80px;
    padding: 15px;
  }
  
  .ww-countdown-box strong {
    font-size: 1.8rem;
  }
  
  .ww-hidden-artist {
    height: 300px;
    padding: 20px;
  }
  
  .ww-card h3 {
    font-size: 1.1rem;
    padding: 15px;
  }
  
  .ww-card ul {
    padding: 0 15px 15px 15px;
  }
  
  .ww-card li {
    font-size: 0.9rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .wp-block-group.is-vertical {
    padding: 30px 10px;
  }
  
  .wp-block-group.is-vertical h3 {
    font-size: 1.5rem;
  }
  
  .wp-block-group.is-vertical p {
    font-size: 0.95rem;
  }
  
  .ww-price {
    font-size: 1.5rem;
  }
  
  .ww-countdown-box {
    min-width: 70px;
    padding: 12px;
  }
  
  .ww-countdown-box strong {
    font-size: 1.5rem;
  }
  
  .ww-countdown-box small {
    font-size: 0.8rem;
  }
}

/* ============================================
   Spacers
   ============================================ */

.wp-block-spacer {
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */

.ww-site-footer {
  background-color: #1a1a1a;
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-top: 60px;
}

.ww-site-footer p {
  margin: 0;
  font-size: 1rem;
}

/* ============================================
   General Utilities
   ============================================ */

.ww-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Block utilities */
.has-text-align-center {
  text-align: center;
}

/* Layout constrained padding */
.is-layout-constrained {
  padding: 30px 20px;
}

/* Praktisk info: disable automatic centering on this page only */
body.page-id-114 .wp-block-group.is-vertical {
  text-align: left;
  align-items: flex-start;
}

body.page-id-114 .wp-block-group.is-vertical p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.page-id-114 .wp-block-buttons {
  justify-content: flex-start;
}

body.page-id-114 .ww-content .wp-block-list {
  list-style: disc;
  padding-left: 1.4rem;
}

body.page-id-114 .ww-content .wp-block-list li::marker {
  color: #ff6900;
}

body.page-id-114 .ww-content .wp-block-columns .wp-block-heading,
body.page-id-114 .ww-content .wp-block-columns p {
  text-align: left;
}

body.page-id-114 .ww-content .wp-block-columns .wp-block-column {
  align-items: flex-start;
}

/* Match spacing with .wp-block-group.is-vertical for Sted / Dato section */
body.page-id-114 .ww-content > .wp-block-group.is-layout-constrained:first-of-type {
  padding: 30px 20px;
}

body.page-id-114 .ww-content > .wp-block-group.is-layout-constrained:first-of-type .wp-block-group.is-layout-constrained {
  padding: 0;
}

body.page-id-114 .ww-content > .wp-block-group.is-layout-constrained:first-of-type .wp-block-columns {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  body.page-id-114 .ww-content > .wp-block-group.is-layout-constrained:first-of-type {
    padding: 40px 15px;
  }
}

@media (max-width: 480px) {
  body.page-id-114 .ww-content > .wp-block-group.is-layout-constrained:first-of-type {
    padding: 30px 10px;
  }
}

/* ============================================
   Frontpage-like Layout On Other Pages
   ============================================ */

body.page:not(.home) main.ww-shell > article.page.ww-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: block;
  overflow: visible;
  animation: none;
}

/* Avoid duplicate title when page content already has a hero heading */
body.page:not(.home) main.ww-shell > article.page.ww-card:has(.wp-block-cover.hero) > h1 {
  display: none;
}

