/* ============================================
   SehaNova Cookie Consent Styles
   GDPR Compliant Cookie Banner & Settings
   ============================================ */

/* Cookie Banner - Bottom Right */
#cookie-banner {
  position: fixed;
  bottom: -500px;
  right: 20px;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 24px;
  z-index: 9999;
  transition: bottom 0.4s ease-in-out;
  font-family: 'Inter Tight', sans-serif;
}

#cookie-banner.show {
  bottom: 20px;
}

#cookie-banner-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #03030F;
  margin: 0 0 12px 0;
}

#cookie-banner-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #666666;
  margin: 0 0 20px 0;
}

#cookie-banner-content a {
  color: #1D1EE3;
  text-decoration: underline;
}

#cookie-banner-content a:hover {
  color: #0F0FA8;
}

/* Cookie Banner Buttons */
.cookie-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  font-family: 'Inter Tight', sans-serif;
}

.cookie-btn-primary {
  background: #1D1EE3;
  color: #ffffff;
}

.cookie-btn-primary:hover {
  background: #0F0FA8;
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: transparent;
  color: #03030F;
  border: 2px solid #E5E5E5;
}

.cookie-btn-secondary:hover {
  background: #F5F5F5;
}

.cookie-btn-text {
  background: transparent;
  color: #666666;
  border: none;
  padding: 8px 12px;
}

.cookie-btn-text:hover {
  color: #03030F;
  background: transparent;
}

/* Cookie Settings Tab (Small tab when banner is closed) */
#cookie-settings-tab {
  position: fixed;
  bottom: 20px;
  right: -60px;
  background: #1D1EE3;
  color: #ffffff;
  padding: 10px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 9998;
  transition: right 0.3s ease;
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

#cookie-settings-tab.show {
  right: 0;
}

#cookie-settings-tab:hover {
  background: #0F0FA8;
  right: 5px;
  transform: scale(1.05);
}

#cookie-settings-tab::before {
  content: "🍪";
}

/* Cookie Settings Modal */
#cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#cookie-settings-modal.show {
  display: flex;
}

.cookie-modal-content {
  background: #ffffff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

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

.cookie-modal-header {
  margin-bottom: 24px;
}

.cookie-modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #03030F;
  margin: 0 0 8px 0;
}

.cookie-modal-header p {
  font-size: 14px;
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

#cookie-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #666666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#cookie-modal-close:hover {
  background: #F5F5F5;
  color: #03030F;
}

.cookie-category {
  padding: 20px;
  background: #F9F9F9;
  border-radius: 12px;
  margin-bottom: 16px;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cookie-category-title {
  flex: 1;
}

.cookie-category-title h4 {
  font-size: 16px;
  font-weight: 600;
  color: #03030F;
  margin: 0 0 4px 0;
}

.cookie-category-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #E5E5E5;
  color: #666666;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 8px;
}

.cookie-category-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #E5E5E5;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #1D1EE3;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E5E5;
  display: flex;
  gap: 12px;
}

.cookie-modal-footer .cookie-btn {
  flex: 1;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  #cookie-banner {
    right: 10px;
    left: 10px;
    max-width: none;
    bottom: -500px;
  }

  #cookie-banner.show {
    bottom: 10px;
  }

  .cookie-modal-content {
    padding: 24px;
    margin: 0 10px;
  }

  .cookie-modal-header h2 {
    font-size: 20px;
    padding-right: 32px;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  #cookie-settings-tab {
    font-size: 20px;
    padding: 8px;
    width: 42px;
    height: 42px;
  }
}

@media screen and (max-width: 480px) {
  #cookie-banner-content h3 {
    font-size: 18px;
  }

  #cookie-banner-content p {
    font-size: 13px;
  }

  .cookie-btn {
    font-size: 13px;
    padding: 10px 16px;
  }

  .cookie-category {
    padding: 16px;
  }

  .cookie-category-title h4 {
    font-size: 15px;
  }
}

/* Print styles - hide cookie elements */
@media print {
  #cookie-banner,
  #cookie-settings-tab,
  #cookie-settings-modal {
    display: none !important;
  }
}
