/**
 * Orto Spell Checker - Frontend Styles
 * Beautiful, responsive design with eye-catching colors
 */

.orto-spell-check-container {
    max-width: 900px;
    margin: 30px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.orto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.orto-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.orto-language-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.orto-input-wrapper {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.orto-text-input {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.orto-text-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.orto-text-input::placeholder {
    color: #999;
}

.orto-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.orto-btn {
    flex: 1;
    min-width: 120px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.orto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.orto-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.orto-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
}

.orto-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

.orto-btn-secondary:hover {
    background: #e8e8e8;
}

.orto-btn-icon {
    font-size: 18px;
}

.orto-results {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 60px;
    display: none;
}

.orto-results.active {
    display: block;
}

.orto-results.success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #1a5d3a;
}

.orto-results.error {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #8b1a2e;
}

.orto-results h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.orto-results p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.orto-error-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.orto-error-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
}

.orto-error-word {
    font-weight: 700;
    color: #d32f2f;
    font-size: 18px;
}

.orto-error-context {
    color: #555;
    margin-top: 5px;
    font-size: 14px;
}

.orto-suggestions {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
}

.orto-suggestions.active {
    display: block;
}

.orto-suggestions h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.orto-suggestion-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.orto-suggestion-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.orto-suggestion-word {
    display: inline-block;
    background: #667eea;
    color: #ffffff;
    padding: 6px 12px;
    margin: 5px 5px 5px 0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.orto-suggestion-word:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.orto-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .orto-spell-check-container {
        margin: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .orto-title {
        font-size: 22px;
    }
    
    .orto-language-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .orto-input-wrapper {
        padding: 15px;
    }
    
    .orto-text-input {
        min-height: 150px;
        font-size: 16px;
        padding: 12px;
    }
    
    .orto-actions {
        flex-direction: column;
    }
    
    .orto-btn {
        width: 100%;
        min-width: auto;
    }
    
    .orto-results,
    .orto-suggestions {
        padding: 15px;
    }
    
    .orto-results h3,
    .orto-suggestions h3 {
        font-size: 18px;
    }
}

/* Tablet Responsive Styles */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .orto-spell-check-container {
        margin: 20px;
        padding: 25px;
    }
    
    .orto-title {
        font-size: 24px;
    }
    
    .orto-text-input {
        min-height: 180px;
    }
    
    .orto-actions {
        gap: 10px;
    }
    
    .orto-btn {
        flex: 1;
        min-width: 140px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .orto-spell-check-container {
        margin: 10px;
        padding: 15px;
    }
    
    .orto-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .orto-title {
        font-size: 20px;
    }
    
    .orto-text-input {
        min-height: 120px;
        font-size: 14px;
    }
    
    .orto-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Accessibility Improvements */
.orto-btn:focus,
.orto-text-input:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .orto-spell-check-container {
        box-shadow: none;
        background: #ffffff;
        border: 1px solid #ccc;
    }
    
    .orto-btn {
        display: none;
    }
}

