@import url('../css/lingo-logo.css');

html {
    zoom: 1;
    overflow-x: clip;
}

/* Modern Resimli Kelimeler CSS */

/* Özel İmleç Stilleri - En Üstte */
* {
    cursor: url('../assets/slimicons/orange-pointer.svg'), auto !important;
}

*[style*="cursor: pointer"], 
*[style*="cursor:pointer"], 
a, 
button, 
input[type="button"], 
input[type="submit"], 
.clickable,
[onclick],
[role="button"] {
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
}

/* CSS Değişkenleri */
:root {
    --primary-color: #1e5f8c;
    --primary-light: #a8c8e0;
    --primary-dark: #0d4166;
    --secondary-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #f6c23e;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --accent-color: #2c95d8;
    --accent-light: #7bbde8;
    --accent-dark: #176bab;
    
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --border-radius: 12px;
    --input-radius: 8px;
    --button-radius: 10px;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 6px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 14px 28px rgba(0, 0, 0, 0.12), 0 10px 10px rgba(0, 0, 0, 0.08);
    --button-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.25s;
    
    /* Bulmaca aracından eklenen değişkenler */
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --border-light: #edf2f7;
    --border-hover: #cbd5e0;
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --spacing-0: 0;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-xs: var(--spacing-2);
    --spacing-sm: var(--spacing-4);
    --spacing-md: var(--spacing-6);
    --spacing-lg: var(--spacing-8);
    --spacing-xl: var(--spacing-12);
    --font-family-base: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-heading: 'Poppins', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --transition-base: 0.3s ease;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(102, 126, 234, 0.12);
    --shadow-lg: 0 8px 24px rgba(102, 126, 234, 0.15);
    --shadow-xl: 0 16px 32px rgba(102, 126, 234, 0.18);
}

/* Genel Stil */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    padding-top: 60px;
    background-color: var(--gray-200);
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
    color: var(--dark-color);
    position: relative;
    line-height: 1.7;
    transition: all var(--transition-speed) ease;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    background-color: rgba(228, 228, 228, 0.3);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: min(1400px, 100%);
    margin: 20px auto 40px;
    position: relative;
    border-top: 5px solid var(--accent-color);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    min-width: 0;
}

.container:hover {
    box-shadow: var(--hover-shadow);
}

/* Sayfa başlığı */
.tool-page-header,
.header-section {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.tool-page-header h1,
.header-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.4rem 0;
    line-height: 1.25;
}

.tool-page-subtitle,
.subtitle {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* Tool Info */
.tool-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-icon-img {
    width: 1.5rem;
    height: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.info-content {
    flex: 1;
    color: var(--gray-700);
    line-height: 1.6;
}

.info-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Başlıklar */
h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1em;
    font-weight: 600;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.8em;
    margin-top: 2em;
    padding-bottom: 0.5em;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

h2::before {
    content: '';
    margin-right: 15px;
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(44, 149, 216, 0.25);
}

.filter-section h2::before {
    content: '1';
}

.lists-section h2::before {
    content: '2';
}

.puzzle-section h2::before {
    content: '3';
}

h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 0;
}

/* Bölümler */
.filter-section, .puzzle-section, .lists-section {
    margin-bottom: 40px;
    padding: 35px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(168, 200, 224, 0.12);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
}

/* ESKİ .filter-section stilini kaldırıyoruz veya yorumluyoruz,
   yerine .modern-filter ve .filter-sections kullanılacak.
.filter-section:hover, .puzzle-section:hover, .lists-section:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    background-color: rgba(168, 200, 224, 0.15);
}
*/

/* Aktif bölüm stili */
.active-section {
    background-color: rgba(168, 200, 224, 0.3) !important;
    border-left: 3px solid var(--accent-color) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
}

/* Form Elemanları (Genel input stilleri burada kalabilir) */
.filter-controls input[type="text"],
.filter-controls select, 
.puzzle-controls select, 
.puzzle-controls input[type="text"] { /* Bu seçici .modern-input-group içindeki inputları da etkileyebilir, kontrol edilecek */
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--input-radius);
    font-size: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all var(--transition-speed) ease;
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) inset;
}

/* YENİ FİLTRE STİLLERİ (vocfount'tan uyarlandı) */

.filter-sections { /* HTML'de .filter-section > .filter-sections yapısı var */
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    /* margin-bottom: 25px; Ana .filter-section section elementinin padding'i ile ayarlanabilir */
}

.modern-filter { 
  border-radius: var(--border-radius, 12px); 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-300, #dee2e6); 
  background: linear-gradient(145deg, rgba(235, 238, 242, 0.95), rgba(230, 233, 237, 0.95)); 
  padding: 25px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0; /* .filter-sections gap ile yönetiyor */
}

.modern-filter::before { 
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at top right, var(--primary-light, rgba(168, 200, 224, 0.2)), transparent 70%); 
  border-radius: 0 var(--border-radius, 12px) 0 70px;
  z-index: 0;
  opacity: 0.7;
}

.modern-filter h3 {
  font-size: 1.3rem; 
  color: var(--primary-color, #1e5f8c);
  margin-top: 0; /* Reset margin */
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 12px;
  z-index: 1;
  border-bottom: 2px solid var(--gray-200, #e9ecef);
}

.modern-checkbox-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px; 
}

.modern-checkbox-group .select-all-option {
  width: 100%;
  padding: 0;
  border-bottom: none;
}

.modern-checkbox-group .select-all-option label {
  background-color: var(--primary-color, #1e5f8c);
  color: white;
  padding: 12px 18px;
  border-radius: var(--input-radius, 8px); 
  border: none;
  font-weight: 500; 
  width: auto; 
  display: flex; 
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.modern-checkbox-group .select-all-option label:hover {
  background-color: var(--accent-color, #2c95d8); 
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(44, 149, 216, 0.2); 
}

.modern-checkbox-group .select-all-option input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: var(--accent-color, #2c95d8);
  cursor: pointer;
}

.modern-checkbox-group .select-all-label {
  color: white; 
  position: relative;
  user-select: none;
}

.modern-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); 
  gap: 12px;
}

.modern-option {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0; 
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--input-radius, 8px); 
  background: var(--gray-100, #f8f9fa);
  transition: all 0.25s ease;
  height: 48px; 
  border: 1px solid var(--gray-300, #dee2e6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.modern-option:hover {
  background: var(--gray-200, #e9ecef);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
  border-color: var(--gray-400, #ced4da);
}

.modern-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modern-option span {
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
  color: var(--primary-dark, #0d4166); 
  z-index: 1;
  padding: 5px; 
  text-align: center;
}

.modern-option input[type="checkbox"]:checked + span {
  color: white;
}

.modern-option:has(input[type="checkbox"]:checked) {
  background: var(--accent-color, #2c95d8); 
  border-color: var(--accent-dark, #176bab); 
  box-shadow: 0 3px 8px rgba(44, 149, 216, 0.2);
}

.modern-option[title]::after {
  content: attr(title);
  position: absolute;
  bottom: 100%; 
  left: 50%;
  transform: translateX(-50%) translateY(-5px); 
  background: var(--dark-color, #212529); 
  color: white;
  padding: 6px 10px;
  border-radius: var(--input-radius, 8px);
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.modern-option[title]:hover::after {
  opacity: 1;
  visibility: visible;
}

.modern-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px; 
  position: relative; 
  z-index: 1; 
}

.input-wrapper { 
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.input-label {
  font-weight: 500;
  color: var(--primary-color, #1e5f8c);
  font-size: 1.05rem;
}

.modern-input-group input[type="text"] {
    font-size: 0.95rem;
    padding: 12px 14px; 
}

/* ESKİ FİLTRE KONTROL STİLLERİNİ YORUMA AL */
/*
.filter-controls input[type="text"]:hover,
.filter-controls select:hover,
.puzzle-controls select:hover,
.puzzle-controls input[type="text"]:hover {
    border-color: var(--accent-light);
}

.filter-controls input[type="text"]:focus,
.filter-controls select:focus,
.puzzle-controls select:focus,
.puzzle-controls input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(44, 149, 216, 0.2);
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 25px);
    padding: var(--spacing-4, 16px);
    border: 2px solid var(--border-color, #dee2e6);
    border-radius: var(--radius-md, 8px);
    background: var(--bg-tertiary, #f8f9fa);
    margin-bottom: var(--spacing-4, 16px);
    transition: all var(--transition-base, 0.3s ease);
    align-items: stretch;
}

.filter-row:hover {
    border-color: var(--primary-color, #1e5f8c);
    box-shadow: 0 2px 8px rgba(30, 95, 140, 0.1);
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 12px);
    padding: var(--spacing-3, 12px);
    border: 1px solid var(--border-light, #e9ecef);
    border-radius: var(--radius-sm, 8px);
    background: var(--bg-secondary, #ffffff);
    transition: all var(--transition-base, 0.3s ease);
    align-items: stretch;
    flex: 1;
    min-width: 200px;
    max-width: calc(50% - 12.5px);
    width: 100%;
}

.filter-group:hover {
    border-color: var(--border-hover, #cbd5e1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group label {
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-primary, #333);
    font-size: var(--font-size-sm, 0.875rem);
    display: flex;
    align-items: center;
    gap: var(--spacing-2, 8px);
    margin-bottom: var(--spacing-2, 8px);
}

.filter-group label i {
    color: var(--primary-color, #1e5f8c);
    font-size: var(--font-size-base, 1rem);
}

/* Ses filtreleri yan yana yerleşimi */
.sound-filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg, 25px);
    width: 100%;
}

.sound-filter-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm, 12px);
}

/* Sound mode description wrapper - Ayrı div içinde */
.sound-mode-description-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    box-sizing: border-box;
}

.sound-mode-description-wrapper .sound-mode-description {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Sound mode description ve toggle section için parent container içinde tam genişlik */
.sound-filter-item .sound-mode-description,
.sound-filter-item .toggle-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2, 8px);
    padding: var(--spacing-3, 12px);
    background: var(--bg-tertiary, #f5f5f5);
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border-color, #ddd);
    transition: all var(--transition-base, 0.3s ease);
}

.checkbox-group:hover {
    border-color: var(--border-hover, #667eea);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    padding: var(--spacing-2, 8px) var(--spacing-4, 16px);
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--radius-full, 999px);
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all var(--transition-base, 0.3s ease);
    font-weight: var(--font-weight-medium, 500);
    font-size: var(--font-size-sm, 0.875rem);
}

.checkbox-group label:hover {
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border-color: var(--primary-color, #667eea);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(0,0,0,0.1));
}

.checkbox-group input[type="checkbox"] {
    margin-right: var(--spacing-2, 8px);
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #667eea);
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
}

.filter-button-row {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.filter-group label i {
    color: var(--primary-color, #1e5f8c);
    font-size: var(--font-size-base, 1rem);
}

.filter-group input[type="text"] {
    padding: var(--spacing-3, 12px);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--radius-md, 8px);
    font-size: var(--font-size-base, 1rem);
    font-family: var(--font-family-base, 'Poppins', sans-serif);
    transition: all var(--transition-base, 0.3s ease);
    background: var(--bg-secondary, #ffffff);
    color: var(--text-primary, #333);
}

.filter-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color, #1e5f8c);
    box-shadow: 0 0 0 3px rgba(30, 95, 140, 0.08);
}

/* Butonlar (Genel buton stili zaten var, .filter-button-row HTML'de margin-top aldı) */
button {
    padding: 12px 24px;
    border: none;
    border-radius: var(--button-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.3s ease;
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--button-shadow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Liste Kutuları */
.lists-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.lists-container .list-box {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.list-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.list-box:hover {
    box-shadow: var(--hover-shadow);
}

.list-header {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-sizing: border-box;
}

.list-header h3 {
    margin: 0;
    color: #0d4166;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: -0.3px;
    line-height: 1.2;
    flex-shrink: 0;
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.list-count {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-count::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2c95d8;
    border-radius: 50%;
    flex-shrink: 0;
}

.selected-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 1;
    min-width: 0;
    justify-content: flex-end;
}

.selected-buttons button,
.list-action-button {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-width: 40px;
    height: 36px;
    line-height: 1;
}

.selected-buttons button .button-icon,
.list-action-button .button-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: transform 0.2s ease;
}

.selected-buttons button:hover .button-icon,
.list-action-button:hover .button-icon {
    transform: scale(1.1);
}

.list-action-button {
    background: linear-gradient(135deg, #2c95d8 0%, #1e5f8c 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(44, 149, 216, 0.2);
}

.list-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(44, 149, 216, 0.3);
}

#clear-selected-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

#clear-selected-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

#shuffle-selected-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}

#shuffle-selected-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.list-box ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    flex-grow: 1;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.list-box li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: var(--gray-100);
    border-radius: var(--input-radius);
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-box li:hover {
    background: var(--gray-200);
}

/* Adımlar Göstergesi */
.steps-indicators {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
    padding: 0 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}

.steps-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4rem;
    right: 4rem;
    height: 3px;
    background: linear-gradient(to right, var(--gray-200), var(--gray-300), var(--gray-200));
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    max-width: 200px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    border: 3px solid var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number i {
    font-size: 1.2rem;
}

.step-title {
    font-size: 1rem;
    color: var(--gray-600);
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step-description {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    line-height: 1.3;
}

.step.active .step-number {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 0 6px rgba(44, 149, 216, 0.2), 0 4px 12px rgba(44, 149, 216, 0.3);
    transform: scale(1.1);
}

.step.active .step-title {
    color: var(--accent-color);
    font-weight: 700;
}

.step.active .step-description {
    color: var(--gray-600);
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 1.3rem;
    font-weight: bold;
}

/* Bildirimler */
#alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background: white;
    color: var(--dark-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    animation: slideIn 0.3s ease forwards;
    position: relative;
    padding-right: 40px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.alert::before {
    margin-right: 10px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-success::before {
    content: "\f00c";
    color: #28a745;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border-left: 4px solid #0d6efd;
}

.alert-info::before {
    content: "\f129";
    color: #0d6efd;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-warning::before {
    content: "\f071";
    color: #ffc107;
}

.alert-error, .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-error::before, .alert-danger::before {
    content: "\f06a";
    color: #dc3545;
}

.alert-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    padding: 5px;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.alert-close:hover,
.alert-close:focus {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.alert-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Kullanıcı Başlığı */
.user-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    box-sizing: border-box;
    background: var(--site-chrome-bg-alpha, rgba(50, 67, 94, 0.98)) !important;
    border-bottom: 1px solid var(--site-chrome-border, rgba(255, 255, 255, 0.12)) !important;
    box-shadow: var(--site-chrome-shadow, 0 2px 8px rgba(0, 0, 0, 0.18));
    color: var(--site-chrome-text, rgba(255, 255, 255, 0.88));
}

.user-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    min-width: 0;
}

.user-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.user-header .logo-container-header {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

.user-header .header-logo-img {
    display: block;
    object-position: center;
}

.user-header .araclarim-back,
.user-header .tool-watermark-btn {
    --tool-watermark-color: #ffffff;
    --araclarim-back-color: #ffffff;
}

#userEmail,
#userDisplayName {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--site-chrome-text, rgba(255, 255, 255, 0.88)) !important;
    margin: 0;
    max-width: min(200px, 34vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .pdf-controls .form-group {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    body {
        padding: 12px 14px;
        padding-top: 56px;
        background-attachment: fixed;
    }

    .user-header {
        height: 56px;
        padding: 8px 12px;
    }

    #userDisplayName {
        font-size: 0.82rem;
        max-width: min(140px, 38vw);
    }

    .user-header .tool-watermark-btn--md {
        --tool-watermark-size: 1.65rem;
    }

    .container {
        padding: 20px;
        margin-top: 12px;
    }

    .tool-page-header h1,
    .header-section h1 {
        font-size: 1.35rem;
    }

    .tool-page-subtitle,
    .subtitle {
        font-size: 0.88rem;
    }

    .tool-info {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .steps-indicators {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }

    .steps-indicators::before {
        left: 2rem;
        right: 2rem;
    }

    .step {
        gap: 0.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
    }

    .step-number i {
        font-size: 1rem;
    }

    .step-title {
        font-size: 0.9rem;
    }

    .step-description {
        font-size: 0.75rem;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-group {
        max-width: 100%;
    }

    .sound-filters-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-4, 16px);
    }

    .lists-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
        max-width: 100%;
    }

    .lists-container .list-box {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .list-header {
        padding: 18px;
        gap: 0.9rem;
    }

    .list-header h3 {
        font-size: 1.2rem;
    }

    .header-bottom {
        gap: 0.85rem;
    }

    .list-count {
        font-size: 0.88rem;
    }

    .selected-buttons {
        gap: 0.65rem;
    }

    .selected-buttons button,
    .list-action-button {
        padding: 7.5px 10px;
        min-width: 36px;
        height: 34px;
    }

    .selected-buttons button .button-icon,
    .list-action-button .button-icon {
        width: 16px;
        height: 16px;
    }

    .pdf-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .pdf-controls {
        gap: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .pdf-controls .form-group {
        flex: none;
        gap: 0.6rem;
        width: 100%;
    }

}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column !important;
        gap: 1.2rem !important;
        width: 100% !important;
    }

    .pdf-controls .form-group {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .container {
        padding: 15px;
        margin: 10px auto 15px;
    }

    .tool-page-header h1,
    .header-section h1 {
        font-size: 1.2rem;
    }

    .tool-page-subtitle,
    .subtitle {
        font-size: 0.85rem;
    }

    .tool-info {
        padding: 1rem;
    }

    .info-icon-img {
        width: 1.2rem;
        height: 1.2rem;
    }

    .info-content {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.4em;
    }

    .pdf-header {
        padding: 0.65rem 0.85rem;
        gap: 0.65rem;
    }

    .pdf-icon {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .pdf-icon i {
        font-size: 1rem;
    }

    .pdf-title-section h2 {
        font-size: 1rem;
        margin-bottom: 0.15rem;
    }

    .pdf-title-section p {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .list-header h3 {
        font-size: 1.1rem;
    }

    .header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .list-count {
        font-size: 0.85rem;
        width: 100%;
    }

    .list-count::before {
        width: 6px;
        height: 6px;
    }

    .selected-buttons {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .selected-buttons button,
    .list-action-button {
        padding: 7px 10px;
        flex: 1;
        min-width: calc(50% - 0.25rem);
        max-width: 100%;
        height: 32px;
    }

    .lists-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }

    .lists-container .list-box {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .selected-buttons button .button-icon,
    .list-action-button .button-icon {
        width: 15px;
        height: 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
    }

    .step-number i {
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 0.8rem;
    }

    .step-description {
        font-size: 0.7rem;
    }

    .pdf-generation-section {
        padding: 0;
        border-radius: 16px;
    }

    .pdf-header {
        padding: 0.65rem 1rem;
        gap: 0.65rem;
    }

    .pdf-icon {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }

    .pdf-icon i {
        font-size: 1rem;
    }

    .pdf-title-section h2 {
        font-size: 1.05rem;
        margin-bottom: 0.15rem;
    }

    .pdf-title-section p {
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .pdf-controls {
        padding: 1.25rem 1rem;
        gap: 1.25rem;
    }

    .form-row {
        gap: 1rem;
    }

    .pdf-controls .form-group {
        gap: 0.6rem;
    }

    .pdf-controls input[type="text"] {
        padding: 12px 14px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pdf-controls label {
        font-size: 0.88rem;
        gap: 0.5rem;
    }

    .pdf-controls label i {
        font-size: 0.95rem;
        width: 16px;
    }

    .form-help {
        font-size: 0.75rem;
        padding-left: 0.4rem;
    }

    .pdf-actions {
        gap: 0.85rem;
    }

    #generate-pdf-button,
    .pdf-generate-btn,
    #play-game-button,
    .game-play-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-width: 160px;
    }

    button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #userDisplayName {
        font-size: 0.78rem;
        max-width: min(110px, 34vw);
    }
}

/* BÖLÜM GEÇİŞ STİLLERİ */
.section-container {
    display: none;
}

.section-container.active {
    display: block;
}

/* GEÇİŞ BUTONLARI */
.toggle-buttons {
    display: flex;
    position: relative;
    background-color: rgba(240, 244, 248, 0.95);
    border-radius: 50px;
    width: 320px;
    margin: 0 auto 40px;
    padding: 6px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.toggle-button {
    flex: 1;
    padding: 14px 28px;
    border: none;
    background: none;
    color: #2d4356;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap;
    opacity: 0.85;
}

.toggle-button:hover {
    opacity: 1;
}

.toggle-button.active {
    color: #ffffff;
    opacity: 1;
}

.slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(145deg, #0f2c48, #1c4c7c);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 4px rgba(15, 44, 72, 0.2),
        0 8px 16px rgba(15, 44, 72, 0.1),
        inset 0 -1px 1px rgba(255, 255, 255, 0.1);
}

.toggle-button:nth-child(2).active ~ .slider {
    left: calc(50% + 0px);
}

/* KAVRAM SEÇİM (COMBOBOX) */
.concept-select-container {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 35px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(168, 200, 224, 0.08);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.concept-select-container label {
    display: block;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.3rem;
}

.concept-select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--gray-300);
    border-radius: var(--input-radius);
    background-color: white;
    color: var(--primary-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e5f8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.concept-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.concept-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(44, 149, 216, 0.25);
}

/* PDF Oluşturma Bölümü Stilleri - YENİ TASARIM */
.pdf-generation-section {
    margin-top: 3rem;
    padding: 0;
    background: rgba(240, 242, 245, 0.95);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 95, 140, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-generation-section:hover {
    box-shadow: 
        0 24px 72px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.pdf-generation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, 
        #2c95d8 0%, 
        #1e5f8c 25%, 
        #0d4166 50%, 
        #1e5f8c 75%, 
        #2c95d8 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.pdf-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.pdf-icon {
    background: linear-gradient(135deg, #2c95d8 0%, #1e5f8c 100%);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 
        0 3px 6px rgba(44, 149, 216, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.pdf-icon:hover {
    transform: scale(1.05);
    box-shadow: 
        0 5px 10px rgba(44, 149, 216, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pdf-icon i {
    font-size: 1.15rem;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.pdf-title-section {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.pdf-title-section h2 {
    color: #0d4166;
    margin: 0 0 0.2rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    letter-spacing: -0.2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    display: block;
}

.pdf-title-section h2::before {
    display: none !important;
}

.pdf-title-section p {
    color: #6c757d;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.25rem;
    background: #ffffff;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.pdf-controls .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.pdf-controls .form-group label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #0d4166;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.pdf-controls .form-group label i {
    font-size: 1rem;
    color: #2c95d8;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.pdf-controls input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #ffffff;
    color: #212529;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    margin: 0;
}

.pdf-controls input[type="text"]:focus {
    outline: none;
    border-color: #2c95d8;
    box-shadow: 
        0 0 0 4px rgba(44, 149, 216, 0.1),
        0 4px 12px rgba(44, 149, 216, 0.15);
    transform: translateY(-1px);
}

.pdf-controls input[type="text"]::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.form-help {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    padding-left: 0.4rem;
    font-weight: 400;
    line-height: 1.3;
}

.pdf-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

#generate-pdf-button,
.pdf-generate-btn {
    background: linear-gradient(135deg, #2c95d8 0%, #1e5f8c 100%);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 12px rgba(44, 149, 216, 0.25),
        0 3px 6px rgba(30, 95, 140, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

#generate-pdf-button::before,
.pdf-generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#generate-pdf-button:hover::before,
.pdf-generate-btn:hover::before {
    left: 100%;
}

#generate-pdf-button:hover,
.pdf-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(44, 149, 216, 0.35),
        0 4px 8px rgba(30, 95, 140, 0.25);
}

#generate-pdf-button:active,
.pdf-generate-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 8px rgba(44, 149, 216, 0.25),
        0 2px 4px rgba(30, 95, 140, 0.15);
}

#generate-pdf-button .btn-icon,
.pdf-generate-btn .btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#generate-pdf-button:hover .btn-icon,
.pdf-generate-btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
}

#play-game-button,
.game-play-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: #ffffff;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 12px rgba(40, 167, 69, 0.25),
        0 3px 6px rgba(33, 136, 56, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

#play-game-button::before,
.game-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#play-game-button:hover::before,
.game-play-btn:hover::before {
    left: 100%;
}

#play-game-button:hover,
.game-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(40, 167, 69, 0.35),
        0 4px 8px rgba(33, 136, 56, 0.25);
}

#play-game-button:active,
.game-play-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 8px rgba(40, 167, 69, 0.25),
        0 2px 4px rgba(33, 136, 56, 0.15);
}

#play-game-button .btn-icon,
.game-play-btn .btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

#play-game-button:hover .btn-icon,
.game-play-btn:hover .btn-icon {
    transform: scale(1.1) rotate(-5deg);
}

#generate-pdf-button .spinner-container,
.pdf-generate-btn .spinner-container {
    display: none;
}

#generate-pdf-button.loading .spinner-container,
.pdf-generate-btn.loading .spinner-container {
    display: block;
}

#generate-pdf-button.loading .btn-text,
.pdf-generate-btn.loading .btn-text {
    opacity: 0;
}

/* İnteraktif Oyun Bölümü Stilleri - YENİ TASARIM */
.game-section {
    margin-top: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid #6c5ce7; /* Yeni canlı renk */
    animation: fadeIn 0.5s ease-out;
    display: none; /* Başlangıçta gizli */
    flex-direction: column; /* Dikeyde genişlemek için */
    height: 100%;
}

.game-header {
    position: relative;
    text-align: center;
    min-height: 20px; /* Çok küçük yükseklik */
    padding: 0;
    margin: 0;
    height: auto;
}

.exit-game-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #f1f2f6;
    color: #4a4a4a;
    border: none;
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: none;
}

.exit-game-btn:hover {
    background: #dfe4ea;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.stat-item {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
}

.stat-item i {
    color: var(--accent-color);
}

.game-board {
    display: grid;
    grid-template-columns: min-content 1fr min-content; /* Dinamik olarak JavaScript ile ayarlanır */
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.game-column {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.game-column:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    border-color: var(--gray-300);
}

.game-column h3 {
    text-align: center;
    color: #4a4a4a;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    padding-bottom: 0.3rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    max-height: 2rem; /* Maksimum yükseklik sınırı */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.word-column {
    display: flex;
    flex-direction: column; /* Kelimeleri alt alta diz */
    gap: 1rem;
    align-items: center; /* Sözcükleri ortada hizala */
}

.image-column h3 {
    grid-column: 1 / -1; /* Başlığın tüm sütunlara yayılmasını sağla */
}

#game-words { /* Bu ID artık kullanılmıyor, .word-column'a taşındı */
    display: flex;
    flex-direction: row; /* Kelimelerin yan yana dizilmesini sağla */
    flex-wrap: wrap; /* Yeterli alan yoksa alt satıra geçir */
    gap: 1rem;
    align-content: flex-start; /* Öğeleri yukarıdan hizala */
}

#game-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    align-content: flex-start;
}

.game-word-item {
    padding: 0.8rem 1.5rem;
    background: white;
    border-radius: 50px; /* Hap şeklinde tasarım */
    box-shadow: 0 4px 8px rgba(0,0,0,0.06);
    cursor: grab;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Zıplama efekti için */
    font-weight: 500;
    font-size: 1.05rem;
    text-align: center;
    color: #333;
    border: 1px solid transparent;
    touch-action: none; /* Dokunmatik cihazlarda sürüklerken sayfanın kaymasını engelle */
    width: fit-content;
    min-width: min-content;
    max-width: 100%;
    margin: 0 auto;
}

.game-word-item:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #a29bfe; /* Vurgu rengi */
}

.game-word-item.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: scale(0.95) rotate(-3deg);
    box-shadow: none;
}

.game-word-item.matched {
    opacity: 0.3;
    cursor: not-allowed;
    background: var(--gray-200);
    text-decoration: line-through;
    pointer-events: none; /* Sürüklenemez yapar */
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio - JavaScript ile override edilebilir */
    border-radius: 16px; /* Daha yuvarlak kenarlar */
    background-color: #e0e6f0;
    border: 2px dashed #b8c6e0;
    transition: all 0.25s ease-in-out;
    overflow: hidden;
    box-sizing: border-box; /* Border dahil hesaplama */
}

.image-container.over {
    border-color: #6c5ce7;
    background-color: #e6e3ff;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 3px);
    transition: transform 0.3s ease;
    filter: brightness(0.95);
}

.image-container.correct img {
    filter: brightness(1);
}

.image-container:hover img {
    transform: scale(1.1);
}

.image-container .dropped-word {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) scale(0); /* başlangıç durumu */
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    width: max-content;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    transition: none; /* eski transition'ı kaldır */
}

.image-container.has-word .dropped-word {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.image-container.correct .dropped-word {
    background-color: rgba(40, 167, 69, 0.8);
    animation: bounceIn 0.3s ease;
}

@keyframes bounceIn {
    0% { transform: translateX(-50%) scale(0.5); opacity: 0; }
    80% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.image-container.incorrect .dropped-word {
    background-color: var(--danger-color);
    color: white;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

.image-container::after {
    content: '';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    opacity: 0;
}

.image-container.correct {
    border: 3px solid #00b894; /* Yeni yeşil tonu */
}
.image-container.correct::after {
    content: '\f00c'; /* Check icon */
    background-color: rgba(0, 184, 148, 0.7);
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.image-container.incorrect {
    border: 3px solid #d63031; /* Yeni kırmızı tonu */
    animation: shake 0.5s ease;
}

.image-container.incorrect::after {
    content: '\f00d'; /* Cross icon */
    background-color: rgba(214, 48, 49, 0.7);
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 4rem;
    color: white;
    font-weight: bold;
    z-index: 10;
    pointer-events: none;
    font-family: "Font Awesome 6 Free";
}

/* Dokunmatik sürükleme için ghost element */
.drag-ghost {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 10000 !important;
    opacity: 0.8 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important;
    transition: none !important;
}

.game-controls {
    display: none; /* Butonları gizle, çünkü artık anlık kontrol var */
}

.game-action-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

.game-action-btn#check-answers-button {
    background: linear-gradient(145deg, var(--success-color), #218838);
}

.game-action-btn#play-again-button {
    background: linear-gradient(145deg, var(--gray-700), var(--gray-800));
}

.game-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* --- Splash Screen Modernized --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6f8fb 0%, #e2e8f0 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: splashEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes splashEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.splash-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.splash-logo .logo-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(52, 76, 100, 0.15);
    position: relative;
    overflow: hidden;
}

.logo-inner {
    position: relative;
    z-index: 2;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.splash-title {
    margin-bottom: 30px;
}

.title-main {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #344c64;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.title-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.splash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(52, 76, 100, 0.1);
    border-radius: 50%;
    border-top-color: #344c64;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 0.9rem;
    color: #577399;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

        /* Parçacıklar kaldırıldı - minimal tasarım için */
        .particles {
            display: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(248, 175, 13, 0.6);
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(248, 175, 13, 0.8);
        }

        .particle-1 { top: 20%; left: 10%; animation: particleFloat1 8s ease-in-out infinite; }
        .particle-2 { top: 60%; left: 85%; animation: particleFloat2 10s ease-in-out infinite; }
        .particle-3 { top: 80%; left: 20%; animation: particleFloat3 12s ease-in-out infinite; }
        .particle-4 { top: 30%; left: 70%; animation: particleFloat4 9s ease-in-out infinite; }
        .particle-5 { top: 70%; left: 50%; animation: particleFloat5 11s ease-in-out infinite; }
        .particle-6 { top: 40%; left: 30%; animation: particleFloat6 7s ease-in-out infinite; }

        /* Animasyonlar */
        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes backgroundPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.6; }
        }

        @keyframes logoGradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes logoRotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes logoGlow {
            0%, 100% { opacity: 0.2; transform: scale(1); }
            50% { opacity: 0.4; transform: scale(1.1); }
        }

        @keyframes logoIconScale {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        @keyframes logoIconGlow {
            0%, 100% { filter: drop-shadow(0 0 20px rgba(52, 76, 100, 0.4)); }
            50% { filter: drop-shadow(0 0 30px rgba(52, 76, 100, 0.7)); }
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        @keyframes logoPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        @keyframes logoRing {
            0% { transform: scale(1); opacity: 0.3; }
            50% { transform: scale(1.1); opacity: 0.1; }
            100% { transform: scale(1.2); opacity: 0; }
        }

        @keyframes titleGradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes titleGlow {
            from { 
                text-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
                filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
            }
            to { 
                text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 80px rgba(255, 255, 255, 0.5);
                filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 50px rgba(255, 255, 255, 0.6));
            }
        }

        @keyframes subtitleFade {
            from { opacity: 0.7; }
            to { opacity: 1; }
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes spinnerGlow {
            0%, 100% { box-shadow: 0 0 20px rgba(248, 175, 13, 0.3); }
            50% { box-shadow: 0 0 30px rgba(248, 175, 13, 0.6); }
        }

        @keyframes loadingPulse {
            0%, 100% { opacity: 0.6; }
            50% { opacity: 1; }
        }

        /* Parçacık Animasyonları */
        @keyframes particleFloat1 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
            25% { transform: translate(20px, -30px) scale(1.2); opacity: 1; }
            50% { transform: translate(-10px, -50px) scale(0.8); opacity: 0.8; }
            75% { transform: translate(30px, -20px) scale(1.1); opacity: 0.9; }
        }

        @keyframes particleFloat2 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            33% { transform: translate(-25px, 20px) scale(1.3); opacity: 1; }
            66% { transform: translate(15px, -40px) scale(0.7); opacity: 0.7; }
        }

        @keyframes particleFloat3 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
            20% { transform: translate(40px, -25px) scale(1.4); opacity: 0.9; }
            40% { transform: translate(-20px, -60px) scale(0.6); opacity: 0.6; }
            60% { transform: translate(25px, 15px) scale(1.1); opacity: 0.8; }
            80% { transform: translate(-35px, -10px) scale(0.9); opacity: 0.7; }
        }

        @keyframes particleFloat4 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
            30% { transform: translate(-30px, -35px) scale(1.2); opacity: 1; }
            60% { transform: translate(20px, -20px) scale(0.8); opacity: 0.5; }
            90% { transform: translate(-15px, 25px) scale(1.1); opacity: 0.8; }
        }

        @keyframes particleFloat5 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
            25% { transform: translate(35px, -15px) scale(1.3); opacity: 0.9; }
            50% { transform: translate(-25px, -45px) scale(0.7); opacity: 0.4; }
            75% { transform: translate(15px, 30px) scale(1.0); opacity: 0.8; }
        }

        @keyframes particleFloat6 {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
            40% { transform: translate(-20px, -30px) scale(1.1); opacity: 0.8; }
            80% { transform: translate(30px, -10px) scale(0.9); opacity: 0.6; }
        }

        /* Responsive Tasarım */
        @media (max-width: 768px) {
            .splash-content { padding: 0 2rem; }
            .logo-circle { width: 140px; height: 140px; }
            .logo-inner { width: 90px; height: 90px; }
            .logo-icon { width: 3.5rem; height: 3.5rem; }
            .title-main { font-size: 3.2rem; letter-spacing: 1px; }
            .title-subtitle { font-size: 1.1rem; }
            .loading-spinner { width: 45px; height: 45px; }
            .loading-text { font-size: 1rem; }
        }

        @media (max-width: 480px) {
            .splash-content { padding: 0 1rem; }
            .logo-circle { width: 120px; height: 120px; }
            .logo-inner { width: 80px; height: 80px; }
            .logo-icon { width: 3rem; height: 3rem; }
            .title-main { font-size: 2.8rem; letter-spacing: 1px; }
            .title-subtitle { font-size: 1rem; }
            .splash-logo { margin-bottom: 1.5rem; }
            .splash-title { margin-bottom: 1.5rem; }
            .loading-spinner { width: 40px; height: 40px; }
            .loading-text { font-size: 0.9rem; }
        }

@media (max-width: 992px) and (orientation: portrait) {
    .game-board {
        grid-template-columns: 1fr; /* Mobilde tek sütuna düşür (dikey ekranda) */
        gap: 2rem;
        position: relative; /* Geri bildirim ikonu için */
    }
    .word-column {
        flex-direction: row; /* Mobilde kelimeleri yan yana diz */
        flex-wrap: wrap;
        justify-content: center;
        order: 2; /* Resimlerden sonra gelmesini sağla */
    }
    #game-words { /* Bu ID artık kullanılmıyor, .word-column'a taşındı */
        flex-direction: row;
        flex-wrap: wrap;
    }
    body.game-active #game-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .game-section {
        padding: 1rem;
    }
    .game-header h2 {
        font-size: 1.8rem;
        margin-top: 2.5rem;
    }
    .game-header::before {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .game-header p {
        font-size: 1rem;
    }
    .game-controls {
        flex-direction: column;
        gap: 0.8rem;
    }
    .game-action-btn {
        font-size: 1rem;
    }
}
  
/* Oyun Ön Yükleyici Stilleri */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.preloader-box {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.preloader-box .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.preloader-box .loading-text {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
  
#game-images h3 {
    grid-column: 1 / -1; /* Başlığın tüm sütunlara yayılmasını sağla */
}

/* Tam Ekran Oyun Modu */
body.game-active {
    overflow: hidden; /* Ana sayfa scrollbar'ını gizle */
    margin: 0;
    padding: 0 !important; /* Header boşluğu dahil tüm padding'i kaldır */
    padding-top: 0 !important;
}

body.game-active .user-header {
    display: none; /* Oyun modunda header'ı tamamen gizle */
}

body.game-active .container {
    display: none; /* Container tamamen gizlendi */
}

body.game-active #game-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 1rem;
    border-radius: 0;
    max-width: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    background: linear-gradient(135deg, #f5f7fa, #eef2f7);
    box-shadow: none;
}

/* Mobil cihazlar için dinamik viewport boyutları */
@supports (height: 100dvh) {
    body.game-active #game-section {
        width: 100dvw; /* Dinamik viewport width - mobil için */
        height: 100dvh; /* Dinamik viewport height - mobil adres çubuğu için */
        max-height: 100dvh;
    }
}

body.game-active .game-board {
    flex-grow: 1; /* Kalan dikey alanı doldur */
    min-height: 0; /* Flexbox'ın taşma sorununu çözmek için */
    display: grid;
    grid-template-columns: min-content 1fr min-content; /* Sol kelimeler, görseller, sağ kelimeler */
    grid-template-rows: 1fr; /* Tek satır, tüm yüksekliği kapla */
    height: 100%; /* Tüm yüksekliği kullan */
    align-items: stretch; /* Tüm sütunları aynı yüksekliğe çek */
}

body.game-active .game-column {
    overflow-y: visible; /* Scroll'u kaldır */
    overflow-x: visible;
    height: 100%; /* Grid ile aynı yüksekliğe çek */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body.game-active .word-column {
    overflow-y: visible; /* Scroll'u kaldır */
    overflow-x: visible;
    flex-wrap: wrap; /* Çok sayıda kelime olduğunda alt satıra geç */
    align-content: flex-start; /* Yukarıdan başla */
    flex-direction: row; /* Yatay dizilim */
    gap: 0.3rem; /* Kompakt gap */
    flex-grow: 1; /* Kalan alanı doldur */
    height: 100%; /* Tüm yüksekliği kullan */
}

body.game-active .image-column {
    overflow-y: hidden; /* Scroll'u kaldır, görseller dinamik boyutlandırılacak */
    overflow-x: hidden;
    height: 100%; /* Tüm yüksekliği kullan */
    display: flex;
    flex-direction: column;
}

body.game-active #game-images {
    flex-grow: 1; /* Kalan dikey alanı doldur */
    height: 100%; /* Tüm yüksekliği kullan */
    display: grid;
    align-content: start; /* Görselleri yukarıdan başlat */
    overflow-y: auto; /* Gerekirse scroll */
    overflow-x: hidden;
}

/* Oyun modunda kelimeleri büyüt */
body.game-active .game-word-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 992px) {
    body.game-active #game-section {
        padding: 0.5rem;
    }
    
    body.game-active .game-board {
        gap: 1rem;
        grid-template-columns: min-content 1fr min-content; /* Mobilde de aynı grid yapısı */
        grid-template-rows: 1fr; /* Tek satır */
        height: 100%; /* Tüm yüksekliği kullan */
    }
    
    /* Masaüstü görünümde de kelimeleri küçült ve wrap yap */
    body.game-active .word-column {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
        overflow: visible !important;
        height: 100% !important; /* Tüm yüksekliği kullan */
    }
    
    body.game-active .word-column .game-word-item {
        padding: 0.4rem 0.8rem !important; /* Biraz daha büyük padding */
        font-size: 0.75rem !important; /* Biraz daha büyük font */
        line-height: 1.3 !important;
        white-space: nowrap !important;
    }
    
    body.game-active #game-images {
        height: 100% !important; /* Tüm yüksekliği kullan */
        flex-grow: 1 !important; /* Kalan alanı doldur */
    }
}

/* Geri Bildirim ve Bitiş Animasyonları */
.feedback-indicator {
    position: fixed; /* Fixed position - container'a göre konumlandırılabilir */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: bold;
    color: transparent;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.feedback-indicator.show {
    animation: feedback-anim 0.7s ease-out;
}

.feedback-indicator.correct {
    color: #00b894;
    text-shadow: 0 0 20px rgba(0, 184, 148, 0.5);
}

.feedback-indicator.incorrect {
    color: #d63031;
    text-shadow: 0 0 20px rgba(214, 48, 49, 0.5);
}

@keyframes feedback-anim {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.completion-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.completion-overlay-container.show {
    opacity: 1;
    pointer-events: auto;
}

.completion-box {
    background: linear-gradient(145deg, #ffffff, #f8f9fa); /* Hafif gradyan */
    padding: 3rem;
    border-radius: 20px; /* Daha yuvarlak kenarlar */
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* İkon için */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top: 5px solid #00b894;
    max-width: 500px;
    width: 90%;
}

.completion-box::before {
    content: '\f091'; /* Font Awesome kupa ikonu */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: #00b894;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.completion-overlay-container.show .completion-box {
    transform: scale(1);
}

.completion-box h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    color: #00b894;
    margin-top: 2.5rem; /* İkon için boşluk */
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.completion-box p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.completion-actions .game-action-btn,
.completion-actions .exit-game-btn {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
}

.completion-actions .exit-game-btn {
    position: static; /* Diğer 'exit-btn' den gelen pozisyonu sıfırla */
    transform: none;  /* Transformu sıfırla */
    background: transparent;
    color: #8c9bb0; /* Soluk metin rengi */
    border: 2px solid #dfe4ea; /* Açık gri kenarlık */
    box-shadow: none;
}

.completion-actions .exit-game-btn:hover {
    background-color: #ffeff1; /* Çok hafif kırmızı arka plan */
    color: #d63031;           /* Kırmızı metin rengi */
    border-color: #fab1a0;    /* Yumuşak kırmızı kenarlık */
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: #8c9bb0;
    text-align: center;
    font-weight: 500;
}

.image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.image-placeholder span {
    font-size: 1rem;
    padding: 0 0.5rem;
}

/* OYUN İÇİN MOBİL UYUMLULUK EKLEMELERİ */

@media (max-width: 992px) {
    /* OYUN ELEMANLARINI KÜÇÜLTME */
    body.game-active .game-column h3 {
        font-size: 0.7rem;
        padding-bottom: 0.3rem;
        margin-bottom: 0.3rem;
    }
    body.game-active #game-images {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
        height: 100% !important; /* Tüm yüksekliği kullan */
        flex-grow: 1 !important; /* Kalan alanı doldur */
    }
    body.game-active .game-word-item {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    body.game-active .image-container {
        border-radius: 12px;
    }
    body.game-active .feedback-indicator {
        font-size: 10rem;
    }
}

@media (max-width: 768px) {
    /* OYUN İÇİN MOBİL UYUMLULUK (768px) */
    body.game-active .game-board {
        gap: 1rem;
        grid-template-columns: min-content 1fr min-content; /* Grid yapısı korunur */
        grid-template-rows: 1fr; /* Tek satır */
        height: 100%; /* Tüm yüksekliği kullan */
    }
    body.game-active #game-images {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
        height: 100% !important; /* Tüm yüksekliği kullan */
        flex-grow: 1 !important; /* Kalan alanı doldur */
    }
    body.game-active .game-column h3 {
        font-size: 0.65rem;
    }
    body.game-active .game-word-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* OYUN ELEMANLARI EN KÜÇÜK BOYUT (480px) */
    body.game-active #game-section {
        padding: 1rem 0.5rem;
    }
    body.game-active .game-board {
        gap: 1rem;
        grid-template-columns: min-content 1fr min-content; /* Grid yapısı korunur */
        grid-template-rows: 1fr; /* Tek satır */
        height: 100%; /* Tüm yüksekliği kullan */
    }
    body.game-active #game-images {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 0.5rem;
        height: 100% !important; /* Tüm yüksekliği kullan */
        flex-grow: 1 !important; /* Kalan alanı doldur */
    }
    body.game-active .image-container {
        border-width: 1px;
        border-radius: 8px;
    }
    body.game-active .game-column {
        padding: 0.8rem;
    }
    body.game-active .game-column h3 {
        font-size: 0.6rem;
    }
    body.game-active .game-word-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    body.game-active .feedback-indicator {
        font-size: 8rem;
    }
    body.game-active .completion-box h2 {
        font-size: 2.5rem;
    }
    body.game-active .completion-box p {
        font-size: 1rem;
    }
}

/* YATAY EKRAN İÇİN EK MOBİL UYUMLULUK */
@media (orientation: landscape) and (max-height: 500px) {
    body.game-active #game-section {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    /* Game header'ı çok küçük yap */
    body.game-active .game-header {
        min-height: 10px !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    /* Yatay ekranda 3 sütunlu düzeni zorla */
    body.game-active .game-board {
        display: grid !important;
        grid-template-columns: 1fr 2fr 1fr !important; /* Sol: sözcükler, Orta: resimler (2x), Sağ: sözcükler */
        grid-template-rows: 1fr !important; /* Tek satır */
        gap: 0.5rem !important;
        position: relative !important;
        height: 100% !important; /* Tüm yüksekliği kullan */
    }

    /* Sözcük kolonlarının sırasını ve konumunu düzelt */
    body.game-active #game-words-left {
        order: 1 !important;
        grid-column: 1 !important;
    }

    body.game-active #game-images {
        order: 2 !important;
        grid-column: 2 !important;
        height: 100% !important; /* Tüm yüksekliği kullan */
        flex-grow: 1 !important; /* Kalan alanı doldur */
    }

    body.game-active #game-words-right {
        order: 3 !important;
        grid-column: 3 !important;
    }

    /* Kelimelerin kompakt dizilmesini sağla - scroll yok */
    body.game-active .word-column {
        display: flex !important;
        flex-direction: row !important; /* Yatay dizilim */
        flex-wrap: wrap !important; /* Alt satıra geç */
        gap: 0.25rem !important; /* Çok küçük gap */
        align-content: flex-start !important; /* Yukarıdan başla */
        justify-content: center !important; /* Ortada hizala */
        overflow: visible !important; /* Scroll yok */
        height: auto !important; /* İçeriğe göre yükseklik */
        max-height: 100% !important;
    }

    /* Sözcük öğelerini mümkün olduğunca küçült */
    body.game-active .word-column .game-word-item {
        padding: 0.35rem 0.7rem !important; /* Biraz daha büyük padding */
        font-size: 0.65rem !important; /* Biraz daha büyük font */
        margin: 0 !important;
        min-height: auto !important;
        width: fit-content !important;
        min-width: min-content !important;
        max-width: 100% !important;
        line-height: 1.3 !important; /* Daha kompakt satır yüksekliği */
        white-space: nowrap !important; /* Kelimeyi tek satırda tut */
    }

    body.game-active .game-column {
        padding: 0.4rem !important;
    }

    body.game-active .game-column h3 {
        font-size: 0.6rem !important;
        padding-bottom: 0.2rem !important;
        margin-bottom: 0.3rem !important;
    }

    body.game-active #game-images {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)) !important;
        gap: 0.4rem !important;
    }

    body.game-active .image-container {
        border-radius: 6px !important;
    }
    
    body.game-active .exit-game-btn {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.65rem !important;
        top: 5px !important;
        right: 5px !important;
    }

    body.game-active .feedback-indicator {
        font-size: 6rem;
    }

    body.game-active .completion-box {
        padding: 1.5rem;
        max-width: 400px;
    }

    body.game-active .completion-box::before {
        width: 60px;
        height: 60px;
        top: -35px;
        font-size: 2rem;
    }

    body.game-active .completion-box h2 {
        font-size: 2rem;
        margin-top: 1.5rem;
    }

    body.game-active .completion-box p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

/* Ses Grupları Dropdown Stilleri */
.sound-input-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    flex-direction: column;
}

.sound-input-main-row {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.sound-input-container input[type="text"] {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Hedef ses inputu - Yeşil arka plan */
#sound {
    background-color: #dcfce7 !important;
    border-color: #86efac !important;
}

#sound:focus {
    background-color: #bbf7d0 !important;
    border-color: #4ade80 !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

/* Hariç tutulacak sesler inputu - Kırmızı arka plan */
#exclude-letters {
    background-color: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

#exclude-letters:focus {
    background-color: #fecaca !important;
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Alofon seçim alanı stilleri */
.alofon-selection-container {
    margin-top: 0;
    margin-left: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alofon-group {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.alofon-group.flash-animation {
    animation: flash 0.3s ease-in-out;
}

@keyframes flash {
    0%, 100% { background-color: #f8fafc; }
    50% { background-color: #e0f2fe; }
}

.alofon-group label {
    font-weight: 600;
    font-size: 0.9em;
    color: #475569;
}

.alofon-select {
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.7em;
    color: #334155;
    background-color: white;
    outline: none;
    cursor: pointer;
    width: auto;
    min-width: 80px;
}

.alofon-select:hover {
    border-color: #3b82f6;
}

.sound-groups-select {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    box-sizing: border-box;
}

.sound-groups-select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(44, 149, 216, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.sound-groups-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(44, 149, 216, 0.1), 0 4px 16px rgba(44, 149, 216, 0.2);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}

.sound-groups-select:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(44, 149, 216, 0.2);
}

.sound-groups-select option {
    padding: 12px 16px;
    background: #ffffff;
    color: #2c3e50;
    font-weight: 500;
    border: none;
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.2s ease;
}

.sound-groups-select option:last-child {
    border-bottom: none;
}

.sound-groups-select option:hover {
    background: #f8f9fa;
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.sound-groups-select option:checked {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: var(--accent-color);
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .sound-input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .sound-input-container input[type="text"],
    .sound-groups-select {
        flex: none;
        width: 100%;
    }
    
    .sound-groups-select {
        min-width: auto;
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sound-groups-select {
        padding: 8px 12px;
        font-size: 12px;
        background-size: 14px;
        padding-right: 36px;
    }
}

/* Toggle Switch Stilleri */
.toggle-section {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
    flex: 1;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    width: 54px;
    height: 28px;
    background-color: #ced4da;
    border-radius: 28px;
    transition: all 0.3s ease;
    margin-right: 12px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(26px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-label {
    font-weight: 600;
    user-select: none;
    color: #495057;
}

.toggle-info-text {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.1);
}

.toggle-info-text p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #856404;
}

.toggle-info-text p:last-child {
    margin-bottom: 0;
}

.toggle-info-text strong {
    color: #533f03;
    font-weight: 600;
}

/* Açık mod için mavi tema */
#toggle-info-text-open {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #17a2b8;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.1);
}

#toggle-info-text-open p {
    color: #0c5460;
}

#toggle-info-text-open strong {
    color: #062c33;
    font-weight: 600;
}

.info-btn {
    background: rgba(108, 117, 125, 0.1);
    border: 1px solid #dee2e6;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.info-btn:hover {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-btn svg {
    width: 16px;
    height: 16px;
}

/* Sound Mode Description Styles */
.sound-mode-description {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.sound-mode-description:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.sound-mode-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sound-mode-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sound-mode-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.sound-mode-description:hover .sound-mode-icon-wrapper {
    background-color: #e0f2fe;
    color: #0284c7;
}

.sound-mode-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.2;
}

.sound-mode-content {
    padding-left: 44px; /* 32px icon + 12px gap */
}

.sound-mode-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.sound-mode-description:empty {
    display: none;
}

@keyframes flash-bg {
    0% { 
        background-color: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        transform: scale(1);
    }
    25% {
        background-color: #ffedd5;
        border-color: #fdba74;
        box-shadow: 0 0 15px rgba(251, 146, 60, 0.3);
        transform: scale(1.02);
    }
    50% {
        background-color: #ffffff;
        border-color: #e2e8f0;
        transform: scale(1);
    }
    75% {
        background-color: #ffedd5;
        border-color: #fdba74;
        box-shadow: 0 0 15px rgba(251, 146, 60, 0.3);
        transform: scale(1.02);
    }
    100% { 
        background-color: #ffffff; 
        border-color: #e2e8f0;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        transform: scale(1);
    }
}

.sound-mode-description.flash-animation {
    animation: flash-bg 2s ease-out;
}

/* Pozisyon bölümü inaktif durumu */
.filter-group[style*="pointer-events: none"] {
    opacity: 0.5 !important;
    pointer-events: none !important;
}

.filter-group[style*="pointer-events: none"] input[type="checkbox"] {
    cursor: not-allowed !important;
    opacity: 0.5;
}

.filter-group[style*="pointer-events: none"] label {
    cursor: not-allowed !important;
    color: #999;
}

@media (max-width: 768px) {
    .toggle-section {
        padding: 12px;
        margin-top: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .toggle-wrapper {
        gap: 8px;
    }
    
    .toggle-label {
        font-size: 14px;
    }

    .sound-mode-description {
        width: 100%;
        max-width: 100%;
    }

    .sound-mode-description-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }

    /* Mobilde parent container içinde tam genişlik */
    .sound-filter-item .sound-mode-description,
    .sound-filter-item .toggle-section {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 480px) {
    .toggle-section {
        padding: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .toggle-info-text {
        padding: 10px 12px;
        font-size: 12px;
    }

    .sound-mode-description {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }

    .sound-mode-description-wrapper {
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }

    /* Küçük mobilde parent container içinde tam genişlik */
    .sound-filter-item .sound-mode-description,
    .sound-filter-item .toggle-section {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Modern Notification Styles */
.modern-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 450px;
    min-width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.modern-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.modern-notification-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.modern-notification-error {
    border-left: 4px solid #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.modern-notification-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.modern-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #1f2937;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

.modern-notification-content svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.modern-notification-success .modern-notification-content svg {
    color: #10b981;
}

.modern-notification-error .modern-notification-content svg {
    color: #ef4444;
}

.modern-notification-info .modern-notification-content svg {
    color: #3b82f6;
}

.modern-notification-content span {
    flex: 1;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .modern-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .modern-notification-content {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .modern-notification-content svg {
        width: 18px;
        height: 18px;
    }
}

/* Danışan Dropdown Stilleri */
.danisan-input-wrapper {
    position: relative;
    width: 100%;
}

.danisan-input-wrapper input[type="text"] {
    padding-right: 45px;
}

.danisan-dropdown-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color, #2c3e50);
    transition: all 0.2s ease;
    border-radius: 4px;
    z-index: 1;
}

.danisan-dropdown-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--accent-color, #2c9cdb);
}

.danisan-dropdown-btn.active {
    color: var(--accent-color, #2c9cdb);
}

.danisan-dropdown-btn.active svg {
    transform: rotate(180deg);
}

.danisan-dropdown-btn svg {
    transition: transform 0.2s ease;
}

.danisan-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border-color, #e1e5e9);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: min(300px, calc(100vh - 200px));
    overflow: hidden;
    flex-direction: column;
}

.danisan-dropdown-menu.show {
    display: flex;
}

.danisan-dropdown-search {
    padding: 8px;
    border-bottom: 1px solid var(--border-color, #e1e5e9);
}

.danisan-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color, #e1e5e9);
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.danisan-search-input:focus {
    outline: none;
    border-color: var(--accent-color, #2c9cdb);
    box-shadow: 0 0 0 2px rgba(44, 156, 219, 0.1);
}

.danisan-dropdown-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 4px 0;
}

.danisan-dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-color, #2c3e50);
}

.danisan-dropdown-item:hover {
    background-color: #f0f7ff;
    color: var(--accent-color, #2c9cdb);
}

.danisan-dropdown-item.selected {
    background-color: var(--accent-color, #2c9cdb);
    color: white;
    font-weight: 600;
}

.danisan-dropdown-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted, #6b7280);
    font-size: 0.9rem;
    font-style: italic;
}

.danisan-dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.danisan-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.danisan-dropdown-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.danisan-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Info Modal Styles */
.info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.info-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.info-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #eee;
}

.info-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.info-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.info-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.info-modal-body {
    padding: 24px;
}

.info-explanation h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
}

.modal-title-icon {
    width: 20px;
    height: 20px;
}

.info-mode {
    margin: 20px 0;
}

.mode-item {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.mode-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mode-icon {
    font-size: 18px;
}

.info-example {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-example h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
}

.example-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.example-side {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.example-side h6 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #495057;
}

.example-side ul {
    margin: 8px 0;
    padding-left: 20px;
    font-size: 12px;
}

.info-tip {
    margin: 20px 0;
    padding: 16px;
    background: #e7f3ff;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.info-tip strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #1976D2;
}

.info-tip ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.info-important {
    margin: 20px 0 0 0;
    padding: 16px;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.info-important strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #856404;
}

.info-important ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .info-modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .info-modal-header {
        padding: 16px 20px 12px;
    }

    .info-modal-header h3 {
        font-size: 16px;
    }

    .info-modal-body {
        padding: 20px;
    }

    .example-comparison {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .info-modal-content {
        width: 98%;
        max-height: 90vh;
    }

    .info-modal-header {
        padding: 14px 16px 10px;
    }

    .info-modal-header h3 {
        font-size: 15px;
    }

    .info-modal-body {
        padding: 16px;
    }

    .info-explanation h4 {
        font-size: 14px;
    }

    .info-example h5 {
        font-size: 13px;
    }
}

/* Eşleştirme materyal listesi ve PDF önizleme modal */
.eslestirme-materials-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.eslestirme-materials-modal.active {
    display: flex;
}

.eslestirme-materials-modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    width: min(calc(100vw - 24px), 100%);
    max-width: calc(100vw - 24px);
    height: min(calc(100vh - 24px), 98vh);
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.eslestirme-materials-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.eslestirme-materials-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.eslestirme-materials-modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1;
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eslestirme-materials-modal-close:hover {
    background: var(--bg-primary);
    border-color: var(--gray-400);
}

.eslestirme-materials-filter-wrap {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.eslestirme-materials-danisan-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 180px;
}

.eslestirme-materials-date-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    transition: background 0.2s, border-color 0.2s;
}

.eslestirme-materials-date-wrap:hover {
    background: var(--bg-tertiary);
    border-color: var(--gray-400);
}

.eslestirme-materials-date-icon {
    font-size: 1rem;
    pointer-events: none;
}

.eslestirme-materials-date-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
    font-size: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.eslestirme-materials-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

.eslestirme-materials-list-wrap {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 120px;
}

.eslestirme-materials-loading,
.eslestirme-materials-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 24px;
    font-size: 0.95rem;
}

.eslestirme-materials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eslestirme-materials-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.eslestirme-materials-row .eslestirme-materials-danisan {
    grid-column: 1;
    grid-row: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.eslestirme-materials-row .eslestirme-materials-title {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.eslestirme-materials-row .eslestirme-materials-date {
    grid-column: 2;
    grid-row: 1;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.eslestirme-materials-row .eslestirme-materials-preview-btn {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
}

.eslestirme-materials-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: url('../assets/slimicons/orange-hand-pointer.svg'), auto !important;
    color: var(--text-secondary);
    transition: background 0.2s, border-color 0.2s;
}

.eslestirme-materials-preview-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--gray-400);
}

/* PDF stil seçici */
.eslestirme-pdf-style-group {
    margin-top: 0.5rem;
}

.eslestirme-pdf-style-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.eslestirme-pdf-style-card {
    cursor: pointer;
    margin: 0;
}

.eslestirme-pdf-style-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eslestirme-pdf-style-card__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 2px solid var(--gray-200, #e2e8f0);
    border-radius: 10px;
    background: var(--bg-secondary, #fff);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    min-height: 100%;
}

.eslestirme-pdf-style-card input:checked + .eslestirme-pdf-style-card__inner {
    border-color: var(--primary, #0d9488);
    background: rgba(13, 148, 136, 0.06);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15);
}

.eslestirme-pdf-style-card__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #1e293b);
}

.eslestirme-pdf-style-card__desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-secondary, #64748b);
}

@media (max-width: 640px) {
    .eslestirme-pdf-style-options {
        grid-template-columns: 1fr;
    }
}

.eslestirme-pdf-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.eslestirme-pdf-preview-modal.active {
    display: flex;
}

.eslestirme-pdf-preview-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 12px;
    width: min(calc(100vw - 24px), 100%);
    max-width: calc(100vw - 24px);
    height: min(calc(100vh - 24px), 98vh);
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.eslestirme-pdf-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.eslestirme-pdf-preview-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.eslestirme-pdf-preview-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eslestirme-pdf-preview-download-btn.lingo-pdf-preview-btn { /* shared */ }

.eslestirme-pdf-preview-download-btn.lingo-pdf-preview-btn:hover { /* shared */ }

.eslestirme-pdf-preview-iframe {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

#eslestirme-pdf-preview-loading.eslestirme-materials-loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* Local preview header deferred to lingo-pdf-preview-actions.css */
[class*="-pdf-preview-header"].lingo-pdf-preview-header,
[class*="-pdf-preview-header"].lingo-pdf-preview-header h3,
[class*="-pdf-preview-header-actions"].lingo-pdf-preview-header-actions,
[class*="-pdf-preview-download-btn"].lingo-pdf-preview-btn,
[class*="-pdf-preview-download-btn"].lingo-pdf-preview-btn:hover {
  /* shared design wins via pdf-preview-actions.css */
}
