/*
Theme Name: Hollabrunner Theaterverein
Theme URI: https://hollabrunnertheraterverein.at
Author: Hollabrunner Theaterverein
Author URI: https://hollabrunnertheraterverein.at
Description: A vibrant theatre association theme inspired by bold playbill poster design. Features lime-green and dark green colour scheme with strong typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theaterverein
Tags: theatre, arts, events, bold, green, responsive
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --lime:       #b6f000;
  --dark:       #1e2a1e;
  --dark-alt:   #162016;
  --text:       #1a1a1a;
  --text-light: #f0f0f0;
  --mid:        #3a4a3a;
  --white:      #ffffff;
  --font-display: 'Oswald', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--lime);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.75; }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   NAVIGATION / HEADER
   ============================================= */
#site-header {
  background: var(--dark-alt);
  border-bottom: 3px solid var(--lime);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.site-branding a {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Primary Nav */
#primary-navigation ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
}

#primary-navigation ul li a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 0.2s;
}

#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item a {
  color: var(--lime);
  border-color: var(--lime);
  opacity: 1;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--lime);
  color: var(--lime);
  font-size: 20px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* =============================================
   HERO / POSTER SECTION
   ============================================= */
.hero-poster {
  background: var(--lime);
  padding: 48px 24px;
}

.poster-inner {
  max-width: 700px;
  margin: 0 auto;
}

.poster-club-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 60px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 20px;
}

.poster-title-block {
  background: var(--dark);
  padding: 22px 20px 26px;
  margin-bottom: 20px;
}

.poster-title-block h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 2px;
  text-align: center;
}

.poster-subtitle {
  text-align: center;
  margin-bottom: 16px;
}
.poster-subtitle .komoedie {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.poster-subtitle .fassung {
  font-size: 14px;
  color: var(--text);
}

.poster-cast {
  text-align: center;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 22px;
  padding: 0 12px;
}

/* Dates */
.poster-dates-block {
  background: var(--dark);
  padding: 20px 24px 16px;
  margin-bottom: 20px;
}

.dates-table {
  width: 100%;
  border-collapse: collapse;
}
.dates-table td {
  font-family: var(--font-display);
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 700;
  color: var(--lime);
  padding: 5px 0;
  white-space: nowrap;
}
.dates-table .col-left  { text-align: left;   width: 22%; }
.dates-table .col-mid   { text-align: center; width: 48%; }
.dates-table .col-right { text-align: right;  width: 30%; font-size: clamp(19px, 3.8vw, 30px); }

.poster-venue {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
  color: var(--lime);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 1px;
}

/* Ticket Info */
.poster-info {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}
.poster-info .presale {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 3px;
}
.poster-info .prices {
  text-align: center;
  margin-bottom: 12px;
}
.poster-info .info-row { margin-bottom: 5px; }
.poster-info .info-label { font-weight: 700; }
.poster-info .info-note {
  text-align: center;
  font-size: 12px;
  margin-top: 6px;
  color: #444;
}

/* =============================================
   MAIN CONTENT AREA
   ============================================= */
#main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Page / Post Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ENTRY (posts / pages)
   ============================================= */
.entry {
  border-left: 4px solid var(--lime);
  padding-left: 24px;
  margin-bottom: 48px;
}

.entry-header { margin-bottom: 16px; }

.entry-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.entry-meta {
  font-size: 13px;
  color: #8aad60;
  letter-spacing: 0.5px;
}

.entry-content {
  color: #d8e8c8;
  font-size: 16px;
  line-height: 1.75;
}
.entry-content p { margin-bottom: 1em; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-display);
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.5em 0 0.5em;
}
.entry-content ul, .entry-content ol {
  margin: 0.5em 0 1em 1.5em;
}

/* Read More */
.read-more {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--lime);
  padding: 8px 20px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.read-more:hover { background: #c8ff00; color: var(--dark); opacity: 1; }

/* =============================================
   SIDEBAR WIDGETS
   ============================================= */
.sidebar .widget {
  background: var(--mid);
  border-top: 3px solid var(--lime);
  padding: 20px;
  margin-bottom: 28px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.sidebar ul { list-style: none; }
.sidebar ul li {
  border-bottom: 1px solid rgba(182,240,0,0.15);
  padding: 7px 0;
  font-size: 14px;
  color: #c8ddb0;
}
.sidebar ul li:last-child { border-bottom: none; }
.sidebar ul li a { color: #c8ddb0; }
.sidebar ul li a:hover { color: var(--lime); opacity: 1; }

/* =============================================
   EVENT / PERFORMANCE CARDS
   ============================================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.event-card {
  background: var(--mid);
  border-bottom: 3px solid var(--lime);
  overflow: hidden;
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-3px); }

.event-card-date {
  background: var(--lime);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 14px;
  letter-spacing: 1px;
}

.event-card-body { padding: 18px; }
.event-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.event-card-meta { font-size: 13px; color: #9ab87a; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.pagination a, .pagination span {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: 2px solid var(--lime);
  color: var(--lime);
  text-transform: uppercase;
  transition: all 0.2s;
}
.pagination a:hover, .pagination span.current {
  background: var(--lime);
  color: var(--text);
  opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--dark-alt);
  border-top: 3px solid var(--lime);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col p, .footer-col address {
  font-size: 13.5px;
  color: #9ab87a;
  line-height: 1.8;
  font-style: normal;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 13.5px; color: #9ab87a; }
.footer-col ul li a:hover { color: var(--lime); opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--mid);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #5a7a4a;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 640px) {
  .menu-toggle { display: flex; }

  #primary-navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--dark-alt);
    border-bottom: 2px solid var(--lime);
    padding: 16px;
  }
  #primary-navigation.is-open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: 4px; }
  #primary-navigation ul li a { display: block; padding: 10px 16px; }

  .dates-table td { font-size: 18px; }
}
