/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: var(--spacing-lg);
  z-index: 1001;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-text h3 {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: white;
}

.cookie-banner-text p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: #D1D5DB;
  line-height: var(--line-height-normal);
}

.cookie-banner-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: white;
}

.cookie-banner-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 100px;
}

.cookie-btn-accept {
  background: var(--primary-color);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--navy);
}

.cookie-btn-reject {
  background: transparent;
  color: #D1D5DB;
  border: 1px solid #4B5563;
}

.cookie-btn-reject:hover {
  background: #374151;
  color: white;
}

.cookie-btn-customize {
  background: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.cookie-btn-customize:hover {
  background: var(--secondary-color);
  color: var(--text-primary);
}

.cookie-policy-link {
  color: var(--secondary-color);
  text-decoration: underline;
  font-size: var(--font-size-sm);
  margin-left: var(--spacing-md);
}

.cookie-policy-link:hover {
  color: white;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1002;
  overflow-y: auto;
}

.cookie-preferences-content {
  background: white;
  margin: 2% auto;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
}

.cookie-preferences-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-preferences-header h2 {
  margin: 0;
  color: var(--text-primary);
}

.cookie-preferences-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-preferences-close:hover {
  color: var(--text-primary);
}

.cookie-preferences-body {
  padding: var(--spacing-xl);
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-category {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--light-gray);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.cookie-category h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.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: #ccc;
  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: var(--primary-color);
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background-color: #e5e7eb;
  cursor: not-allowed;
}

.cookie-category-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  margin: 0;
}

.cookie-preferences-footer {
  padding: var(--spacing-xl);
  border-top: 1px solid var(--light-gray);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
}

.cookie-preferences-footer .cookie-btn {
  min-width: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-banner-actions {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-preferences-content {
    margin: 5% auto;
    width: 95%;
  }
  
  .cookie-preferences-header,
  .cookie-preferences-body,
  .cookie-preferences-footer {
    padding: var(--spacing-lg);
  }
  
  .cookie-preferences-footer {
    flex-direction: column;
  }
  
  .cookie-preferences-footer .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: var(--spacing-md);
  }
  
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}