/* ========== COOKIE CONSENT BANNER STYLES ========== */
/* GDPR Compliant Cookie Consent System */

/* Banner Container */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.cookie-consent-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
}

.cookie-consent-container {
  background: var(--bg-secondary, #1a1a1a);
  border-top: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  padding: 0;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 25px;
}

/* Header */
.cookie-consent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-consent-header i {
  font-size: 1.5rem;
  color: var(--accent-primary, #E02020);
}

.cookie-consent-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

/* Text */
.cookie-consent-text {
  color: var(--text-secondary, #b0b0b0);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 15px 0;
}

.cookie-learn-more {
  color: var(--accent-primary, #E02020);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.cookie-learn-more:hover {
  color: var(--accent-light, #ff4444);
  text-decoration: underline;
}

/* Buttons Container */
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Buttons */
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.cookie-btn-accept {
  background: var(--accent-primary, #E02020);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  background: var(--accent-dark, #B81717);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 32, 32, 0.3);
}

.cookie-btn-reject {
  background: var(--bg-tertiary, #252525);
  color: var(--text-primary, #ffffff);
  border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.cookie-btn-reject:hover {
  background: var(--bg-elevated, #2a2a2a);
  border-color: var(--accent-primary, #E02020);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-secondary, #b0b0b0);
  border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.cookie-btn-settings:hover {
  color: var(--text-primary, #ffffff);
  border-color: var(--text-secondary, #b0b0b0);
}

/* Options Container */
.cookie-consent-options {
  background: var(--bg-tertiary, #252525);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid var(--border-primary, rgba(255, 255, 255, 0.1));
}

.cookie-option {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-secondary, rgba(255, 255, 255, 0.05));
}

.cookie-option:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-option:first-child {
  padding-top: 0;
}

/* Custom Checkbox */
.cookie-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.cookie-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cookie-checkbox .checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: var(--bg-secondary, #1a1a1a);
  border: 2px solid var(--border-primary, rgba(255, 255, 255, 0.2));
  border-radius: 5px;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.cookie-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background: var(--accent-primary, #E02020);
  border-color: var(--accent-primary, #E02020);
}

.cookie-checkbox input[type="checkbox"]:disabled ~ .checkmark {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-checkbox .checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cookie-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
  display: block;
}

.cookie-checkbox:hover .checkmark {
  border-color: var(--accent-primary, #E02020);
}

.cookie-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cookie-label strong {
  color: var(--text-primary, #ffffff);
  font-size: 0.95rem;
}

.cookie-label small {
  color: var(--text-tertiary, #808080);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Save Container */
.cookie-consent-save {
  margin-top: 10px;
  justify-content: center;
}

.cookie-btn-save {
  background: var(--color-success, #28a745);
  color: #ffffff;
  width: 100%;
  max-width: 300px;
}

.cookie-btn-save:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Cookie Settings Link (for footer) */
.cookie-settings-link {
  cursor: pointer;
  color: var(--text-secondary, #b0b0b0);
  transition: color 0.2s;
}

.cookie-settings-link:hover {
  color: var(--accent-primary, #E02020);
}

/* ========== LIGHT THEME SUPPORT ========== */
html[data-theme="light"] .cookie-consent-container {
  background: #ffffff;
  border-top-color: #e0e0e0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .cookie-consent-header h3 {
  color: #1a1a1a;
}

html[data-theme="light"] .cookie-consent-text {
  color: #666666;
}

html[data-theme="light"] .cookie-consent-options {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

html[data-theme="light"] .cookie-checkbox .checkmark {
  background: #ffffff;
  border-color: #cccccc;
}

html[data-theme="light"] .cookie-label strong {
  color: #1a1a1a;
}

html[data-theme="light"] .cookie-label small {
  color: #888888;
}

html[data-theme="light"] .cookie-btn-reject {
  background: #f0f0f0;
  color: #1a1a1a;
  border-color: #cccccc;
}

html[data-theme="light"] .cookie-btn-reject:hover {
  background: #e5e5e5;
}

html[data-theme="light"] .cookie-btn-settings {
  color: #666666;
  border-color: #cccccc;
}

html[data-theme="light"] .cookie-btn-settings:hover {
  color: #1a1a1a;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .cookie-consent-content {
    padding: 15px 20px;
  }

  .cookie-consent-header h3 {
    font-size: 1.1rem;
  }

  .cookie-consent-text {
    font-size: 0.9rem;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .cookie-consent-options {
    padding: 12px;
  }

  .cookie-label strong {
    font-size: 0.9rem;
  }

  .cookie-label small {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .cookie-consent-content {
    padding: 12px 15px;
  }

  .cookie-consent-header {
    margin-bottom: 10px;
  }

  .cookie-consent-header i {
    font-size: 1.3rem;
  }

  .cookie-consent-header h3 {
    font-size: 1rem;
  }

  .cookie-consent-text {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .cookie-btn {
    font-size: 0.85rem;
    padding: 10px 15px;
  }
}
