/* === YENİ: RƏNG DƏYİŞƏNLƏRİ (TEMA SİSTEMİ) === */
:root {
  /* Susmaya görə Tünd Rejim (Dark Mode) */
  --bg-primary: #1f1f1f;
  --bg-secondary: #111;
  --bg-tertiary: #222;
  --text-primary: #f0f0f0;
  --text-secondary: #00ffe0;
  --text-inverted: #111;
  
  --accent-primary: #00ffe0;
  --accent-primary-inverted: #111;
  
  --shadow-color: #00ffe0;
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --modal-bg: rgba(0, 0, 0, 0.85);

  --input-bg: #111;
  --input-border: #00ffe0;
  --input-text: #f0f0f0;
  
  --disabled-bg: #555;
  --disabled-text: #999;
  --disabled-border: #555;
}

html[data-theme="light"] {
  /* Açıq Rejim (Light Mode) üçün dəyişənlər */
  --bg-primary: #f0f0f0;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e9e9e9;
  --text-primary: #1f1f1f;
  --text-secondary: #007a70;
  --text-inverted: #ffffff;

  --accent-primary: #007a70;
  --accent-primary-inverted: #ffffff;
  
  --shadow-color: rgba(0, 122, 112, 0.5);
  --overlay-bg: rgba(255, 255, 255, 0.7);
  --modal-bg: rgba(255, 255, 255, 0.85);

  --input-bg: #ffffff;
  --input-border: #007a70;
  --input-text: #1f1f1f;

  --disabled-bg: #ccc;
  --disabled-text: #777;
  --disabled-border: #ccc;
}
/* === DƏYİŞƏNLƏR SONU === */

/* === ANİMASİYALAR === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes headShake {
  0% { transform: translateX(0); }
  6.5% { transform: translateX(-6px) rotateY(-9deg); }
  18.5% { transform: translateX(5px) rotateY(7deg); }
  31.5% { transform: translateX(-3px) rotateY(-5deg); }
  43.5% { transform: translateX(2px) rotateY(3deg); }
  50% { transform: translateX(0); }
  100% { transform: translateX(0); }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
/* === ANİMASİYALAR SONU === */

/* === BÜTÜN KÖHNƏ STİLLƏR DƏYİŞƏNLƏRLƏ YENİLƏNDİ === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  transition: background 0.3s, color 0.3s;
}

/* YENİ: Mobil menyu açıq olduqda scroll-u bağlayır */
body.no-scroll {
  overflow: hidden;
}

.sidebar {
  width: 220px;
  background: var(--bg-secondary);
  border-right: 2px solid var(--accent-primary);
  padding: 20px;
  box-shadow: 0 0 10px var(--shadow-color);
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s ease;
  box-sizing: border-box;
}

.sidebar h2 {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--shadow-color);
  margin-bottom: 30px;
  transition: color 0.3s, text-shadow 0.3s;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  
  animation: slideInRight 0.5s ease-out backwards;
}

.sidebar ul li:nth-child(1) { animation-delay: 0.1s; }
.sidebar ul li:nth-child(2) { animation-delay: 0.2s; }
.sidebar ul li:nth-child(3) { animation-delay: 0.3s; }
.sidebar ul li:nth-child(4) { animation-delay: 0.4s; }

.sidebar ul li button {
    padding: 12px;
    transition: all 0.2s ease;
}

.sidebar ul li button:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  padding-left: 20px;
  box-shadow: 0 0 10px var(--shadow-color);
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  height: 60px;
  width: calc(100% - 220px);
  left: 220px; 
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--accent-primary);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 98;
  transition: all 0.3s;
  box-sizing: border-box;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

#hamburgerBtn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

#hamburgerBtn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.profile-icon img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--shadow-color);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 0 10px var(--shadow-color);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  z-index: 110;
}

.profile-menu button {
  background: none;
  border: none;
  color: var(--accent-primary);
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.3s;
}

.profile-menu.hidden {
  display: none;
}

.main-content,
main.main-content {
  margin-left: 240px; 
  margin-top: 80px;  
  padding: 20px;
  width: calc(100% - 280px);
  min-height: calc(100vh - 120px);
  box-sizing: border-box;
  transition: all 0.3s;
}

.zone {
  margin-top: 1px;
  margin-left: 200px;
  min-height: 400px;
  border: 3px dashed transparent;
  border-radius: 12px;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, margin-left 0.3s;
  
  display: none;
  opacity: 0;
}

.zone.active-zone {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

.zone.drag-over-target {
  background-color: var(--bg-tertiary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px var(--shadow-color);
}

canvas {
  margin-top: 20px;
  border: 3px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--shadow-color);
  max-width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* === YENİ: QALEREYA FİLTRLƏRİ === */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

.gallery-upload-actions {
    flex-basis: 400px;
}

.gallery-upload-actions .profile-input-label {
    margin: 0 0 10px 0;
}

.gallery-filters {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gallery-filters .profile-input-label {
    margin-bottom: 8px;
}

.gallery-filters .styled-select {
    margin: 0;
    max-width: 200px;
}
/* === QALEREYA FİLTRLƏRİ SONU === */

#galleryPreview {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  width: 120px;
  height: 120px;
  border: 3px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow-color);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s ease;
  
  animation: popIn 0.4s ease-out backwards;
  cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow-color);
}

.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s;
  pointer-events: none;
}

.gallery-item-overlay a,
.gallery-item-overlay span {
  color: var(--accent-primary);
  font-size: 20px;
  cursor: pointer;
  margin: 0 5px;
  text-decoration: none;
  text-shadow: 0 0 8px var(--shadow-color);
  transition: color 0.3s, text-shadow 0.3s;
}

.gallery-item::after {
  content: "EX";
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 12px;
  color: var(--accent-primary);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: bold;
  transition: color 0.3s, background 0.3s;
}

/* === YENİ: QALEREYA SAĞ KLİK MENYUSU === */
.gallery-context-menu {
  position: fixed;
  z-index: 1050;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--shadow-color);
  padding: 8px;
  overflow: hidden;
  width: 200px;
  
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.gallery-context-menu.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.gallery-context-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  border-radius: 6px;
}

.gallery-context-menu button:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  padding-left: 18px;
}

.gallery-context-menu button .icon {
  margin-right: 12px;
  font-size: 1.1em;
  display: inline-block;
  width: 20px;
  text-align: center;
}

.gallery-context-menu button.danger {
  color: #ff4444;
}

.gallery-context-menu button.danger:hover {
  background: #ff4444;
  color: #ffffff;
}

.gallery-context-menu button:disabled {
  color: var(--disabled-text);
  background: none;
  cursor: not-allowed;
  padding-left: 12px;
  opacity: 0.5;
}
/* === SAĞ KLİK MENYUSU SONU === */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.3s;
  cursor: pointer;
}

.modal-overlay.hidden {
  display: none;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    transition: opacity 0.3s ease;
}
.mobile-overlay.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border: 3px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 30px var(--shadow-color);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 30px;
  color: var(--accent-primary);
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
.footer {
  position: fixed;
  bottom: 0;
  left: 220px; 
  width: calc(100% - 220px); 
  height: 40px;
  background: var(--bg-secondary);
  border-top: 2px solid var(--accent-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-primary);
  font-size: 14px;
  box-shadow: 0 -2px 10px var(--shadow-color);
  z-index: 98;
  transition: all 0.3s;
}
.ad-container{
  margin-top: 20px;
  text-align: center;
}

/* === ÜMUMİ FORM ELEMENTLƏRİ === */

input[type="file"] {
  display: block;
  margin-top: 10px;
  margin-left: 0;
  padding: 10px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  max-width: 400px;
}

#galleryZone .gallery-upload-actions input[type="file"] {
    max-width: 100%;
}
#galleryZone .gallery-upload-actions button {
    margin-top: 15px;
    max-width: 100%;
}

#galleryZone button,
#converterZone button,
.feedback-form button,
#saveProfileButton {
  display: block;
  margin-top: 15px;
  padding: 10px 25px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  max-width: 400px;
}

#galleryZone button:hover,
#converterZone button:hover,
.feedback-form button:hover,
#saveProfileButton:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--shadow-color);
}

#galleryZone button:active,
#converterZone button:active,
.feedback-form button:active,
#saveProfileButton:active {
    transform: scale(0.98);
    box-shadow: 0 0 5px var(--shadow-color);
}

.load-more-btn { 
  display: block;
  margin: 20px auto;
  padding: 10px 25px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  animation: slideInUp 0.5s ease-out;
}

.load-more-btn:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--shadow-color);
}

.load-more-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 5px var(--shadow-color);
}

#galleryZone button:disabled,
#converterZone button:disabled,
.feedback-form button:disabled,
#saveProfileButton:disabled,
.load-more-btn:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-color: var(--disabled-border);
  cursor: not-allowed;
  transform: scale(1);
  box-shadow: none;
}

.load-more-btn.hidden {
    display: none;
}

.info-panel {
  margin-top: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow-color);
  padding: 15px;
  width: fit-content;
  color: var(--accent-primary);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.info-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-panel li {
  margin: 5px 0;
}

.info-panel.hidden {
  display: none;
}
.modal-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
}

.image-info {
  margin-top: 10px;
  background: var(--overlay-bg);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--shadow-color);
  color: var(--accent-primary);
  padding: 10px 20px;
  width: fit-content;
  max-width: 90vw;
  font-size: 14px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.image-info p {
  margin: 5px 0;
}

.feedback-form {
  margin-top: 20px;
  margin-bottom: 40px;
}

.feedback-form textarea,
#profileZone textarea {
  width: 100%;
  height: 120px;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow-color);
  color: var(--input-text);
  padding: 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  resize: vertical;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  box-sizing: border-box;
  max-width: 600px;
}

#feedbackContainer {
  margin-top: 20px;
}

.feedback-item {
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 10px var(--shadow-color);
  padding: 15px;
  margin-bottom: 15px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
  
  animation: popIn 0.4s ease-out backwards;
}

.feedback-item p {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  white-space: pre-wrap;
  transition: color 0.3s;
}

.feedback-item .feedback-meta {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
  text-align: right;
  transition: color 0.3s;
  margin-top: 5px;
}
.feedbackZone {
margin: 120px 0 0 200px;
}

/* === PROFİL STİLLƏRİ === */
#profilePicPreview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--shadow-color);
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-input-label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 0.9em;
  font-weight: bold;
}

#profileZone input[type="text"] {
  width: 100%;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 0 15px var(--shadow-color);
  color: var(--input-text);
  padding: 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  max-width: 600px;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

#profileZone input[type="file"] {
  margin: 10px 0 20px 0;
  max-width: 600px;
  box-sizing: border-box;
}

/* === YENİ: Converter Elementləri Stili === */
.styled-select {
  display: block;
  width: 100%;
  max-width: 400px;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  box-shadow: 0 0 10px var(--shadow-color);
  color: var(--input-text);
  padding: 12px 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s;
  margin-top: 10px;
  margin-bottom: 15px;
  
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300ffe0' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
}

html[data-theme="light"] .styled-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23007a70' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.converter-quality {
  margin-top: 15px;
  max-width: 400px;
}

.converter-quality .profile-input-label {
    margin-top: 0;
}

.converter-quality input[type="range"] {
  width: calc(100% - 60px);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin-right: 10px;
  vertical-align: middle;
}

.converter-quality input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
}
.converter-quality input[type="range"]::-moz-range-track {
  height: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  border-radius: 4px;
}

.converter-quality input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 10px var(--shadow-color);
  margin-top: -7px;
}
.converter-quality input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 10px var(--shadow-color);
}

.converter-quality input[type="range"]:disabled::-webkit-slider-runnable-track {
  background: var(--disabled-bg);
  border-color: var(--disabled-border);
}
.converter-quality input[type="range"]:disabled::-webkit-slider-thumb {
  background: var(--disabled-text);
  box-shadow: none;
}
.converter-quality input[type="range"]:disabled + #qualityValueDisplay {
    color: var(--disabled-text);
}

.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1.1em;
  max-width: 400px;
  animation: fadeIn 0.3s ease-out;
}

.loading-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid var(--accent-primary);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.loading-indicator p {
    margin: 0;
    font-weight: bold;
}

.loading-indicator.hidden {
  display: none;
}
/* === Converter Elementləri Stili Sonu === */

/* === YENİ: TEMA DƏYİŞDİRİCİ DÜYMƏSİ STİLLƏRİ === */
#themeToggleBtn {
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  width: 50px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px var(--shadow-color);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

#themeToggleBtn:hover {
  box-shadow: 0 0 15px var(--shadow-color), 0 0 20px var(--shadow-color);
}

#themeToggleBtn .icon-sun,
#themeToggleBtn .icon-moon {
  position: absolute;
  transition: transform 0.3s ease-out, opacity 0.2s;
}

html[data-theme="dark"] .icon-sun {
  transform: translateY(20px);
  opacity: 0;
}
html[data-theme="dark"] .icon-moon {
  transform: translateY(0);
  opacity: 1;
}

html[data-theme="light"] .icon-sun {
  transform: translateY(0);
  opacity: 1;
}
html[data-theme="light"] .icon-moon {
  transform: translateY(-20px);
  opacity: 0;
}
/* === TEMA DÜYMƏSİ STİLLƏRİ SONU === */

/* === YENİ: FEEDBACK STILLƏRİ (AVATAR, LIKES, REPLIES) === */
.feedback-item {
  position: relative;
  padding: 15px;
}

.feedback-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.feedback-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 0 8px var(--shadow-color);
  transition: all 0.3s;
  cursor: pointer;
  margin: 1px;
}

.feedback-avatar:hover {
  box-shadow: 0 0 12px var(--shadow-color);
  transform: scale(1.05);
}

.feedback-username {
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s;
  font-size: 16px;
}

.feedback-username:hover {
  text-decoration: underline;
  color: var(--accent-primary);
}

.feedback-item .feedback-meta {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
  text-align: right;
  transition: color 0.3s;
  margin-top: 5px;
}

.feedback-actions {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--bg-tertiary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.feedback-action-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  padding: 5px;
  transition: color 0.2s;
}

.feedback-action-btn:hover {
  color: var(--accent-primary);
  animation: pulse 1s ease;
}

.like-btn.liked {
  color: var(--accent-primary);
  font-weight: bold;
}

.like-count {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.feedback-delete-btn {
  position:absolute;
  top:8px;
  right:8px;
  background:none;
  border:none;
  cursor:pointer;
  font-size:20px;
  color:var(--text-secondary);
  transition: color 0.2s, transform 0.2s;
}

.feedback-delete-btn:hover {
    color: #ff4444;
    animation: headShake 0.8s ease;
}

.feedback-replies-container {
  margin-top: 15px;
  padding-left: 20px;
  border-left: 2px solid var(--bg-tertiary);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-reply-item {
  display: flex;
  gap: 10px;
  animation: fadeIn 0.5s ease-out;
}

.feedback-avatar.small {
    width: 30px;
    height: 30px;
}

.reply-content {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}

.reply-content .feedback-username {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.reply-content p {
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
    opacity: 0.9;
    white-space: pre-wrap;
}

.feedback-reply-form {
  margin-top: 10px;
  padding-left: 52px;
  animation: slideInUp 0.4s ease-out;
}

.feedback-reply-form textarea {
  width: 100%;
  height: 80px;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  color: var(--input-text);
  padding: 10px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  resize: vertical;
  box-sizing: border-box;
  max-width: 100%;
}

.feedback-reply-form button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 20px;
  font-size: 14px;
  
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.feedback-reply-form button:hover {
    background: var(--accent-primary);
    color: var(--accent-primary-inverted);
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--shadow-color);
}

/* === YENİ: FEEDBACK FİLTR STİLLƏRİ === */
.feedback-filters {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 0 10px var(--shadow-color);
}

.feedback-filters label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: bold;
}

.feedback-filters .styled-select {
    max-width: 300px;
}

/* === YENİ: ÜRƏK LİKE BUTONU STİLLƏRİ === */
.like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    padding: 5px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.like-btn:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.1);
}

.like-btn.liked {
    color: #ff4444;
}

.like-btn.liked .heart-icon {
    animation: heartBeat 0.6s ease;
}

.heart-icon {
    font-size: 1.4em;
    transition: transform 0.2s ease;
}

.like-count {
    font-size: 0.9em;
    font-weight: bold;
    color: var(--text-secondary);
    min-width: 20px;
    text-align: center;
}

.like-btn.liked .heart-icon {
    animation: heartBeat 0.6s ease;
}

/* === YENİ: İSTİFADƏÇİ PROFİLİ MODALI STİLLƏRİ === */
.profile-modal-box {
  background: var(--bg-tertiary);
  border: 3px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 30px var(--shadow-color);
  padding: 30px;
  max-width: 500px;
  width: 90vw;
  text-align: center;
  color: var(--text-primary);
  transition: all 0.3s;
  box-sizing: border-box;
}

.profile-modal-box img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 15px var(--shadow-color);
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-modal-box h3 {
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
}

.profile-modal-box p {
  color: var(--text-primary);
  white-space: pre-wrap;
  margin-bottom: 0;
  opacity: 0.9;
}
.install-btn {
  position: fixed;
  bottom: 70px;
  right: 30px;
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 15px var(--shadow-color);
  z-index: 1001;
  transition: transform 0.2s;
  animation: popIn 0.5s 2s ease-out backwards;
}
.install-btn:hover {
  transform: scale(1.05);
}
/* 🔌 Offline/Online xəbərdarlığı */
.offline-banner, .online-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  padding: 12px 0;
  color: white;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.offline-banner {
  background: #ff4444;
}

.online-banner {
  background: #00c851;
}

.offline-banner.hidden,
.online-banner.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* ▼▼▼ YENİ ƏLAVƏ EDİLDİ (XÜSUSİ ALERT MODALI) ▼▼▼ */
.alert-modal-box {
  background: var(--bg-tertiary);
  border: 3px solid var(--accent-primary);
  border-radius: 12px;
  box-shadow: 0 0 30px var(--shadow-color);
  padding: 25px 30px;
  max-width: 400px;
  width: 90vw;
  text-align: center;
  color: var(--text-primary);
  transition: all 0.3s;
  box-sizing: border-box;
  animation: popIn 0.3s ease-out;
}

.alert-modal-box h3 {
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: bold;
}

.alert-modal-box p {
  color: var(--text-primary);
  white-space: pre-wrap;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.9;
}

/* YENİ: Xüsusiyyətlər Pəncərəsi Stili */
.properties-content {
    text-align: left;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
}
.properties-content p {
    margin: 8px 0;
    color: var(--text-primary);
    opacity: 0.9;
    word-break: break-all;
}
.properties-content strong {
    color: var(--text-secondary);
    font-weight: bold;
    display: inline-block;
    min-width: 110px;
}
/* Xüsusiyyətlər Pəncərəsi Sonu */

#customAlertCloseBtn,
#propertiesCloseBtn {
  display: inline-block;
  margin-top: 0;
  padding: 10px 30px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
}

#customAlertCloseBtn:hover,
#propertiesCloseBtn:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--shadow-color);
}

#customAlertCloseBtn:active,
#propertiesCloseBtn:active {
    transform: scale(0.98);
    box-shadow: 0 0 5px var(--shadow-color);
}
/* ▲▲▲ YENİ ƏLAVƏ EDİLDİ ▲▲▲ */

/* ▼▼▼ YENİ: RESPONSIVE DİZAYN (MOBİL) ▼▼▼ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .topbar {
        left: 0;
        width: 100%;
        padding: 0 15px;
        justify-content: space-between;
    }
    
    #hamburgerBtn {
        display: block;
    }
    
    .main-content,
    main.main-content {
        margin-left: 0;
        margin-top: 70px;
        width: 100%;
        padding: 15px;
    }
    
    .zone {
        margin-left: 0;
    }
    
    .footer {
        left: 0;
        width: 100%;
    }

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .gallery-upload-actions {
        flex-basis: auto;
    }
    .gallery-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .gallery-filters .styled-select {
        max-width: 100%;
    }
    
    .feedback-form textarea,
    #profileZone textarea,
    #profileZone input[type="text"],
    #profileZone input[type="file"],
    .styled-select,
    .converter-quality {
        max-width: 100%;
    }
    
    .profile-modal-box,
    .alert-modal-box {
        width: 95vw;
        padding: 20px;
    }
    
    .profile-modal-box img {
        width: 100px;
        height: 100px;
    }
    
    .install-btn {
        bottom: 50px;
        right: 15px;
    }
    
    .feedback-reply-form {
        padding-left: 0;
    }
}
/* ▲▲▲ RESPONSIVE DİZAYN SONU ▲▲▲ */

/* === YENİ: CAVAB GÖSTƏR/GİZLƏT DÜYMƏSİ === */
.feedback-toggle-replies-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    transition: color 0.2s;
    margin-left: 10px;
}

.feedback-toggle-replies-btn:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* === YENİ: CAVABLAR KONTEYNERİ === */
.feedback-replies-container.hidden {
    display: none;
}

.feedback-replies-container {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
}

/* === YENİ: FEEDBACK ACTION DÜYMƏLƏRİNİN DÜZÜLÜŞÜ === */
.feedback-actions {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--bg-tertiary);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* === YENİ: TOPBAR DİL DƏYİŞDİRİCİ STİLLƏRİ === */

.lang-switcher-container {
  position: relative;
}

.topbar-icon-btn {
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px var(--shadow-color);
  transition: all 0.3s;
}

#themeToggleBtn {
    border-radius: 50%;
    width: 40px;
}

.topbar-icon-btn:hover {
  box-shadow: 0 0 15px var(--shadow-color), 0 0 20px var(--shadow-color);
  transform: scale(1.05);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  background: var(--bg-tertiary);
  border: 2px solid var(--accent-primary);
  border-radius: 10px;
  box-shadow: 0 0 15px var(--shadow-color);
  z-index: 110;
  overflow: hidden;
  
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.lang-menu.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.lang-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.lang-menu button:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  padding-left: 25px;
}

.lang-menu button span {
  font-weight: bold;
  color: var(--accent-primary);
  margin-right: 10px;
  display: inline-block;
  width: 30px;
}

.lang-menu button:hover span {
  color: var(--accent-primary-inverted);
}

.lang-menu button.active {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  font-weight: bold;
}

.lang-menu button.active span {
  color: var(--accent-primary-inverted);
}

.sidebar .lang-switcher {
  display: none;
}
/* === YENİ: ASİNXRON MODAL STİLLƏRİ === */

.async-modal-input {
  display: block;
  width: 100%;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  color: var(--input-text);
  padding: 12px 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 20px;
  transition: all 0.3s;
}
.async-modal-input.hidden {
  display: none;
}

.async-modal-actions {
  display: flex;
  justify-content: flex-end; /* Düymələri sağa çəkir */
  gap: 10px;
  margin-top: 15px;
}

.async-modal-btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.async-btn-cancel {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 2px solid var(--disabled-border);
}
.async-btn-cancel:hover {
  background: var(--disabled-bg);
}

.async-btn-confirm {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
  border: 2px solid var(--accent-primary);
}
.async-btn-confirm:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--shadow-color);
}

/* Silmə (danger) düyməsi */
.async-btn-confirm.danger {
  background: #ff4444;
  border-color: #ff4444;
  color: #ffffff;
}
.async-btn-confirm.danger:hover {
    box-shadow: 0 0 10px #ff4444;
}
/* === YENİ: QALEREYA İDARƏETMƏ VƏ AXTARIŞ === */
.gallery-controls {
    align-items: flex-end; /* Elementləri altda bərabərləşdirir */
}

.gallery-filters {
    flex-grow: 1; /* Filtr qutusunu genişləndirir */
    flex-wrap: nowrap; /* Elementlərin alta düşməsinin qarşısını alır */
}

.gallery-search {
    flex-basis: 300px; /* Axtarış qutusuna başlanğıc ölçü verir */
    margin-left: 20px;
}

.gallery-search .profile-input-label {
    margin-bottom: 8px;
}

.gallery-search input[type="text"] {
  width: 100%;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  color: var(--input-text);
  padding: 12px 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.gallery-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.gallery-action-btn {
  padding: 12px 15px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.gallery-action-btn:hover {
  background: var(--accent-primary);
  color: var(--accent-primary-inverted);
}

.gallery-action-btn.danger {
    background: #ff4444;
    border-color: #ff4444;
    color: #ffffff;
}
.gallery-action-btn.danger:disabled {
    background: var(--disabled-bg);
    border-color: var(--disabled-border);
    color: var(--disabled-text);
}

/* === YENİ: ÇOXLU SEÇİM (MULTI-SELECT) STİLLƏRİ === */

.gallery-item {
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

/* Seçim rejimində kənara klikləməyi qadağan edir */
body.selection-mode .gallery-item {
    cursor: pointer;
}

/* Seçim rejimində, amma seçilməyib */
body.selection-mode .gallery-item::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
    opacity: 0.7;
    transform: scale(0.9);
    transition: all 0.2s ease;
}

/* Seçilmiş elementlər */
body.selection-mode .gallery-item.selected {
    transform: scale(0.95);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 10px var(--accent-primary);
    opacity: 1;
}

body.selection-mode .gallery-item.selected::before {
    background: var(--accent-primary);
    color: var(--accent-primary-inverted);
    border-color: var(--accent-primary);
    opacity: 1;
    transform: scale(1);
}

/* Seçim rejimində overlay-i gizlət */
body.selection-mode .gallery-item:hover .gallery-item-overlay {
    opacity: 0;
}

/* === YENİ: KONVERTER ÖLÇÜ DƏYİŞMƏ === */
.converter-resize-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    max-width: 400px;
}

.converter-resize-options div {
    flex: 1; /* Hər iki input eyni eni tutur */
}

.converter-resize-options input[type="number"] {
  width: 100%;
  background-color: var(--input-bg);
  border: 2px solid var(--input-border);
  border-radius: 8px;
  color: var(--input-text);
  padding: 12px 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
  -moz-appearance: textfield; /* Firefox-da oxları gizlət */
}
/* Chrome, Safari, Edge-də oxları gizlət */
.converter-resize-options input[type="number"]::-webkit-outer-spin-button,
.converter-resize-options input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.converter-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: middle;
}
.converter-options label {
    vertical-align: middle;
}

/* Axtarış filtrlərini mobilə uyğunlaşdır */
@media (max-width: 1000px) {
    .gallery-filters {
        flex-wrap: wrap; /* Mobil cihazlarda alta düşsün */
        gap: 10px;
    }
    .gallery-search {
        flex-basis: 100%; /* Axtarış tam eni tutsun */
        margin-left: 0;
        margin-top: 10px;
    }
}
@media (max-width: 768px) {
    .gallery-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    .gallery-action-btn {
        flex: 1; /* Düymələr eyni eni paylaşsın */
    }
    .converter-resize-options {
        flex-direction: column; /* Ölçü inputları alt-alta düzülsün */
        max-width: 100%;
        gap: 10px;
    }
}
/* === YENİ: EDITOR STİLLƏRİ === */
.editor-container {
    background: var(--bg-tertiary);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--accent-primary);
    margin: 20px 0;
    animation: fadeIn 0.5s ease;
}

.editor-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.editor-row > div {
    flex: 1;
    min-width: 200px;
}

/* === YENİ: BEFORE/AFTER COMPARE MODAL === */
.compare-modal-box {
    width: 95vw;
    max-width: 800px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
}

.compare-viewer {
    position: relative;
    width: 100%;
    height: 400px; /* Sabit hündürlük və ya avtomatik */
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid var(--input-border);
    margin: 20px 0;
    user-select: none;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), 
                      linear-gradient(-45deg, #ccc 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #ccc 75%), 
                      linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.compare-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.compare-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Şəkli qutuya sığdırır */
    display: block;
}

.compare-image.result {
    width: 50%; /* Başlanğıcda yarı */
    border-right: 2px solid var(--accent-primary);
    background-color: rgba(0,0,0,0.1); /* Yüngül qaralma fərqi hiss etdirmək üçün */
    z-index: 2;
}

.compare-label {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
}

.compare-image.original .compare-label { right: 10px; }
.compare-image.result .compare-label { left: 10px; }

/* Slayder Tutacağı (Handle) */
.compare-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    z-index: 10;
    pointer-events: none; /* Klikləri input-a ötürür */
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: var(--accent-primary-inverted);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 0 15px var(--shadow-color);
}

/* Görünməz Range Input */
.compare-range {
    position: absolute;
    top: 0;
    left: -2%; /* Kənarları tutmaq üçün biraz geniş */
    width: 104%;
    height: 100%;
    opacity: 0;
    cursor: e-resize;
    z-index: 20;
    margin: 0;
}

@media (max-width: 600px) {
    .compare-viewer {
        height: 250px;
    }
    .handle-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
/* === FAQ & LEGAL PAGES TASARIMI === */

.seo-content {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 0 10px var(--shadow-color);
}

.seo-content h3 {
    margin-top: 0;
    color: var(--accent-primary);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
}

.faq-item {
    border: 2px solid var(--input-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 15px 20px;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    margin: 0 !important; /* Global button margin ezmek için */
    max-width: 100% !important;
}

.faq-question:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.faq-question .icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: var(--bg-tertiary);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 20px;
    margin: 0;
    color: var(--text-primary);
    opacity: 0.9;
    line-height: 1.6;
}

/* Aktif FAQ Durumu */
.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--shadow-color);
}

.faq-item.active .faq-question {
    color: var(--accent-primary);
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* İçeriğe göre yetecek kadar */
    padding: 15px 0;
}

/* Legal Content (Gizlilik & Şartlar) */
.legal-content {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    max-width: 900px;
    box-shadow: 0 0 15px var(--shadow-color);
}

.legal-content h3 {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--disabled-bg);
    padding-bottom: 10px;
    margin-top: 25px;
}

.legal-content p {
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.9;
}

.footer-links button {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    padding: 0 5px;
    margin: 0;
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links button:hover {
    opacity: 1;
    color: var(--accent-primary);
    background: none;
    box-shadow: none;
    transform: none;
}
/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-tertiary);
    border-top: 2px solid var(--accent-primary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px var(--shadow-color);
    z-index: 9999;
    box-sizing: border-box;
    animation: slideInUp 0.5s ease-out;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    margin: 0;
    margin-right: 20px;
    font-size: 14px;
    color: var(--text-primary);
}

.cookie-actions button {
    background: var(--accent-primary);
    color: var(--accent-primary-inverted);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.cookie-actions button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 40px; /* Footer-in üstündə qalsın */
    }
    .cookie-banner p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* === REKLAM YERLƏRİ (AD PLACEHOLDERS) === */
.ad-container {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-placeholder {
    background: var(--bg-tertiary);
    border: 2px dashed var(--disabled-bg);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--disabled-text);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sidebar üçün kvadrat reklam */
.sidebar-ad .ad-placeholder {
    width: 180px;
    height: 180px;
    margin: 20px auto 0 auto;
}

/* Məzmun içi üçün uzun reklam (Responsive) */
.content-ad .ad-placeholder.horizontal {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

@media (max-width: 768px) {
    .sidebar-ad {
        display: none; /* Mobildə menyuda reklam gizlədilsin */
    }
    .content-ad .ad-placeholder.horizontal {
        height: 100px; /* Mobildə hündürlüyü qoru */
        max-width: 320px;
    }
}