/* Silktide Consent Manager - Modern Professional Design */
:root {
  --silktide-primary: #FFD700;
  --silktide-secondary: #1a1a1a;
  --silktide-accent: #2563eb;
  --silktide-success: #10b981;
  --silktide-warning: #f59e0b;
  --silktide-error: #ef4444;
  --silktide-text: #374151;
  --silktide-text-light: #6b7280;
  --silktide-bg: #ffffff;
  --silktide-bg-secondary: #f9fafb;
  --silktide-border: #e5e7eb;
  --silktide-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --silktide-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Cookie Banner Container */
.silktide-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--silktide-bg);
  border-top: 1px solid var(--silktide-border);
  box-shadow: var(--silktide-shadow-lg);
  z-index: 9999;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silktide-text);
  padding: 0;
  margin: 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Banner Content */
.silktide-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.silktide-banner-text {
  flex: 1;
  min-width: 300px;
}

.silktide-banner-text p {
  margin: 0 0 10px 0;
  color: var(--silktide-text);
}

.silktide-banner-text a {
  color: var(--silktide-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.silktide-banner-text a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Banner Buttons */
.silktide-banner-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.silktide-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  white-space: nowrap;
}

.silktide-btn-primary {
  background: var(--silktide-primary);
  color: var(--silktide-secondary);
}

.silktide-btn-primary:hover {
  background: #e6c200;
  transform: translateY(-1px);
  box-shadow: var(--silktide-shadow);
}

.silktide-btn-secondary {
  background: transparent;
  color: var(--silktide-text);
  border: 2px solid var(--silktide-border);
}

.silktide-btn-secondary:hover {
  background: var(--silktide-bg-secondary);
  border-color: var(--silktide-text-light);
}

.silktide-btn-tertiary {
  background: transparent;
  color: var(--silktide-text-light);
  padding: 8px 16px;
}

.silktide-btn-tertiary:hover {
  color: var(--silktide-text);
  background: var(--silktide-bg-secondary);
}

/* Cookie Icon */
.silktide-cookie-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--silktide-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--silktide-shadow);
  z-index: 9998;
  transition: all 0.2s ease;
}

.silktide-cookie-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--silktide-shadow-lg);
}

.silktide-cookie-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--silktide-secondary);
}

/* Preferences Modal */
.silktide-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.silktide-preferences-modal.show {
  display: flex;
}

.silktide-modal-content {
  background: var(--silktide-bg);
  border-radius: 12px;
  box-shadow: var(--silktide-shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.silktide-modal-header {
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid var(--silktide-border);
  margin-bottom: 0;
}

.silktide-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--silktide-text);
  margin: 0 0 12px 0;
}

.silktide-modal-description {
  color: var(--silktide-text-light);
  margin: 0 0 20px 0;
}

.silktide-modal-body {
  padding: 24px;
}

.silktide-cookie-type {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--silktide-border);
  border-radius: 8px;
  background: var(--silktide-bg-secondary);
}

.silktide-cookie-type-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.silktide-cookie-type-header > div {
  flex: 1;
  min-width: 0;
}

.silktide-cookie-type-title {
  font-weight: 600;
  color: var(--silktide-text);
  margin: 0;
}

.silktide-cookie-type-description {
  color: var(--silktide-text-light);
  margin: 0;
  font-size: 14px;
}

.silktide-cookie-type-description p {
  margin: 0;
}

.silktide-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
  margin-left: 12px;
}

.silktide-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.silktide-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.3s ease;
  border-radius: 32px;
  border: 2px solid #d1d5db;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.silktide-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid #e5e7eb;
}

.silktide-toggle:hover .silktide-slider {
  border-color: var(--silktide-primary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.silktide-toggle input:checked + .silktide-slider {
  background-color: var(--silktide-primary);
  border-color: var(--silktide-primary);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.silktide-toggle input:checked + .silktide-slider:before {
  transform: translateX(28px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.silktide-toggle input:disabled + .silktide-slider {
  background-color: #f3f4f6;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
}

.silktide-toggle input:disabled + .silktide-slider:before {
  background-color: #f9fafb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.silktide-modal-footer {
  padding: 20px 24px 24px 24px;
  border-top: 1px solid var(--silktide-border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.silktide-credit {
  padding: 12px 24px;
  text-align: center;
  border-top: 1px solid var(--silktide-border);
  font-size: 12px;
  color: var(--silktide-text-light);
}

.silktide-credit a {
  color: var(--silktide-primary);
  text-decoration: none;
}

.silktide-credit a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .silktide-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .silktide-banner-buttons {
    justify-content: center;
  }
  
  .silktide-modal-content {
    margin: 20px;
    max-height: calc(100vh - 40px);
  }
  
  .silktide-cookie-icon {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
  }
  
  .silktide-cookie-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .silktide-banner-content {
    padding: 16px;
  }
  
  .silktide-banner-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .silktide-btn {
    width: 100%;
    justify-content: center;
  }
  
  .silktide-modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
}

/* Animation Classes */
.silktide-fade-in {
  animation: silktideFadeIn 0.3s ease-out;
}

.silktide-fade-out {
  animation: silktideFadeOut 0.3s ease-out;
}

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

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

/* Accessibility */
.silktide-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
.silktide-btn:focus,
.silktide-cookie-icon:focus {
  outline: 2px solid var(--silktide-primary);
  outline-offset: 2px;
}

.silktide-toggle:focus-within .silktide-slider {
  outline: 2px solid var(--silktide-primary);
  outline-offset: 2px;
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
  .silktide-toggle {
    width: 70px;
    height: 36px;
    margin-left: 16px;
  }
  
  .silktide-slider:before {
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
  }
  
  .silktide-toggle input:checked + .silktide-slider:before {
    transform: translateX(34px);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .silktide-cookie-banner {
    border-top: 2px solid var(--silktide-text);
  }
  
  .silktide-btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .silktide-cookie-banner,
  .silktide-btn,
  .silktide-cookie-icon,
  .silktide-slider,
  .silktide-slider:before {
    transition: none;
  }
  
  .silktide-fade-in,
  .silktide-fade-out {
    animation: none;
  }
} 