/* Reset ve temel stiller */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px; 
    perspective: 1000px;
    color: #1a1a1a;
    line-height: 1.6;
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
}

/* Header stilleri */
.header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.header h1 { 
    color: #1a73e8; 
    margin-bottom: 10px; 
}

/* Ana grid yapısı */
.main { 
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

/* Kullanım adımları */
.usage-steps {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.usage-steps h2 {
    color: #495057;
    margin: 0;
    font-size: 1.6em;
}

.toggle-btn {
    background: rgba(73, 80, 87, 0.1);
    border: 2px solid rgba(73, 80, 87, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-size: 1.2em;
}

.toggle-btn:hover {
    background: rgba(73, 80, 87, 0.2);
    border-color: rgba(73, 80, 87, 0.4);
    transform: scale(1.1);
}

.toggle-btn .material-icons {
    transition: transform 0.3s ease;
    font-size: 1.4em;
}

.toggle-btn.collapsed .material-icons {
    transform: rotate(180deg);
}

.steps-container {
    display: grid;
    gap: 15px;
    max-width: 800px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    margin: 0 auto;
}

.steps-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #007AFF;
    transition: all 0.2s ease;
}

.step-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.step-number {
    background: #007AFF;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #495057;
    font-size: 1.05em;
}

.step-example {
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.step-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9em;
    color: #d63384;
}

/* Kart oluşturma seçenekleri */
.creation-options {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.creation-options h2 {
    color: #1a73e8;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.option-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.option-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.option-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #007AFF;
}

.option-btn.ai-option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.option-btn.manual-option:hover {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
}

.option-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.option-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.option-desc {
    font-size: 0.95em;
    color: #666;
    line-height: 1.4;
}

.option-btn:hover .option-desc {
    color: rgba(255,255,255,0.9);
}

/* Bölüm başlıkları */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    color: white;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.91);
    transform: translateX(-2px);
}

/* Yapay Zeka Bölümü */
.ai-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ai-section h2 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.ai-section h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ai-section label {
    color: #ffffff; /* Tam kontrast */
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 0.2px;
    margin-bottom: 8px;
}

.ai-section textarea {
    background: #ffffff;
    border: 2px solid rgba(255,255,255,0.65);
    color: #1a1a1a;
    font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    padding: 14px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* AI alanları için daha belirgin yükseklikler */
.ai-section #wordList { min-height: 140px; }
.ai-section #aiPrompt { min-height: 220px; }

/* Odak durumunu belirgin yap */
.ai-section textarea:focus {
    outline: none;
    border-color: #ffd166;
    box-shadow: 0 0 0 3px rgba(255,209,102,0.45);
}

.ai-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-weight: 600;
    font-size: 1.1em;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    margin: 10px 0;
    border: none;
    cursor: pointer;
}

.ai-btn:hover {
    background: linear-gradient(135deg, #ee5a52, #e84545);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.ai-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.ai-buttons .ai-btn {
    flex: 1;
    margin: 0;
}

.chatgpt-btn {
    background: linear-gradient(135deg, #10a37f, #0d8f6f) !important;
}

.chatgpt-btn:hover {
    background: linear-gradient(135deg, #0d8f6f, #0a6d5d) !important;
    box-shadow: 0 6px 20px rgba(16, 163, 127, 0.4) !important;
}

.ai-instructions {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.ai-instructions ol {
    margin-left: 20px;
    color: rgba(255,255,255,0.9);
}

.ai-instructions code {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Form ve önizleme bölümleri */
.form-section, .preview-section { 
    background: white; 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    margin-bottom: 20px;
}

.form-group { 
    margin-bottom: 15px; 
}

label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
}

input, textarea { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
}

/* Buton stilleri */
.btn { 
    background: #1a73e8; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    margin: 5px; 
}

.btn:hover { 
    background: #1557b0; 
}

/* Kart öğeleri */
.card-item { 
    background: #f8f9fa; 
    padding: 15px; 
    margin-bottom: 10px; 
    border-radius: 5px; 
    border-left: 4px solid #1a73e8; 
}

/* Dışa aktar bölümü */
.export-section { 
    text-align: center; 
    margin: 30px 0; 
}

/* Önizleme */
.study-mode { 
    background: white; 
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    margin-top: 20px; 
}

/* Flashcard stilleri */
.flashcard { 
    background: transparent;
    width: 380px;
    height: 520px;
    margin: 30px auto; 
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.flashcard:hover {
    transform: translateY(-5px);
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border-radius: 20px;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

@keyframes cardHover {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-3px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    backface-visibility: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-back {
    transform: rotateY(180deg);
    background: #ffffff;
}



.word-container, .example-container, .meaning-container, .translation-container {
    display: flex;
    align-items: center; /* Tam ortadan hizalama */
    justify-content: center;
    margin-bottom: 20px;
    min-height: 30px; /* Minimum yüksekliği küçült */
    text-align: center;
    flex-wrap: nowrap; /* Tek satırda tut */
    gap: 8px; /* Aralarında boşluk */
}

/* Cümle container'ı için özel ayar */
.example-container {
    min-height: 25px; /* Daha küçük minimum yükseklik */
    align-items: center; /* Tam ortadan hizalama */
}

.flashcard-word, .flashcard-meaning { 
    font-size: 2.8em; 
    font-weight: 700; 
    color: #1a1a1a; 
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-align: center;
}

.flashcard-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.flashcard-content, .flashcard-translation {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 0; /* Margin'i kaldır */
    line-height: 1.2; /* Line height'ı küçült */
    text-align: center;
    font-style: italic;
    display: flex;
    align-items: center; /* İçeriği ortala */
}

.tts-button {
    background: #007AFF;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.7em;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle; /* Orta hizalama */
    pointer-events: auto;
    position: relative;
    z-index: 100;
    isolation: isolate;
    flex-shrink: 0;
}

.tts-button .material-icons {
    font-size: 14px;
    line-height: 1;
}

.tts-placeholder {
    width: 32px;
    height: 32px;
    margin: 0 0 0 8px;
    opacity: 0;
    pointer-events: none;
}

/* Arka yüzde TTS butonlarını tamamen gizle */
.card-back .tts-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.card-back .tts-placeholder {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Kart çevrildiğinde ön yüzdeki TTS butonlarını gizle */
.flashcard.flipped .card-front .tts-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tts-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    background: #0056CC;
}

.tts-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.tts-button.playing {
    background: linear-gradient(135deg, #dc3545, #c82333);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.flip-button {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.flip-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

/* Yardımcı sınıflar */
.hidden { 
    display: none; 
}

.progress-bar { 
    width: 100%; 
    height: 6px; 
    background: #E5E7EB; 
    border-radius: 3px; 
    overflow: hidden; 
    margin: 16px 0; 
}

.progress-fill { 
    height: 100%; 
    background: #007AFF; 
    transition: width 0.3s ease; 
    border-radius: 3px;
}

/* Modern butonlar */
.nav-button {
    background: #007AFF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
    transition: all 0.2s ease;
    margin: 0 8px;
}

.nav-button:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.nav-button:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Tap to flip inside - kartın içinde, en altta */
.tap-to-flip-inside {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-top: auto; /* En alta yapıştır */
    margin-bottom: 8px;
    opacity: 0.8;
    pointer-events: none; /* Kartın click'ini engellemez */
}

.tap-to-flip-inside:hover {
    background: rgba(0, 122, 255, 0.12);
    opacity: 1;
}

/* Tap to flip overlay - kartın dışında, transform'dan bağımsız */
.tap-to-flip-overlay {
    position: absolute;
    bottom: -50px; /* Kartın altında, görünür alanda */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.15);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    z-index: 1000;
    opacity: 1; /* Daha görünür yapalım */
    pointer-events: auto; /* Click'e izin verelim */
    display: block; /* Kesinlikle görünür olsun */
}

/* Eski tap-to-flip sınıfı (SCORM uyumluluğu için) */
.tap-to-flip {
    background: rgba(0, 122, 255, 0.08);
    color: #007AFF;
    border: 1px solid rgba(0, 122, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 10;
    opacity: 0.8;
}

.tap-to-flip-overlay:hover {
    background: rgba(0, 122, 255, 0.12);
    opacity: 1;
}

.tap-to-flip:hover {
    background: rgba(0, 122, 255, 0.12);
    opacity: 1;
}

/* Artık tap-to-flip overlay kartın dışında olduğu için transform kuralları gereksiz */

/* Responsive tasarım */
@media (max-width: 768px) { 
    .main { 
        padding: 0 10px;
    }
    
    .option-buttons {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-btn {
        padding: 25px 15px;
    }
    
    .option-icon {
        font-size: 2.5em;
    }
    
    .option-title {
        font-size: 1.1em;
    }
    
    .usage-steps, .creation-options, .ai-section, .form-section {
        padding: 20px;
        margin: 0 10px 20px 10px;
    }
    
    .step-item {
        padding: 15px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 1em;
        margin-right: 12px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.5em;
    }
    
    .usage-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
    
    .usage-steps h2 {
        font-size: 1.3em;
    }
    
    .toggle-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    
    .toggle-btn .material-icons {
        font-size: 1.2em;
    }
    
    .edit-cards-section {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .edit-card-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .edit-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .edit-btn, .delete-btn {
        width: 100%;
        text-align: center;
    }
    
    .instructions-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .clear-all-btn {
        width: 100%;
        padding: 12px 16px;
    }
    
    .footer {
        padding: 25px 15px;
        margin-top: 30px;
    }
    
    .footer-content p:first-child {
        font-size: 1em;
    }
    
    .footer-content p:last-child {
        font-size: 0.85em;
    }
}

/* AI Import Section */
.ai-import-section {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.ai-import-section h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ai-import-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    font-size: 0.9em;
}

.ai-import-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
}

.ai-import-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Drag & Drop Area */
.drag-drop-area {
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drag-drop-area:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.drag-drop-area.drag-over {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-style: solid;
    transform: scale(1.02);
}

.drag-drop-content {
    pointer-events: none;
}

.drag-drop-icon {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.drag-drop-text {
    color: white;
    margin-bottom: 10px;
    line-height: 1.4;
}

.drag-drop-text strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.drag-drop-text span {
    font-size: 0.9em;
    opacity: 0.8;
}

.drag-drop-hint {
    font-size: 0.75em;
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
}

.drag-drop-area.file-selected {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.15);
    border-style: solid;
}

.drag-drop-area.file-selected .drag-drop-icon {
    color: #28a745;
}

.drag-drop-area.file-selected .drag-drop-text {
    color: #28a745;
}

/* SCORM Export Section */
.scorm-export-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #28a745;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.scorm-export-section h3 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 700;
}

.scorm-export-section p {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.5;
}

.scorm-export-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scorm-export-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.scorm-export-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

/* Kartları Düzenle Bölümü */
.edit-cards-section {
    background: linear-gradient(135deg, #fff5ee 0%, #ffe4e1 100%);
    border: 2px solid #ff7f50;
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(255, 127, 80, 0.1);
}

.edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.edit-header h3 {
    color: #ff7f50;
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
}

.edit-container {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.edit-container.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.edit-instructions {
    background: rgba(255, 127, 80, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #ff7f50;
}

.instructions-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.edit-instructions p {
    margin: 0;
    color: #d2691e;
    font-weight: 500;
    flex: 1;
}

.clear-all-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.clear-all-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.clear-all-btn:active {
    transform: translateY(0);
}

.cards-edit-list {
    margin-bottom: 30px;
}

.edit-card-item {
    background: white;
    border: 1px solid #ffd4c4;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(255, 127, 80, 0.1);
}

.edit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.edit-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #ff7f50;
}

.edit-card-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #17a2b8;
    color: white;
}

.edit-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.edit-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.edit-card-field {
    display: flex;
    flex-direction: column;
}

.edit-card-label {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.edit-card-value {
    color: #333;
    font-size: 1em;
    line-height: 1.4;
}

.edit-card-image {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.edit-card-image .edit-card-label {
    text-align: center;
    margin-bottom: 0;
}

.edit-card-image img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.add-new-card {
    background: white;
    border: 2px dashed #ff7f50;
    border-radius: 10px;
    padding: 25px;
}

.add-new-card h4 {
    color: #ff7f50;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.edit-card-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

/* AI bölümünde etiketleri belirginleştir (genel kuralı ezer) */
.ai-section .form-group label {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.2em;
    letter-spacing: 0.2px;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35); /* Kontrast artır */
    text-shadow: none;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff7f50;
    box-shadow: 0 0 0 2px rgba(255, 127, 80, 0.2);
}

.add-card-btn {
    background: linear-gradient(135deg, #ff7f50, #ff6347);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.2s ease;
    align-self: flex-end;
}

.add-card-btn:hover {
    background: linear-gradient(135deg, #ff6347, #ff4500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 127, 80, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.footer-content p:first-child {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.footer-content p:last-child {
    opacity: 0.9;
    font-size: 0.9em;
    color: #ecf0f1;
}
