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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-stats {
    display: flex;
    gap: 20px;
    font-weight: 500;
}

.btn-admin {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.user-stats span {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Tarih gösterimi */
.date-display {
    text-align: center;
    margin-left: 20px;
}

.today-date {
    font-size: 0.9rem;
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 4px;
}

.day-cycle {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Ana içerik */
.main-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* İlerleme bölümü */
.progress-section {
    text-align: center;
    margin-bottom: 30px;
}

.progress-section h2 {
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    color: #64748b;
    font-weight: 500;
}

/* Kelime kartı */
.word-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.word-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.english-word {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

.pronunciation-btn {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pronunciation-btn:hover {
    background: #3730a3;
    transform: scale(1.1);
}

.word-details > div {
    margin-bottom: 25px;
}

.word-details h4 {
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.word-details p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.turkish-meaning p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #059669;
}

.english-example {
    font-style: italic;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4f46e5;
    margin-bottom: 8px !important;
}

.turkish-example {
    color: #64748b;
    font-size: 0.95rem;
}

.word-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.word-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Butonlar */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: #4f46e5;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #3730a3;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.btn-outline {
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
}

.btn-outline:hover:not(:disabled) {
    background: #4f46e5;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Test bölümü */
.test-section {
    margin-top: 20px;
}

.test-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.test-card h3 {
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.test-question {
    margin-bottom: 25px;
}

.question-header {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.question-sentence {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 25px;
    text-align: center;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option-btn:hover:not(:disabled) {
    border-color: #4f46e5;
    background: #f8fafc;
    transform: translateY(-2px);
}

.option-btn.correct-answer {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.option-btn.wrong-answer {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.option-btn.disabled-answer {
    opacity: 0.6;
    cursor: not-allowed;
}

.next-info {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.manual-next-btn {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 0.95rem;
    animation: pulse 2s infinite;
}

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

.test-buttons {
    display: flex;
    gap: 15px;
}

.test-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.test-result.correct {
    background: #dcfce7;
    color: #166534;
    border: 2px solid #22c55e;
}

.test-result.incorrect {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #ef4444;
}

/* Navigasyon butonları */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Tamamlama mesajı */
.completion-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.completion-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.completion-card h2 {
    color: #059669;
    margin-bottom: 20px;
    font-size: 2rem;
}

.completion-card p {
    color: #374151;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Test sonuçları */
.test-results {
    text-align: center;
}

.test-results h2 {
    color: #1e293b;
    margin-bottom: 30px;
    font-size: 2rem;
}

.score-summary {
    margin-bottom: 30px;
}

.score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    margin: 0 auto;
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
}

.score-percentage {
    font-size: 1rem;
    opacity: 0.9;
}

.results-details {
    text-align: left;
    margin-bottom: 30px;
}

.result-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #e2e8f0;
}

.result-item.correct {
    border-left-color: #22c55e;
    background: #f0fdf4;
}

.result-item.incorrect {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.result-header {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e293b;
}

.result-details p {
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.95rem;
}

.result-details strong {
    color: #1e293b;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-display {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .today-date {
        font-size: 0.85rem;
    }
    
    .day-cycle {
        font-size: 0.75rem;
    }
    
    .english-word {
        font-size: 2rem;
    }
    
    .action-buttons,
    .test-buttons,
    .results-actions {
        flex-direction: column;
    }
    
    .question-options {
        gap: 10px;
    }
    
    .option-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
}