/* Local Squad Detail Page Styles */

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: #f4f4f4;
}

.hero-background {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-background.no-image {
  background-color: #00243E;
  height: 450px;
}

/* Title Section */
.title-section {
  background-color: white;
  padding: 30px 20px;
}

.title-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fade-in 0.5s ease-in;
}

.squad-title {
  font-size: 32px;
  font-weight: bold;
  color: #1C1C1C;
  margin-bottom: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-divider {
  width: 80px;
  height: 4px;
  background-color: #BE930B;
  border-radius: 2px;
  margin: 0 auto 8px;
}

/* Event Info Section */
.event-info-section {
  background-color: white;
  padding: 0 20px;
}

.event-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 20px 0;
}

.event-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: #BE930B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 14px;
  color: rgba(28, 28, 28, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  color: #1C1C1C;
  font-weight: 600;
}

/* Event Note Section */
.event-note-section {
  background-color: white;
  padding: 30px 20px;
}

/* Event Details Section */
.event-details-section {
  background-color: white;
  padding: 30px 20px;
}

.section-heading {
  font-size: 28px;
  font-weight: bold;
  color: #1C1C1C;
  margin-bottom: 24px;
  word-break: break-word;
}

.event-note-content {
  font-size: 16px;
  color: #1C1C1C;
  line-height: 1.6;
  word-break: break-word;
}

.event-details-content {
  font-size: 16px;
  color: #1C1C1C;
  line-height: 1.6;
  word-break: break-word;
}

/* Photo Gallery Section */
.photo-gallery-section {
  background-color: #F4F4F4;
  padding: 30px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Join Now Section */
.join-section {
  background-color: white;
  padding: 30px 20px;
  text-align: center;
}

.join-btn {
  background-color: #BE930B;
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.join-btn:hover {
  background-color: #D4A50F;
}

/* Message Container */
.message-container {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.message {
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  animation: messageFadeIn 0.3s ease-out;
  width: auto;
  max-width: 90%;
}

.message.error {
  background-color: #fef0f0;
  border: 1px solid #fde2e2;
  color: #f56c6c;
}

.message.success {
  background-color: #f0f9eb;
  border: 1px solid #e1f3d8;
  color: #67c23a;
}

.message.info {
  background-color: #ecf5ff;
  border: 1px solid #d9ecff;
  color: #409eff;
}

.message.warning {
  background-color: #fdf6ec;
  border: 1px solid #faecd8;
  color: #e6a23c;
}

.message-content {
  flex: 1;
  font-size: 14px;
}

.message-close {
  margin-left: 10px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.3s;
  pointer-events: auto;
}

.message-close:hover {
  opacity: 1;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .hero-background {
    height: 450px;
  }
  
  .hero-background.no-image {
    height: 450px;
  }
  
  .title-section {
    padding: 20px;
  }
  
  .squad-title {
    font-size: 42px;
  }
  
  .event-note-section {
    padding: 40px 20px;
  }
  
  .event-details-section {
    padding: 40px 20px;
  }
  
  .photo-gallery-section {
    padding: 40px 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .join-section {
    padding: 40px 20px;
  }
  
  .join-btn {
    font-size: 16px;
  }
  

  
  .section-heading {
    font-size: 36px;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .squad-title {
    font-size: 28px;
  }
  
  .section-heading {
    font-size: 24px;
  }
  
  .event-info-container {
    flex-direction: column;
    align-items: center;
  }
  
  .event-info-item {
    flex: 1 1 100%;
    justify-content: center;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .squad-title {
    font-size: 24px;
    white-space: normal;
  }
}
