/* assets/css/custom.css - Custom styling for Istanbul Festivali */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand-red: #ED1B24;
  --brand-red-hover: #C9121A;
  --brand-navy: #0E265C;
  --brand-dark: #121212;
  --brand-light: #F5F5F5;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Red Button Styling */
.bg-custom-red {
  background-color: var(--brand-red);
}
.bg-custom-red:hover, .hover\:bg-custom-red-hover:hover {
  background-color: var(--brand-red-hover);
}
.text-custom-red {
  color: var(--brand-red);
}
.text-custom-red:hover, .hover\:text-custom-red-hover:hover {
  color: var(--brand-red-hover);
}
.border-custom-red {
  border-color: var(--brand-red);
}
.text-custom-black {
  color: #1a1a1a;
}

/* Event Tile Cards Grid */
.event-carts {
  position: relative;
  overflow: hidden;
  border-radius: 0px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-carts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.event-carts:hover img {
  transform: scale(1.06);
}

.event-carts .event-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
  transition: padding-bottom 0.3s ease, color 0.3s ease;
}

.event-carts:hover .event-text {
  padding-bottom: 1.25rem;
  color: #ED1B24;
}

/* Sticky Bottom Bar Shadow */
.shadow-sticky {
  box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.12);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* Smooth Transitions */
.transition-all-300 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   GLOBAL HOVER EFFECTS FOR ALL BUTTONS & LINKS
   ============================================= */

/* Header Navigation Links Hover Effect (Matching Screenshot) */
header nav a, header .horizontal-menu a, header a.text-gray-800 {
  transition: color 0.2s ease, font-weight 0.2s ease;
}

header nav a:hover, header .horizontal-menu a:hover, header a.text-gray-800:hover {
  color: #ED1B24 !important;
}

/* Active Page Highlight */
.nav-link-active {
  color: #ED1B24 !important;
  font-weight: 700 !important;
}

/* All Primary Red Buttons Hover Animation */
a.bg-custom-red, button.bg-custom-red, 
a[class*="bg-[#E1251B]"], button[class*="bg-[#E1251B]"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
}

a.bg-custom-red:hover, button.bg-custom-red:hover, 
a[class*="bg-[#E1251B]"]:hover, button[class*="bg-[#E1251B]"]:hover {
  background-color: #C9121A !important;
  box-shadow: 0 4px 14px rgba(237, 27, 36, 0.4) !important;
  transform: translateY(-1.5px);
}

/* Secondary Gray Buttons Hover Effect */
button.bg-gray-200, a.bg-gray-200, button.bg-gray-100 {
  transition: all 0.25s ease !important;
}

button.bg-gray-200:hover, a.bg-gray-200:hover, button.bg-gray-100:hover {
  background-color: #ED1B24 !important;
  color: #ffffff !important;
  border-color: #ED1B24 !important;
  box-shadow: 0 4px 12px rgba(237, 27, 36, 0.3) !important;
}

/* Interactive Seat Buttons Hover */
.seat-btn {
  transition: all 0.2s ease;
}
.seat-btn:hover:not([disabled]) {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Accordion Rows Hover */
.ticket-event-card {
  cursor: pointer;
}
.ticket-event-card > div {
  transition: background-color 0.15s ease;
}
.ticket-event-card:hover > div {
  background-color: #f9f9f9;
}

/* Date badge in red */
.ticket-event-date {
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
}

/* Kombine icon */
.flex-ticket-event-icon img {
  width: 44px;
  height: auto;
}
@media (min-width: 768px) {
  .flex-ticket-event-icon img {
    width: 56px;
  }
}

/* Border color between date and info */
.border-border-color {
  border-color: #e5e7eb;
}
@media (min-width: 768px) {
  .border-border-color {
    border-color: #4b5563;
  }
}

/* Stepper icon text */
.ticket-icon-text {
  color: #3730a3;
  font-weight: 700;
  font-size: 0.75rem;
  margin-top: 2px;
}
@media (min-width: 640px) {
  .ticket-icon-text {
    font-size: 1rem;
  }
}

/* Step active/inactive tint */
.step-view-group img[src*="inactive"] {
  opacity: 0.5;
}
.step-view-group span {
  color: #9ca3af;
  font-weight: 500;
}
li.text-indigo-600 .step-view-group span {
  color: #3730a3;
  font-weight: 700;
}

/* Ticket accordion */
.accordion-wrapper-ticket {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 0;
}
.accordion-title-ticket {
  cursor: pointer;
}
.accordion-title-ticket p {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

/* Sold out opacity */
.opacity-45 {
  opacity: 0.45;
}

/* Discounted price color */
.text-discounted-price {
  color: #9ca3af;
}

/* Adet seç dropdown */
.select-ticket {
  cursor: pointer;
  outline: none;
}
.select-ticket:focus {
  outline: 2px solid #ED1B24;
}
.animatedSelect {
  animation: pulse 0.3s ease;
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Mobile viewport helper */
@media (max-width: 639px) {
  .mobile\:text-sm { font-size: 0.875rem; }
  .mobile\:text-base { font-size: 1rem; }
  .mobile\:w-1\/2 { width: 50%; }
  .mobile\:pl-2 { padding-left: 0.5rem; }
  .mobile\:pt-3 { padding-top: 0.75rem; }
  .mobile\:flex-col { flex-direction: column; }
  .mobile\:pb-20 { padding-bottom: 5rem; }
  .mobile\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
  .mobile\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .mobile\:py-4 { padding-top: 1rem; padding-bottom: 1rem; }
  .mobile\:border-l-0 { border-left-width: 0; }
  .mobile\:justify-between { justify-content: space-between; }
  .mobile\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
  .mobile\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
  .mobile\:w-3\/12 { width: 25%; }
}

/* Animated Multi-Color Gradient Background */
@keyframes animatedGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-rainbow-gradient {
  background: linear-gradient(-45deg, #d32f2f, #7b1fa2, #1976d2, #388e3c, #f57c00, #d32f2f);
  background-size: 400% 400%;
  animation: animatedGradient 10s ease infinite;
}

/* Logo Preloader Fill Animation */
.preloader-fill-img {
  animation: logoFillAnim 1.2s ease-in-out infinite alternate;
}

@keyframes logoFillAnim {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Live Site Bilet Seç Accordion Ticket Card Border Colors & Readability Styling */
.accordion-wrapper-ticket {
  position: relative;
  background-color: #ffffff;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
  border-radius: 0px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.accordion-wrapper-ticket:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.accordion-wrapper-ticket:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: #68a547;
  z-index: 2;
}
.accordion-wrapper-ticket.genel-izleyici:before {
  background-color: #68a547;
}
.accordion-wrapper-ticket.sahne-onu:before {
  background-color: #ba0091;
}
.accordion-wrapper-ticket.tribun:before {
  background-color: #03b1e3;
}
.accordion-wrapper-ticket.tribun-b:before {
  background-color: #e30000;
}
.accordion-wrapper-ticket.vip:before {
  background-color: #ffa800;
}

.accordion-title-ticket {
  font-weight: 600;
  cursor: default;
  color: #e1251b;
  padding: 0.85rem 1rem 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff !important;
}

.select-ticket {
  cursor: pointer;
  background-color: #E1251B;
  color: #ffffff !important;
  font-weight: 700;
  padding: 8px 24px 8px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  direction: rtl;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right .6em top 50%;
  background-size: .55em auto;
  border-radius: 0px;
}
.select-ticket:focus-visible {
  outline: none;
}
.select-ticket option {
  background-color: #E1251B;
  color: #ffffff !important;
  direction: ltr;
  text-align: right;
}
