/**
 * Cookie Consent Banner - Styles
 * Happy Valley Casino Theme
 * @version 1.0.0
 */

/* Color Palette - Happy Valley Casino */
:root {
  --hvc-gold: #feba21;
  --hvc-gold-dark: #d38716;
  --hvc-blue-dark: #0c2562;
  --hvc-blue-nav: #223f99;
  --hvc-white: #ffffff;
  --hvc-text-light: #ffffff;
  --hvc-text-dark: #0c2562;
}

/* Reset and base styles */
#cookie-consent-banner *,
#cookie-consent-modal * {
  box-sizing: border-box;
}

/* Banner container */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999999;
  font-family: Agenda, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--hvc-text-light);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 10px 20px;
}

#cookie-consent-banner.cc-bottom {
  bottom: 0;
  transform: translateY(0);
}

#cookie-consent-banner.cc-top {
  top: 0;
  transform: translateY(0);
}

#cookie-consent-banner.cc-hidden {
  opacity: 0;
}

#cookie-consent-banner.cc-bottom.cc-hidden {
  transform: translateY(100%);
}

#cookie-consent-banner.cc-top.cc-hidden {
  transform: translateY(-100%);
}

/* Banner layouts */
.cc-banner.cc-bar {
  background: var(--hvc-blue-dark);
  color: var(--hvc-text-light);
  padding: 10px 0;
  border-top: 4px solid var(--hvc-gold);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cc-banner.cc-box {
  background: var(--hvc-white);
  color: var(--hvc-text-dark);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  border-top: 4px solid var(--hvc-gold);
}

.cc-banner.cc-cloud {
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--hvc-blue-dark);
  color: var(--hvc-text-light);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--hvc-gold);
}

/* Container */
.cc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (min-width: 1024px) {
  .cc-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}

/* Content */
.cc-content {
  flex: 1;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .cc-content {
    margin-bottom: 0;
  }
}

.cc-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--hvc-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cc-description {
  margin-bottom: 12px;
  font-size: 15px;
  opacity: 0.9;
}

.cc-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.cc-links a {
  color: var(--hvc-gold);
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cc-links a:hover {
  color: var(--hvc-white);
}

/* Buttons */
.cc-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .cc-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .cc-buttons {
    flex-shrink: 0;
  }
}

.cc-btn {
  padding: 8px 24px;
  border: none;
  border-radius: 2px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.cc-btn:hover {
  transform: scale(1.05);
}

.cc-btn-primary {
  background: var(--hvc-gold);
  color: var(--hvc-blue-dark);
}

.cc-btn-primary:hover {
  background: var(--hvc-white);
}

.cc-btn-secondary {
  background: transparent;
  color: var(--hvc-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--hvc-white);
}

.cc-btn-tertiary {
  background: transparent;
  color: var(--hvc-gold);
  border: 1px solid var(--hvc-gold);
}

.cc-btn-tertiary:hover {
  background: rgba(254, 186, 33, 0.1);
}

.cc-btn-text {
  padding-left: 4px;
  padding-right: 4px;
}

/* Modal */
#cookie-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Agenda, ui-sans-serif, system-ui, sans-serif;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cc-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 37, 98, 0.85);
  backdrop-filter: blur(4px);
}

.cc-modal-content {
  position: relative;
  background: var(--hvc-white);
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  border-top: 6px solid var(--hvc-gold);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #eee;
  background: #fcfcfc;
}

.cc-modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--hvc-blue-dark);
  text-transform: uppercase;
}

.cc-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--hvc-blue-dark);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.cc-close:hover {
  opacity: 0.6;
}

.cc-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  color: var(--hvc-blue-dark);
}

.cc-category {
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 16px;
  background: #f9f9f9;
}

.cc-category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.cc-category-header h3 {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.cc-category-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

/* Toggle Switch */
.cc-switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}

.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 30px;
}

.cc-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cc-switch input:checked + .cc-slider {
  background-color: var(--hvc-gold);
}

.cc-switch input:checked + .cc-slider:before {
  transform: translateX(24px);
}

.cc-modal-footer {
  padding: 24px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  background: #fcfcfc;
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .cc-title {
    font-size: 20px;
  }
  .cc-btn {
    width: 100%;
  }
}
