/* Grammar Checker Styles */

.checker-section {
    max-width: 900px;
    margin: 0 auto;
}

.checker-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-area, .result-area, .corrected-area {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.textarea-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.char-count {
    color: #666;
    font-size: 14px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-actions .btn-secondary {
    padding: 8px 16px;
    font-size: 13px;
}

textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

textarea::placeholder {
    color: #aaa;
}

.btn-primary {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 16px;
}

/* Result Area */
.result-area h3, .corrected-area h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
}

.result-content {
    min-height: 100px;
}

.placeholder-text {
    color: #999;
    text-align: center;
    padding: 30px;
}

/* Error Items */
.error-item {
    padding: 15px;
    background: #fff5f5;
    border-left: 4px solid #f44336;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px;
}

.error-item.warning {
    background: #fffbf0;
    border-left-color: #ff9800;
}

.error-type {
    display: inline-block;
    padding: 3px 10px;
    background: #f44336;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.error-item.warning .error-type {
    background: #ff9800;
}

.error-original {
    font-size: 15px;
    margin-bottom: 8px;
}

.error-original .highlight {
    background: #ffcdd2;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

.error-suggestion {
    color: #2e7d32;
    font-weight: 500;
}

.error-explanation {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px;
    color: #2e7d32;
}

.success-message .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Corrected Area */
.corrected-text {
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 15px;
}

.corrected-text .corrected {
    background: #a5d6a7;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Guide Section */
.guide-section {
    margin-top: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 17px;
}

.guide-card .wrong {
    color: #c62828;
    margin-bottom: 5px;
}

.guide-card .correct {
    color: #2e7d32;
    margin-bottom: 10px;
}

.guide-card .tip {
    font-size: 14px;
    color: #666;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .textarea-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    textarea {
        min-height: 150px;
    }
}




