/* Huvudcontainer för tävlingsknappar */
#competition-buttons {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Tävlingsknappar styling */
.competition-button {
  display: block;
  width: 50%;
  margin: 15px auto;
  padding: 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  min-height: 80px;
  position: relative;
}

.competition-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.competition-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Innehållsrad (flex container) */
.competition-content-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 80px;
  padding: 20px 15px;
  box-sizing: border-box;
}

/* Logga-kolumn (vänster) */
.competition-logo-col {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.club-loggo {
  max-width: 110px;
  max-height: 110px;
  width: 110px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* Info-kolumn (höger) */
.competition-info-col {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.4;
}

.competition-info-col strong {
  font-size: 1.3em;
  margin-bottom: 4px;
  display: block;
}

/* Pågående-etikett */
.ongoing-label {
  background: #1bbf1b !important;
  color: #fff !important;
  font-size: 0.8em !important;
  padding: 4px 12px !important;
  border-radius: 12px !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  letter-spacing: 0.04em !important;
  font-weight: 600 !important;
}

/* Rubriker */
h1, h2 {
  color: #333;
  font-size: 1.4em;
  margin: 30px 0 15px 0;
  text-align: center;
  font-weight: 600;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1 {
  font-size: 3em;
  margin: 30px 0;
  padding-top: 90px
}

h2:first-child {
  margin-top: 0;
}

/* Responsiv design */
@media (max-width: 768px) {
  #competition-buttons {
    padding: 15px;
  }
  
  .competition-content-row {
    padding: 15px 12px;
  }
  
  .competition-logo-col {
    flex: 0 0 90px;
    margin-right: 15px;
  }
  
  .club-loggo {
    max-width: 85px;
    max-height: 85px;
    width: 85px;
  }
  
  .competition-info-col strong {
    font-size: 1.2em;
  }
  
  .ongoing-label {
    font-size: 0.7em !important;
    padding: 3px 8px !important;
    top: 8px !important;
    right: 8px !important;
  }
}

@media (max-width: 480px) {
  .competition-content-row {
    padding: 10px;
    min-height: 70px;
  }
  
  .competition-logo-col {
    flex: 0 0 70px;
    margin-right: 12px;
  }
  
  .club-loggo {
    max-width: 65px;
    max-height: 65px;
    width: 65px;
  }
  
  .competition-info-col strong {
    font-size: 1.1em;
  }
}

/* Morot uppe i höger hörn av sidan */
.morot-horna {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 150px;
  height: auto;
  z-index: 100;
}

/* Morot längst ner - centrerad */
.morot-botten {
  display: none; /* Dold som standard */
  width: 180px;
  height: auto;
  margin: 20px auto;
  display: block;
}

/* Responsiv styling för morötter */
@media (max-width: 768px) {
  .morot-horna {
    display: none; /* Dölj morot uppe på smala skärmar */
  }
  
  .morot-botten {
    display: block; /* Visa morot nere på smala skärmar */
  }
}

@media (min-width: 769px) {
  .morot-botten {
    display: none; /* Dölj morot nere på breda skärmar */
  }
}

/* Cookie Notice */
.cookie-notice {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.98);
  color: #1a1a1a;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  max-width: 420px;
  width: calc(100% - 40px);
  overflow: hidden;
  animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cookie-icon {
  font-size: 48px;
  text-align: center;
  padding: 24px 24px 16px 24px;
  background: #fa7a03;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.cookie-text {
  padding: 0 28px 24px 28px;
}

.cookie-text h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.cookie-content p {
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  font-weight: 400;
}

.cookie-btn {
  background: #fa7a03;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cookie-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cookie-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.cookie-btn:active {
  transform: translateY(0) scale(0.98);
}

@media (max-width: 600px) {
  .cookie-notice {
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: none;
  }
  
  .cookie-text {
    padding: 0 20px 20px 20px;
  }
  
  .cookie-text h3 {
    font-size: 18px;
  }
  
  .cookie-content p {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .cookie-btn {
    padding: 15px;
  }
}
