/* ==========================================================================
   AKTIN GYM - CONSENT MODE V2 COOKIE PLUGIN CSS
   ========================================================================== */

:root {
  --cc-bg: rgba(14, 21, 38, 0.94);
  --cc-card-bg: rgba(22, 33, 58, 0.95);
  --cc-text: #f8fafc;
  --cc-muted: #94a3b8;
  --cc-border: rgba(255, 255, 255, 0.12);
  --cc-primary: #00f2fe;
  --cc-primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --cc-glow: rgba(0, 242, 254, 0.35);
  --cc-radius: 20px;
  --cc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --cc-font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Glassmorphism Backdrop Blur */
.cc-blur {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Floating Cookie Trigger Button (Re-open Preferences) */
#cc-trigger-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--cc-bg);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: 9999px;
  font-family: var(--cc-font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

#cc-trigger-btn:hover {
  transform: scale(1.05) translateY(-2px);
  border-color: var(--cc-primary);
  box-shadow: 0 12px 35px var(--cc-glow);
}

#cc-trigger-btn span {
  display: inline-block;
}

@media (max-width: 640px) {
  #cc-trigger-btn {
    bottom: 20px; /* Positioned nicely at bottom left */
    left: 16px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Cookie Banner Overlay / Container */
#cc-banner-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 620px;
  margin: 0 0 0 auto;
  z-index: 99995;
  background: var(--cc-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 24px 28px;
  color: var(--cc-text);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 242, 254, 0.08);
  font-family: var(--cc-font);
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cc-banner-container.cc-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

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

.cc-banner-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.cc-banner-title {
  font-family: var(--cc-font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.cc-banner-desc {
  font-size: 0.92rem;
  color: var(--cc-muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.cc-banner-desc a {
  color: var(--cc-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.cc-banner-desc a:hover {
  opacity: 0.85;
}

/* Banner Actions Grid */
.cc-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9999px;
  font-family: var(--cc-font-title);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  outline: none;
  white-space: nowrap;
}

.cc-btn-primary {
  background: var(--cc-primary-gradient);
  color: #040914;
  box-shadow: 0 6px 20px var(--cc-glow);
}

.cc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 242, 254, 0.5);
}

.cc-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-text);
  border-color: var(--cc-border);
}

.cc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.cc-btn-outline {
  background: transparent;
  color: var(--cc-primary);
  border-color: rgba(0, 242, 254, 0.35);
}

.cc-btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--cc-primary);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  #cc-banner-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: none;
    padding: 20px 18px;
  }
  .cc-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cc-btn {
    width: 100%;
  }
}

/* Cookie Preferences Modal Overlay */
#cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 9, 19, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#cc-modal-overlay.cc-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Card */
.cc-modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--cc-card-bg);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  padding: 0;
  color: var(--cc-text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 242, 254, 0.1);
  font-family: var(--cc-font);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-modal-header {
  padding: 24px 28px 0 28px;
  flex-shrink: 0;
}

.cc-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

#cc-modal-overlay.cc-visible .cc-modal-card {
  transform: translateY(0) scale(1);
}

.cc-modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--cc-border);
  color: var(--cc-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cc-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: scale(1.05);
}

.cc-modal-title {
  font-family: var(--cc-font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #ffffff;
  padding-right: 40px;
}

.cc-modal-subtitle {
  font-size: 0.93rem;
  color: var(--cc-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Category List */
.cc-category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.cc-category-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s ease;
}

.cc-category-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.cc-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.cc-category-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cc-font-title);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
}

.cc-badge-always {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.15);
  color: var(--cc-primary);
  border: 1px solid rgba(0, 242, 254, 0.3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cc-category-desc {
  font-size: 0.88rem;
  color: var(--cc-muted);
  line-height: 1.55;
  margin: 0;
}

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

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

.cc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 34px;
}

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

.cc-switch input:checked + .cc-slider {
  background: var(--cc-primary-gradient);
  box-shadow: 0 0 12px var(--cc-glow);
}

.cc-switch input:checked + .cc-slider:before {
  transform: translateX(22px);
  background-color: #040914;
}

.cc-switch input:disabled + .cc-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tabs Header Navigation */
.cc-tabs-header {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--cc-border);
  margin-bottom: 0;
  padding-bottom: 0;
}

.cc-tab-btn {
  background: transparent;
  border: none;
  color: var(--cc-muted);
  font-family: var(--cc-font-title);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 8px 4px 14px 4px;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.cc-tab-btn:hover {
  color: #ffffff;
}

.cc-tab-btn.active {
  color: var(--cc-primary);
}

.cc-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cc-primary-gradient);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px var(--cc-glow);
}

/* Tab Panels */
.cc-tab-panel {
  display: none;
  animation: ccFadeIn 0.3s ease;
}

.cc-tab-panel.active {
  display: block;
}

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

.cc-tab-title {
  font-family: var(--cc-font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.cc-tab-desc {
  font-size: 0.92rem;
  color: var(--cc-muted);
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.cc-tab-desc a {
  color: var(--cc-primary);
  text-decoration: underline;
}

/* Quick Switches Grid (Tab 1) */
.cc-quick-switches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.cc-quick-switch-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.cc-quick-switch-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.cc-quick-label {
  font-family: var(--cc-font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

/* Modal Actions (Sticky Bottom) */
.cc-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px 22px 28px;
  background: var(--cc-card-bg);
  border-top: 1px solid var(--cc-border);
  flex-shrink: 0;
  margin-top: auto;
}

@media (max-width: 640px) {
  .cc-modal-header {
    padding: 20px 18px 0 18px;
  }
  .cc-modal-body {
    padding: 18px;
  }
  .cc-tabs-header {
    gap: 14px;
  }
  .cc-tab-btn {
    font-size: 0.92rem;
  }
  .cc-quick-switches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cc-modal-actions {
    padding: 16px 18px 20px 18px;
    flex-direction: column-reverse;
  }
  .cc-modal-actions .cc-btn {
    width: 100%;
  }
}
