/* PIPEDA & Loi 25 Compliant Cookie Consent Styles */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(26, 13, 71, 0.98), rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(10px);
  border-top: 2px solid #8338ec;
  padding: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

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

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
}

.cookie-consent-header h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cookie-consent-header p {
  color: #ccc;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.cookie-consent-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .cookie-consent-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cookie-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.cookie-category:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cookie-category-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #8338ec;
  cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cookie-category-header label {
  flex: 1;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cookie-category-header label strong {
  font-weight: 600;
  color: #fff;
}

.required-badge,
.optional-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
  align-self: flex-start;
}

.required-badge {
  background: linear-gradient(45deg, #ff4757, #ff3838);
  color: white;
}

.optional-badge {
  background: linear-gradient(45deg, #2ed573, #1dd1a1);
  color: white;
}

.cookie-description {
  color: #bbb;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .cookie-consent-actions {
    flex-direction: column;
  }
}

.cookie-consent-actions button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 140px;
}

.btn-accept-all {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
}

.btn-accept-all:hover {
  background: linear-gradient(45deg, #218838, #1ba68c);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-accept-selected {
  background: linear-gradient(45deg, #8338ec, #a855f7);
  color: white;
}

.btn-accept-selected:hover {
  background: linear-gradient(45deg, #6c2bd9, #9333ea);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

.btn-reject-all {
  background: linear-gradient(45deg, #6c757d, #5a6268);
  color: white;
}

.btn-reject-all:hover {
  background: linear-gradient(45deg, #5a6268, #495057);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-more-info {
  background: transparent;
  color: #8338ec;
  border: 2px solid #8338ec;
}

.btn-more-info:hover {
  background: #8338ec;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(131, 56, 236, 0.3);
}

.cookie-consent-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-footer p {
  font-size: 0.8rem;
  color: #aaa;
  margin: 0;
  line-height: 1.5;
}

.cookie-consent-footer a {
  color: #8338ec;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.cookie-consent-footer a:hover {
  color: #a855f7;
  border-bottom-color: #a855f7;
  text-decoration: none;
}

/* Cookie Info Modal */
.cookie-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

.cookie-info-modal.show {
  opacity: 1;
  visibility: visible;
}

.cookie-info-content {
  background: linear-gradient(135deg, rgba(26, 13, 71, 0.98), rgba(0, 0, 0, 0.95));
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 2px solid #8338ec;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  color: white;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-info-modal.show .cookie-info-content {
  transform: scale(1);
}

.cookie-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-info-header h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #fff;
}

.cookie-info-body {
  padding: 2rem;
}

.cookie-info-body h4 {
  color: #8338ec;
  font-size: 1.2rem;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.cookie-info-body h4:first-child {
  margin-top: 0;
}

.cookie-info-body p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookie-info-body ul {
  color: #ccc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.cookie-info-body ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.cookie-info-body ul li strong {
  color: #fff;
}

.cookie-info-body a {
  color: #8338ec;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.cookie-info-body a:hover {
  color: #a855f7;
  border-bottom-color: #a855f7;
}

.cookie-info-footer {
  padding: 1rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-info-footer .cmn-btn {
  padding: 0.75rem 2rem;
  background: linear-gradient(45deg, #8338ec, #a855f7);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-info-footer .cmn-btn:hover {
  background: linear-gradient(45deg, #6c2bd9, #9333ea);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(131, 56, 236, 0.4);
}

/* Cookie Settings Button in Header */
.cookie-settings-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: linear-gradient(45deg, #8338ec, #a855f7);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(131, 56, 236, 0.3);
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
}

.cookie-settings-btn:hover {
  background: linear-gradient(45deg, #6c2bd9, #9333ea);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(131, 56, 236, 0.4);
}

@media (max-width: 768px) {
  .cookie-settings-btn {
    bottom: 1rem;
    left: 1rem;
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .cookie-consent-content {
    padding: 1.5rem;
  }
  
  .cookie-consent-header h3 {
    font-size: 1.25rem;
  }
  
  .cookie-category {
    padding: 1rem;
  }
  
  .cookie-info-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .cookie-info-header,
  .cookie-info-body,
  .cookie-info-footer {
    padding: 1.5rem;
  }
  
  .cookie-info-header {
    padding-bottom: 1rem;
  }
}

/* Accessibility improvements */
.cookie-consent-banner *:focus,
.cookie-info-modal *:focus {
  outline: 2px solid #8338ec;
  outline-offset: 2px;
}

.cookie-category-header input[type="checkbox"]:focus {
  outline: 2px solid #8338ec;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .cookie-consent-banner,
  .cookie-info-modal,
  .cookie-settings-btn {
    display: none !important;
  }
}
