/* ==========================================================================
   radiopro.gr - Cookie Consent Banner & Settings Modal (GDPR / ePrivacy)
   ========================================================================== */

.cookie-banner-glass {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px 24px;
  z-index: 99990;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: slideUpCookie 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  max-width: calc(100vw - 48px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #F8FAFC;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .cookie-banner-glass {
    left: auto;
    right: 24px;
    max-width: 480px;
  }
}

body:has(#persistentPlayer:not(.translate-y-full)) .cookie-banner-glass {
  bottom: 84px;
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #CBD5E1;
  margin: 0;
}

.cookie-text strong {
  color: #FFFFFF;
}

.cookie-text a {
  color: #FF5A36;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.cookie-btn {
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cookie-btn-accept {
  background: #C93A17;
  color: #FFFFFF;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 90, 54, 0.35);
}

.cookie-btn-accept:hover {
  background: #A83013;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 90, 54, 0.45);
}

.cookie-btn-reject {
  background: #F8FAFC;
  color: #0F172A;
  border: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

.cookie-btn-reject:hover {
  background: #E2E8F0;
  transform: translateY(-1px);
}

/* Accept and Reject carry equal weight: same size, font and shape. */
.cookie-btn-accept,
.cookie-btn-reject {
  min-width: 8.5rem;
  padding-left: 14px;
  padding-right: 14px;
  text-align: center;
}

.cookie-btn-settings {
  background: transparent;
  color: #94A3B8;
  border: none;
  padding-inline: 8px;
  font-weight: 600;
}

.cookie-btn-settings:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cookie-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 22px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: modalScaleCookie 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #F8FAFC;
}

@media (min-width: 640px) {
  .cookie-modal-card {
    padding: 32px;
  }
}

.cookie-modal-card h3 {
  font-size: 1.25rem;
  margin: 0 0 18px 0;
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 18px;
}

.cookie-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-option-info h4 {
  font-size: 0.88rem;
  margin: 0 0 4px 0;
  color: #FFFFFF;
  font-weight: 700;
}

.cookie-option-info p {
  font-size: 0.76rem;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .25s ease;
  border-radius: 24px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #FFFFFF;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #FF5A36;
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.45;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes slideUpCookie {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes modalScaleCookie {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
