/* Custom styles for Bluefin Tournament */

/* Custom animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Custom utility classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Timeline component styles */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 2px;
  background-color: #0ea5e9;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #0ea5e9;
  border: 2px solid white;
}

/* Accordion styles */
.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
  cursor: pointer;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.active {
  max-height: 500px;
}

/* Gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* Wave effect for hero section */
.wave-container {
  position: relative;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('../images/wave.svg');
  background-size: 1000px 100px;
}

.wave.wave1 {
  animation: animate 30s linear infinite;
  z-index: 1000;
  opacity: 1;
  animation-delay: 0s;
  bottom: 0;
}

.wave.wave2 {
  animation: animate2 15s linear infinite;
  z-index: 999;
  opacity: 0.5;
  animation-delay: -5s;
  bottom: 10px;
}

.wave.wave3 {
  animation: animate 30s linear infinite;
  z-index: 998;
  opacity: 0.2;
  animation-delay: -2s;
  bottom: 15px;
}

.wave.wave4 {
  animation: animate2 5s linear infinite;
  z-index: 997;
  opacity: 0.7;
  animation-delay: -5s;
  bottom: 20px;
}

@keyframes animate {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}

@keyframes animate2 {
  0% { background-position-x: 0; }
  100% { background-position-x: -1000px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 1.5rem;
  }
  
  .timeline-item::before {
    left: -2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }


.upanelx-4 {
    padding-top: 3rem !important;
    padding-bottom: 2.4rem !important;
}
.upanely-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}
.bg-black\/50 {
  background-color: rgb(35 102 157 / 45%);
}
}
.logo-cell {
  width: 220px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-cell img {
  max-height: 84px;
  max-width: 100%;
  object-fit: contain;
}

.tab-btn {
  padding: 1px 2px; max-width: 100%;
  border-radius: 6px; max-width: 100%;
  background-color: #e5e7eb; /* açık gri */
  color: #1e3a8a;
  transition: 0.3s;
}

.tab-btn:hover:not(:disabled) {
  background-color: #d1d5db;
}

.tab-btn.active {
  background-color: #1e3a8a !important; /* mavi blok */
  color: white !important;
  font-weight: 700;
}

.form-input {
  width: 100%;
  padding: 1px 2px;
  background-color: #f3f4f6; /* açık gri */
  border: 1px solid #cbd5e1; /* hafif çizgi */
  border-radius: 8px;
  font-size: 16px;
  color: #1e3a8a; /* lacivert yazı */
  outline: none;
  transition: 0.25s;
}

/* Tıklayınca aktif görünüm */
.form-input:focus {
  background-color: #ffffff;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.3);
}

.floating-group {
  position: relative;
  margin-bottom: 20px;
}

.floating-input {
  width: 100%;
  padding: 16px 12px 10px;
  background-color: #f3f4f6;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: all 0.25s;
}

.floating-label {
  position: absolute;
  left: 12px;
  top: 14px;
  font-size: 15px;
  color: #6b7280;
  pointer-events: none;
  transition: all 0.25s;
}

/* Odaklanınca */
.floating-input:focus {
  border-color: #1e3a8a;
  background-color: #fff;
}

/* İçinde yazı olunca veya focus olunca */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  background: white;
  padding: 0 4px;
  color: #1e3a8a;
}



/* Sponsor Grid */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Sponsor Logo Kutusu */
.sponsor-logo {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.PLATİN-sponsor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  align-items: center;
  justify-items: center;
  max-width: 200px;
  margin: 10px;
  padding: 20px;
   align-items: center;
  justify-items: center;
}


/* Ana Sponsor */
.main-sponsor {
  grid-column: span 2;
  grid-row: span 2;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 5 / 4;
}

.main-sponsor img,
.PLATİN-sponsor img {
  max-width: 90%;
  max-height: 90%;
}

/* Mobil Görünüm */
@media (max-width: 640px) {
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 10px;
  }

  .sponsor-logo {
    max-width: 140px;
    padding: 10px;
  }

  .main-sponsor,
  .PLATİN-sponsor {
    grid-column: span 1;
    grid-row: span 1;
    max-width: 200px;
    aspect-ratio: 4 / 3;
  }

  .main-sponsor img,
  .PLATİN-sponsor img {
    max-width: 90%;
    max-height: 90%;
  }
}


/* Sekmelerin küçük ekranda alt alta geçmesini sağla */
.tab-btn {
  white-space: normal;   /* Uzun metinlerin alt satıra geçmesine izin ver */
  flex: 1 1 auto;        /* Genişliği esnek yap */
  min-width: 0;          /* Esnek genişliğin düzgün çalışması için */
}

@media (max-width: 640px) {
  .flex.gap-3 {
    flex-wrap: wrap;     /* Mobilde satır kaymasına izin ver */
    gap: 0.5rem;         /* Butonlar arasında daha az boşluk bırak */
  }
}
