/* ============================================================
   Juely Cookie Consent Banner – Styles
   ============================================================ */

/* Banner container */
#juely-cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#juely-cookie-banner.jcc-visible {
  opacity: 1;
  visibility: visible;
}
#juely-cookie-banner.jcc-hiding {
  opacity: 0;
  visibility: hidden;
}

/* Backdrop overlay */
.jcc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Dialog */
.jcc-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.35s ease;
}
#juely-cookie-banner.jcc-visible .jcc-dialog {
  transform: translateY(0);
}

/* Content area */
.jcc-content {
  padding: 1.75rem 1.75rem 1rem;
}

.jcc-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.jcc-title i {
  font-size: 1.5rem;
  color: var(--jcc-accent, #f59e0b);
}

.jcc-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.jcc-link {
  color: var(--jcc-main, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s;
}
.jcc-link:hover {
  color: var(--jcc-main-dark, #1d4ed8);
}

/* Settings panel */
.jcc-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.jcc-category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}
.jcc-category:last-child {
  border-bottom: 0;
}

.jcc-cat-info {
  flex: 1;
}
.jcc-cat-info strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}
.jcc-cat-info small {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  display: block;
  margin-top: 0.15rem;
}

/* Toggle switch */
.jcc-category input[type="checkbox"] {
  display: none;
}

.jcc-toggle {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  transition: background 0.25s ease;
  cursor: pointer;
}
.jcc-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}
.jcc-category input:checked + .jcc-toggle {
  background: var(--jcc-main, #2563eb);
}
.jcc-category input:checked + .jcc-toggle::after {
  transform: translateX(20px);
}
.jcc-toggle--disabled {
  background: var(--jcc-main, #2563eb);
  opacity: 0.6;
  cursor: not-allowed;
}
.jcc-toggle--disabled::after {
  transform: translateX(20px);
}

/* Action buttons */
.jcc-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.75rem 1.5rem;
  flex-wrap: wrap;
}

.jcc-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.jcc-btn:hover {
  transform: translateY(-1px);
}
.jcc-btn:active {
  transform: translateY(0);
}

.jcc-btn--accept {
  background: var(--jcc-main, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.jcc-btn--accept:hover {
  background: var(--jcc-main-dark, #1d4ed8);
}

.jcc-btn--reject {
  background: #f1f5f9;
  color: #334155;
}
.jcc-btn--reject:hover {
  background: #e2e8f0;
}

.jcc-btn--settings {
  background: transparent;
  color: #64748b;
  padding-left: 0;
}
.jcc-btn--settings:hover {
  color: #334155;
}

/* ============================================================
   Datenschutz-Seite: Cookie Status Widget
   ============================================================ */
.jcc-status-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.jcc-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 0.625rem;
}
.jcc-status-item small {
  font-weight: 400;
  color: #64748b;
  margin-left: 0.25rem;
}
.jcc-status-item--active {
  background: #f0fdf4;
  color: #166534;
}
.jcc-status-item--active i {
  color: #22c55e;
}
.jcc-status-item--inactive {
  background: #fef2f2;
  color: #991b1b;
}
.jcc-status-item--inactive i {
  color: #ef4444;
}

.jcc-status-date {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.jcc-status-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.jcc-status-text i {
  color: #f59e0b;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 480px) {
  .jcc-content {
    padding: 1.25rem 1.25rem 0.75rem;
  }
  .jcc-actions {
    padding: 0.75rem 1.25rem 1.25rem;
    flex-direction: column;
  }
  .jcc-btn {
    width: 100%;
    text-align: center;
  }
  .jcc-btn--settings {
    order: 3;
    text-align: center;
    padding-left: 1.25rem;
  }
}
