/**
 * Cookie Consent Styles for coldboot.studio
 * GDPR and CCPA compliant cookie banner styling
 */

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background-color: #1c1c2e;
  color: white;
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  transition: transform 0.4s ease-in-out, bottom 0.4s ease-in-out;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  gap: 1rem;
}

.cookie-consent.active {
  bottom: 0;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--neon-blue);
}

.cookie-consent-text p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-settings-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cookie-settings-content {
  background-color: #1c1c2e;
  color: white;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slide-up 0.3s forwards;
}

@keyframes slide-up {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-header h3 {
  margin: 0;
  color: var(--neon-blue);
}

.cookie-settings-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.cookie-settings-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.cookie-settings-section {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-settings-section:last-of-type {
  border-bottom: none;
}

.cookie-settings-description {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Toggle Switch */
.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 1rem;
}

.cookie-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: .3s;
  border-radius: 34px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .cookie-toggle-slider {
  background-color: var(--neon-blue);
}

input:disabled + .cookie-toggle-slider {
  background-color: var(--neon-blue);
  opacity: 0.5;
  cursor: not-allowed;
}

input:checked + .cookie-toggle-slider:before,
input:disabled + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-settings-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  
  .cookie-consent-buttons {
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
  }
  
  .cookie-settings-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .cookie-settings-footer {
    flex-direction: column;
  }
  
  .cookie-settings-footer button {
    width: 100%;
  }
}
