/**
 * RUCKING POLSKA - Cookie Consent Styles
 * Brand colors: #e63946 (czerwony), #2a9d8f (turkusowy), #0b0f13 (tło ciemne)
 * Militarny vibe, minimalistyczny design
 */

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #0b0f13 0%, #1a1f2e 100%);
  border-top: 3px solid #e63946;
  box-shadow: 0 -4px 20px rgba(230, 57, 70, 0.3);
  z-index: 999999;
  padding: 1.5rem;
  animation: slideUp 0.4s ease-out;
}

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

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.cookie-close {
  position: absolute;
  top: -0.5rem;
  right: 0;
  background: transparent;
  border: none;
  color: #e63946;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: transform 0.2s, color 0.2s;
  font-weight: bold;
}

.cookie-close:hover {
  transform: scale(1.2);
  color: #ff4757;
}

.cookie-close:focus {
  outline: 2px solid #e63946;
  outline-offset: 4px;
}

.cookie-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  letter-spacing: 0.5px;
}

.cookie-description {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.cookie-btn:focus {
  outline: 3px solid #2a9d8f;
  outline-offset: 3px;
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #e63946 0%, #c81e2e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.cookie-btn-primary:hover {
  background: linear-gradient(135deg, #ff4757 0%, #e63946 100%);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
  transform: translateY(-2px);
}

.cookie-btn-secondary {
  background: #2a2e3e;
  color: #d1d5db;
  border: 2px solid #3d4354;
}

.cookie-btn-secondary:hover {
  background: #3d4354;
  color: #ffffff;
  border-color: #4a5168;
}

.cookie-btn-outline {
  background: transparent;
  color: #2a9d8f;
  border: 2px solid #2a9d8f;
}

.cookie-btn-outline:hover {
  background: #2a9d8f;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.4);
  transform: translateY(-2px);
}

.cookie-links {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

.cookie-links a {
  color: #2a9d8f;
  text-decoration: none;
  transition: color 0.2s;
}

.cookie-links a:hover {
  color: #3dcdba;
  text-decoration: underline;
}

/* ===== COOKIE CUSTOMIZE MODAL ===== */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 19, 0.95);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
  backdrop-filter: blur(4px);
}

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

.cookie-modal {
  background: linear-gradient(135deg, #0b0f13 0%, #1a1f2e 100%);
  border: 2px solid #e63946;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(230, 57, 70, 0.5);
  position: relative;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.cookie-modal-title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 2rem 1.5rem 0;
  letter-spacing: 0.5px;
}

.cookie-category {
  background: #1a1f2e;
  border: 1px solid #2a2e3e;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.cookie-category:hover {
  border-color: #e63946;
}

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

.cookie-category h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.cookie-category-desc {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-category-desc small {
  color: #6b7280;
  font-style: italic;
}

/* ===== TOGGLE SWITCH ===== */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

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

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a2e3e;
  transition: 0.3s;
  border-radius: 28px;
  border: 2px solid #3d4354;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: #6b7280;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: #2a9d8f;
  border-color: #2a9d8f;
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
  background-color: #ffffff;
}

.cookie-switch input:disabled + .cookie-slider {
  background-color: #3d4354;
  border-color: #4a5168;
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-switch input:disabled + .cookie-slider:before {
  background-color: #9ca3af;
}

.cookie-switch input:focus + .cookie-slider {
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.3);
}

/* ===== MODAL ACTIONS ===== */
.cookie-modal-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

/* ===== SCROLLBAR CUSTOMIZATION ===== */
.cookie-modal::-webkit-scrollbar {
  width: 8px;
}

.cookie-modal::-webkit-scrollbar-track {
  background: #1a1f2e;
  border-radius: 4px;
}

.cookie-modal::-webkit-scrollbar-thumb {
  background: #e63946;
  border-radius: 4px;
}

.cookie-modal::-webkit-scrollbar-thumb:hover {
  background: #ff4757;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-title {
    font-size: 1.25rem;
  }

  .cookie-description {
    font-size: 0.9rem;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 1rem;
  }

  .cookie-modal {
    padding: 1.5rem;
    margin: 1rem;
  }

  .cookie-modal-title {
    font-size: 1.5rem;
  }

  .cookie-category-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-close {
    font-size: 1.75rem;
  }
}

/* ===== SETTINGS BUTTON (optional - do dodania na stronie) ===== */
.cookie-settings-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e63946;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
  transition: all 0.3s ease;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings-trigger:hover {
  background: #ff4757;
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.6);
  transform: translateY(-3px) rotate(90deg);
}

.cookie-settings-trigger:focus {
  outline: 3px solid #2a9d8f;
  outline-offset: 3px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .cookie-banner,
  .cookie-modal-overlay,
  .cookie-settings-trigger {
    display: none !important;
  }
}
