/* Çerez Politikası Popup - Tema ile Uyumlu */

.cookie-consent-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent-wrapper.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-consent-wrapper.show .cookie-consent-overlay {
  opacity: 1;
}

.cookie-consent-container {
  position: relative;
  background: linear-gradient(135deg, #043276 0%, #032757 100%);
  border-top: 3px solid #fdc400;
  box-shadow: 0 -10px 40px rgba(4, 50, 118, 0.3);
  padding: 30px;
  max-width: 100%;
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Minimize Button */
.cookie-consent-minimize {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: rgba(253, 196, 0, 0.2);
  border: 2px solid #fdc400;
  border-radius: 50%;
  color: #fdc400;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.cookie-consent-minimize:hover {
  background: #fdc400;
  color: #043276;
  transform: rotate(180deg);
}

.cookie-consent-minimize i:before {
  content: "\f107";
  font-family: FontAwesome;
  font-size: 18px;
}

/* Minimized State */
.cookie-consent-wrapper.minimized {
  z-index: 10;
  pointer-events: none;
}

.cookie-consent-wrapper.minimized .cookie-consent-container {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cookie-consent-wrapper.minimized .cookie-consent-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Cookie Badge (Minimized View) */
.cookie-consent-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transform: scale(0) rotate(180deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-consent-wrapper.minimized .cookie-consent-badge {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(0deg);
  pointer-events: all;
}

.cookie-consent-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #043276 0%, #032757 100%);
  border: 2px solid #fdc400;
  border-radius: 50px;
  color: #ffffff;
  font-family: var(--thm-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(4, 50, 118, 0.4);
  transition: all 0.3s ease;
  animation: pulse-badge 2s infinite;
}

.cookie-consent-badge-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(253, 196, 0, 0.4);
  background: linear-gradient(135deg, #054291 0%, #043872 100%);
}

.cookie-consent-badge-btn .cookie-icon {
  font-size: 20px;
  animation: rotate-cookie 3s linear infinite;
}

.cookie-consent-badge-btn .cookie-text {
  white-space: nowrap;
}

@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(4, 50, 118, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(253, 196, 0, 0.6);
  }
}

@keyframes rotate-cookie {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.cookie-consent-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(253,196,0,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(253,196,0,0.1)"/><circle cx="50" cy="50" r="1" fill="rgba(253,196,0,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.cookie-consent-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.cookie-consent-icon-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}

.cookie-consent-icon {
  width: 48px;
  height: 48px;
  background: rgba(253, 196, 0, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-cookie 2s infinite;
}

@keyframes pulse-cookie {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(253, 196, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(253, 196, 0, 0);
  }
}

.cookie-consent-icon svg {
  width: 28px;
  height: 28px;
  fill: #fdc400;
}

.cookie-consent-title {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  font-family: var(--thm-font);
  letter-spacing: 0.02em;
}

.cookie-consent-text {
  color: #a5b9ad;
  font-size: 15px;
  line-height: 26px;
  font-weight: 500;
  margin: 0;
  font-family: var(--thm-font);
  max-height: 200px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #fdc400 rgba(255, 255, 255, 0.1);
}

/* Webkit scrollbar styling for text area */
.cookie-consent-text::-webkit-scrollbar {
  width: 8px;
}

.cookie-consent-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin: 4px 0;
}

.cookie-consent-text::-webkit-scrollbar-thumb {
  background: #fdc400;
  border-radius: 4px;
  border: 2px solid rgba(4, 50, 118, 0.5);
}

.cookie-consent-text::-webkit-scrollbar-thumb:hover {
  background: #ffdd33;
  border-color: rgba(4, 50, 118, 0.7);
}

.cookie-consent-text a {
  color: #fdc400;
  text-decoration: underline;
  transition: all 0.3s ease;
  font-weight: 600;
}

.cookie-consent-text a:hover {
  color: #ffffff;
  text-decoration: none;
}

.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--thm-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

.cookie-consent-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: -1;
}

.cookie-consent-btn:hover::before {
  transform: translateX(0);
}

.cookie-consent-btn-accept {
  background: #fdc400;
  color: #043276;
  border-color: #fdc400;
}

.cookie-consent-btn-accept::before {
  background: #043276;
}

.cookie-consent-btn-accept:hover {
  color: #ffffff;
  border-color: #fdc400;
}

.cookie-consent-btn-decline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-decline::before {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-consent-btn-decline:hover {
  border-color: #ffffff;
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #fdc400;
  border-color: #fdc400;
}

.cookie-consent-btn-settings::before {
  background: #fdc400;
}

.cookie-consent-btn-settings:hover {
  color: #043276;
  border-color: #fdc400;
}

/* Preferences Modal */
.cookie-preferences-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-preferences-modal.show {
  display: flex;
  opacity: 1;
}

.cookie-preferences-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.cookie-preferences-content {
  position: relative;
  background: linear-gradient(135deg, #043276 0%, #032757 100%);
  border: 3px solid #fdc400;
  border-radius: 0;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(4, 50, 118, 0.5);
  z-index: 1;
}

.cookie-preferences-header {
  position: sticky;
  top: 0;
  background: #043276;
  border-bottom: 2px solid rgba(253, 196, 0, 0.3);
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.cookie-preferences-header h3 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  font-family: var(--thm-font);
}

.cookie-preferences-close {
  background: transparent;
  border: 2px solid #fdc400;
  color: #fdc400;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cookie-preferences-close:hover {
  background: #fdc400;
  color: #043276;
  transform: rotate(90deg);
}

.cookie-preferences-body {
  padding: 30px;
}

.cookie-category {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #fdc400;
  padding: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  background: rgba(253, 196, 0, 0.08);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-category-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  font-family: var(--thm-font);
}

.cookie-category-description {
  color: #a5b9ad;
  font-size: 14px;
  line-height: 22px;
  margin: 0;
  font-family: var(--thm-font);
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
  border-radius: 28px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #fdc400;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-toggle-required {
  background: rgba(253, 196, 0, 0.3);
  color: #fdc400;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-preferences-footer {
  position: sticky;
  bottom: 0;
  background: #043276;
  border-top: 2px solid rgba(253, 196, 0, 0.3);
  padding: 20px 30px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  z-index: 2;
}

/* Responsive Design */
@media (min-width: 768px) {
  .cookie-consent-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-consent-main {
    flex: 1;
    padding-right: 30px;
  }

  .cookie-consent-buttons {
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  .cookie-consent-container {
    padding: 20px;
  }

  .cookie-consent-title {
    font-size: 18px;
  }

  .cookie-consent-text {
    font-size: 14px;
    line-height: 22px;
    max-height: 160px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-consent-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
  }

  .cookie-preferences-content {
    max-height: 95vh;
  }

  .cookie-preferences-header,
  .cookie-preferences-body,
  .cookie-preferences-footer {
    padding: 20px;
  }

  .cookie-preferences-header h3 {
    font-size: 20px;
  }

  .cookie-preferences-footer {
    flex-direction: column;
  }

  .cookie-preferences-footer .cookie-consent-btn {
    width: 100%;
  }
}

/* Scrollbar Styling for Modal */
.cookie-preferences-content::-webkit-scrollbar {
  width: 8px;
}

.cookie-preferences-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.cookie-preferences-content::-webkit-scrollbar-thumb {
  background: #fdc400;
  border-radius: 4px;
}

.cookie-preferences-content::-webkit-scrollbar-thumb:hover {
  background: #e5b000;
}

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

.cookie-consent-wrapper.show .cookie-consent-container {
  animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
