/* ====================================
   COOKIES BANNER STYLES
   ==================================== */

.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0a0d11 0%, #1a1a2e 100%);
  color: #ffffff;
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #DC143C;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  animation: slideUp 0.4s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookies-banner.hide {
  animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

.cookies-banner__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookies-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookies-banner__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.cookies-banner__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

.cookies-banner__text a {
  color: #DC143C;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cookies-banner__text a:hover {
  text-decoration: underline;
  color: #ff4d6d;
}

.cookies-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookies-banner__button {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  font-family: inherit;
}

.cookies-banner__button-accept {
  background: #DC143C;
  color: #ffffff;
  flex: 0 1 auto;
}

.cookies-banner__button-accept:hover {
  background: #B41030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.cookies-banner__button-reject {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex: 0 1 auto;
}

.cookies-banner__button-reject:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.cookies-banner__button-customize {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  flex: 0 1 auto;
}

.cookies-banner__button-customize:hover {
  border-color: #DC143C;
  color: #DC143C;
}

/* ====================================
   COOKIES MODAL
   ==================================== */

.cookies-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookies-modal.active {
  display: flex;
}

.cookies-modal__content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUpModal 0.3s ease-out;
}

@keyframes slideUpModal {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookies-modal__header {
  padding: 2rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookies-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.cookies-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #757575;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.cookies-modal__close:hover {
  background: #f5f5f5;
  color: #DC143C;
}

.cookies-modal__body {
  padding: 2rem;
}

.cookies-modal__section {
  margin-bottom: 1.5rem;
}

.cookies-modal__section:last-child {
  margin-bottom: 0;
}

.cookies-modal__section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookies-modal__section-title .material-icons {
  color: #DC143C;
  font-size: 1.3rem;
}

.cookies-modal__section-text {
  font-size: 0.95rem;
  color: #424242;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cookies-modal__section-text a {
  color: #DC143C;
  text-decoration: none;
  font-weight: 500;
}

.cookies-modal__section-text a:hover {
  text-decoration: underline;
}

.cookies-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.cookies-toggle:last-child {
  border-bottom: none;
}

.cookies-toggle__label {
  font-size: 0.95rem;
  color: #424242;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
}

.cookies-toggle__switch {
  width: 50px;
  height: 28px;
  background: #ccc;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 2px;
  display: flex;
  align-items: center;
  padding-left: 2px;
}

.cookies-toggle__switch.active {
  background: #DC143C;
  padding-left: 24px;
}

.cookies-toggle__switch::after {
  content: '';
  width: 24px;
  height: 24px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookies-modal__footer {
  padding: 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookies-modal__button {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cookies-modal__button-save {
  background: #DC143C;
  color: #ffffff;
}

.cookies-modal__button-save:hover {
  background: #B41030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.cookies-modal__button-reject-all {
  background: transparent;
  color: #424242;
  border: 1px solid #e0e0e0;
}

.cookies-modal__button-reject-all:hover {
  background: #f5f5f5;
  border-color: #bdbdbd;
}

/* ====================================
   SCROLLBAR
   ==================================== */

.cookies-modal__content::-webkit-scrollbar {
  width: 8px;
}

.cookies-modal__content::-webkit-scrollbar-track {
  background: #f5f5f5;
}

.cookies-modal__content::-webkit-scrollbar-thumb {
  background: #DC143C;
  border-radius: 4px;
}

.cookies-modal__content::-webkit-scrollbar-thumb:hover {
  background: #B41030;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
  .cookies-banner__container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookies-banner__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .cookies-banner__button {
    flex: 1;
    min-width: 100px;
  }

  .cookies-modal__content {
    border-radius: 8px;
  }

  .cookies-modal__header {
    padding: 1.5rem;
  }

  .cookies-modal__body {
    padding: 1.5rem;
  }

  .cookies-modal__footer {
    padding: 1.5rem;
    flex-direction: column-reverse;
  }

  .cookies-modal__button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookies-banner {
    padding: 1rem;
  }

  .cookies-banner__container {
    grid-template-columns: 1fr;
  }

  .cookies-banner__title {
    font-size: 1rem;
  }

  .cookies-banner__text {
    font-size: 0.85rem;
  }

  .cookies-banner__actions {
    width: 100%;
  }

  .cookies-banner__button {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .cookies-modal__content {
    max-height: 95vh;
    border-radius: 8px;
  }

  .cookies-modal__header {
    padding: 1rem;
  }

  .cookies-modal__title {
    font-size: 1.25rem;
  }

  .cookies-modal__body {
    padding: 1rem;
  }

  .cookies-modal__footer {
    padding: 1rem;
  }

  .cookies-modal__section-title {
    font-size: 1rem;
  }

  .cookies-modal__section-text {
    font-size: 0.9rem;
  }
}
