/*
Theme Name: MyTicketCY Theme
Author: MyTicketCY Team
Description: Custom theme for MyTicketCY
Version: 1.1
*/

:root {
  --tm-blue: #026cdf;
  --tm-dark-blue: #004ea3;
  --tm-black: #1f262d;
  --tm-grey: #4b5563;
  --tm-light-grey: #f3f4f6;
  --white: #ffffff;
  --tm-border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--tm-light-grey);
  color: var(--tm-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--tm-blue);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--tm-dark-blue);
  text-decoration: underline;
}

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

/* ====== Header ====== */
.site-header {
  background: var(--tm-blue);
  color: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
}

.site-logo-link:hover {
  text-decoration: none;
  color: var(--white);
  opacity: 0.9;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.site-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  font-style: italic;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  text-decoration: none;
  opacity: 0.9;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--white);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
  }

  #site-navigation.open .nav-links {
    display: flex;
  }

  .nav-links a {
    color: var(--tm-black);
    padding: 15px 24px;
    width: 100%;
    border-bottom: 1px solid var(--tm-light-grey);
  }
}

/* ====== Sections ====== */
.section-header {
  text-align: center;
  margin: 60px auto 40px;
  max-width: 1280px;
  padding: 0 24px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--tm-black);
  margin: 0 0 20px 0;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-header .divider {
  width: 80px;
  height: 6px;
  background: linear-gradient(90deg, var(--tm-blue), var(--tm-dark-blue));
  margin: 0 auto 24px;
  border-radius: 3px;
}

.section-header p {
  font-size: 20px;
  color: var(--tm-grey);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.performance-card {
  background: var(--white);
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.performance-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: #c0c4c8;
}

.performance-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.performance-card-content {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.performance-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--tm-black);
}

.event-info {
  font-size: 14px;
  color: var(--tm-grey);
  margin-bottom: 16px;
}

.ticket-button {
  display: block;
  width: 100%;
  background: var(--tm-blue);
  color: var(--white);
  padding: 10px 0;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  margin: 0 auto;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ticket-button:hover {
  background: var(--tm-dark-blue);
  color: #ffffff !important;
  text-decoration: none;
}

/* Featured Event Premium Styles */
.featured-event-container {
  position: relative;
  width: 100%;
  height: 500px;
  margin: 0;
  /* Margin handled by slider wrapper */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
}

.featured-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 1;
}

.featured-event-container:hover .featured-bg {
  transform: scale(1.05);
}

.featured-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.featured-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  max-width: 800px;
  animation: fadeInUp 0.8s ease-out;
}

.featured-label {
  display: inline-block;
  background: var(--tm-blue);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(2, 108, 223, 0.4);
}

.featured-title {
  font-size: 56px;
  font-weight: 900;
  margin: 0 0 20px 0;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
}

.featured-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.info-item i {
  color: var(--tm-blue);
}

.featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--tm-blue);
  color: #fff !important;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(2, 108, 223, 0.4);
  border: 2px solid transparent;
}

.featured-btn:hover {
  background: transparent;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.featured-btn .arrow {
  transition: transform 0.3s ease;
}

.featured-btn:hover .arrow {
  transform: translateX(5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Featured Slider Styles */
.featured-slider {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.featured-slides-wrapper {
  position: relative;
  height: 500px;
  margin: 40px 0 60px;
}

.featured-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.featured-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

.featured-slide .featured-event-container {
  margin: 0;
  height: 100%;
}

/* Slider Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  background: var(--tm-blue);
  box-shadow: 0 0 15px rgba(2, 108, 223, 0.6);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--tm-blue);
  transform: scale(1.2);
}

/* Grid & Steps Styling */
.grid-3-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.step-box {
  background: var(--white);
  padding: 40px 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--tm-border);
  position: relative;
}

.step-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--tm-blue);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--tm-blue);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 10px rgba(2, 108, 223, 0.3);
}

.step-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--tm-black);
}

.step-box p {
  color: var(--tm-grey);
  line-height: 1.6;
  font-size: 15px;
}

.testimonials-section {
  background: var(--white);
  padding: 60px 24px;
  border-top: 1px solid var(--tm-border);
}

.testimonial-box {
  background: var(--tm-light-grey);
  padding: 24px;
  border-radius: 8px;
}

.testimonial-author {
  font-weight: 700;
  margin-top: 12px;
  color: var(--tm-blue);
}

/* ====== Footer ====== */
.site-footer {
  background: #1f262d;
  color: #cbd5e0;
  padding: 60px 0 0;
  font-size: 14px;
  border-top: 4px solid var(--tm-blue);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 16px 0;
  font-style: italic;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--tm-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  color: #64748b;
}

.footer-bottom p {
  margin: 4px 0;
}

/* ====== WooCommerce ====== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--tm-blue);
  color: var(--white);
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
  border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--tm-dark-blue);
}

.woocommerce table.shop_table {
  border: 1px solid var(--tm-border);
  border-radius: 8px;

  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .featured-event-container {
    height: 400px;
    margin: 20px 0 40px;
    border-radius: 0;
  }

  .featured-slides-wrapper {
    height: 400px;
    margin: 20px 0 40px;
  }

  .featured-title {
    font-size: 36px;
  }

  .featured-info {
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
  }
}