/* Cookie Banner Styles - Turrut Style */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e243a, #2a3052);
  color: white;
  padding: 20px;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
  transform: translateY(0);
}

/* Cookie Banner Close Button */
.cookie-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.cookie-close-btn:hover {
  background: rgba(255,255,255,0.1);
  opacity: 1;
  transform: scale(1.1);
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-info h4 {
  margin: 0 0 8px 0;
  color: var(--main-color);
  font-size: 18px;
}

.cookie-info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.cookie-info a {
  color: var(--main-color);
  text-decoration: none;
}

.cookie-info a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  align-items: center;
}

.cookie-banner-actions .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 80px;
}

.cookie-banner-actions .btn-accept {
  background: #28a745 !important; /* Simple green */
  color: white;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
}

.cookie-banner-actions .btn-accept:hover {
  background: #218838 !important;
  transform: translateY(-1px);
}

.cookie-banner-actions .btn-reject {
  background: #6c757d !important; /* Standard gray */
  color: white !important;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
}

.cookie-banner-actions .btn-reject:hover {
  background: #5a6268 !important;
  transform: translateY(-1px);
}

.btn-manage {
  background: #6c757d !important; /* Same as reject - normal looking */
  color: white !important;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
}

.btn-manage:hover {
  background: #5a6268 !important;
  transform: translateY(-1px);
}

/* Cookie Notification Styles */
.cookie-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transition: transform 0.3s ease;
  max-width: 300px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cookie-notification.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-notification.success {
  background: linear-gradient(135deg, #28a745, #20c997);
}

.cookie-notification.info {
  background: linear-gradient(135deg, #17a2b8, #6610f2);
}

/* Cookie Button Click States */
.cookie-banner-actions .btn-accept.clicked {
  background: #28a745 !important; /* Light green */
  color: white !important;
  box-shadow: 0 0 20px #28a745 !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease !important;
}

.cookie-banner-actions .btn-reject.clicked {
  background: #dc3545 !important; /* Bold red */
  color: white !important;
  box-shadow: 0 0 20px #dc3545 !important;
  transform: scale(1.05) !important;
  transition: all 0.3s ease !important;
}

/* Cookie Status Message */
.cookie-status-message {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1e243a, #2a3052);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.cookie-status-message.show {
  opacity: 1;
}

.cookie-status-message.accepted {
  border-left: 4px solid #28a745;
}

.cookie-status-message.rejected {
  border-left: 4px solid #dc3545;
}

/* Cookie Modal Styles */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.cookie-modal-content {
  background: linear-gradient(135deg, #1e243a, #2a3052);
  border-radius: 12px;
  max-width: 600px;
  max-height: 90vh;
  width: 90%;
  color: white;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-modal-header {
  padding: 20px 25px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  margin: 0;
  color: var(--main-color);
  font-size: 22px;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: scale(1.1);
}

.cookie-modal-body {
  padding: 20px 25px;
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-modal-body > p {
  margin: 0 0 20px 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-category {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  margin-bottom: 10px;
}

.cookie-category-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.cookie-category-toggle.disabled {
  cursor: default;
  opacity: 0.8;
}

.cookie-category-toggle input[type="checkbox"] {
  position: relative;
  width: 50px;
  height: 25px;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cookie-category-toggle input[type="checkbox"]:checked {
  background: #17a2b8;
}

.cookie-category-toggle input[type="checkbox"]:disabled {
  background: #28a745 !important;
  cursor: not-allowed;
}

.cookie-category-toggle input[type="checkbox"]:before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 21px;
  height: 21px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-category-toggle input[type="checkbox"]:checked:before {
  left: 27px;
}

.cookie-category-toggle strong {
  font-size: 16px;
  color: white;
}

.required-badge {
  background: #28a745;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.cookie-category-description {
  margin: 8px 0 12px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-details {
  margin-top: 10px;
}

.cookie-details summary {
  cursor: pointer;
  color: var(--main-color);
  font-weight: 500;
  padding: 5px 0;
  outline: none;
  list-style: none;
}

.cookie-details summary::-webkit-details-marker {
  display: none;
}

.cookie-details summary:before {
  content: '▶';
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.cookie-details[open] summary:before {
  transform: rotate(90deg);
}

.cookie-list {
  margin-top: 10px;
  padding-left: 15px;
}

.cookie-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid var(--main-color);
}

.cookie-item:last-child {
  margin-bottom: 0;
}

.cookie-item strong {
  color: var(--main-color);
  font-size: 13px;
}

.cookie-item small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  display: block;
  margin-top: 2px;
}

.cookie-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal-footer .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
}

.cookie-modal-footer .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-modal-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.cookie-modal-footer .btn-accept {
  background: #17a2b8;
  color: white;
}

.cookie-modal-footer .btn-accept:hover {
  background: #138496;
  transform: translateY(-1px);
}

/* Enhanced Cookie Notification */
.cookie-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  transition: transform 0.3s ease;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border-left: 4px solid transparent;
}

.cookie-notification.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-notification.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-left-color: #ffffff;
}

.cookie-notification.info {
  background: linear-gradient(135deg, #17a2b8, #6610f2);
  border-left-color: #ffffff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .cookie-info {
    margin-bottom: 0;
  }
  
  .cookie-info h4 {
    font-size: 16px;
  }
  
  .cookie-info p {
    font-size: 13px;
  }
  
  .cookie-banner-actions {
    justify-content: center;
    flex-direction: row;
  }
  
  .cookie-banner-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 70px;
  }
  
  /* Reorder buttons on mobile: Only Necessary - Accept All - Customize */
  .cookie-banner-actions .btn-reject {
    order: 1;
  }
  
  .cookie-banner-actions .btn-accept {
    order: 2;
  }
  
  .cookie-banner-actions .btn-manage {
    order: 3;
  }
  
  .cookie-notification {
    bottom: 120px;
    left: 10px;
    right: 10px;
    max-width: none;
    transform: translateX(0) translateY(100px);
  }
  
  .cookie-notification.show {
    transform: translateX(0) translateY(0);
  }
  
  .cookie-modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 20px;
  }
  
  .cookie-modal-header,
  .cookie-modal-body,
  .cookie-modal-footer {
    padding: 15px 20px;
  }
  
  .cookie-modal-header h2 {
    font-size: 18px;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
  }
  
  .cookie-modal-footer .btn {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .cookie-modal-footer .btn:last-child {
    margin-bottom: 0;
  }
  
  .cookie-category-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .cookie-category-toggle input[type="checkbox"] {
    order: -1;
  }
}