/* Writing Skills Test Özel Stilleri */
.writing-skills-test {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.writing-skills-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 20px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 30px;
}

.writing-skills-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.writing-skills-subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
}

.test-instructions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
}

.test-instructions h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.test-instructions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.test-instructions li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.5;
}

.test-instructions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

.question-counter {
    position: sticky;
    top: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0px;
    z-index: 100;
    border: 2px solid #e9ecef;
}

.counter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.counter-text {
    font-weight: 600;
    color: #2c3e50;
}

.counter-progress {
    flex: 1;
    margin: 0 20px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.counter-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.counter-numbers {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

.writing-question {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.writing-question:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.question-number-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.question-text-container {
    flex: 1;
}

.question-text {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.writing-options {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.writing-option {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.writing-option:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.writing-option:hover {
    background: #e3f2fd;
    border-color: #667eea;
    transform: translateX(5px);
}

.writing-option:hover:before {
    background: #667eea;
}

/* Radio button seçili durumu */
.writing-option input[type="radio"]:checked + .option-letter + .option-text,
.writing-option:has(input[type="radio"]:checked) {
    background: #e8f4fd;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.writing-option:has(input[type="radio"]:checked):before {
    background: #667eea;
}

.writing-option.selected {
    background: #e8f4fd;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.writing-option.selected:before {
    background: #667eea;
}

.writing-option.correct {
    background: #d4edda;
    border-color: #28a745;
}

.writing-option.correct:before {
    background: #28a745;
}

.writing-option.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.writing-option.incorrect:before {
    background: #dc3545;
}

.option-letter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.writing-option.selected .option-letter {
    background: #5a67d8;
    transform: scale(1.1);
}

.writing-option.correct .option-letter {
    background: #28a745;
}

.writing-option.incorrect .option-letter {
    background: #dc3545;
}

.option-text {
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
    line-height: 1.5;
    font-weight: 500;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: white;
    border-radius: 0 0 15px 15px;
    border-top: 2px solid #f8f9fa;
    margin-top: 30px;
}

.nav-button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.nav-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-button-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.nav-button-secondary {
    background: #6c757d;
    color: white;
}

.nav-button-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.nav-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.test-complete-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.test-complete-button:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.writing-results {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.results-header {
    margin-bottom: 30px;
}

.results-title {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

.results-score {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    padding: 10px 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    min-height: 70px;
}

.results-percentage {
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 20px;
}

.results-performance {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.performance-excellent {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.performance-good {
    background: #cce7ff;
    color: #004085;
    border: 2px solid #99d6ff;
}

.performance-average {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

.performance-poor {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.results-message {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .writing-skills-title {
        font-size: 24px;
    }
    
    .writing-skills-subtitle {
        font-size: 16px;
    }
    
    .writing-question {
        padding: 20px 15px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .writing-options {
        gap: 12px;
    }
    
    .writing-option {
        padding: 15px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .test-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .nav-button {
        width: 100%;
        padding: 15px 20px;
    }
    
    .counter-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .counter-progress {
        margin: 0;
        width: 100%;
    }
    
    .results-score {
        font-size: 42px;
        line-height: 1.3;
        min-height: 60px;
        padding: 8px 0;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .nav-button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .test-navigation,
    .question-counter,
    .nav-button {
        display: none !important;
    }
    
    .writing-question {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}