/* AI Analogy Generator - Frontend Styles */

.aimg-analogy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.aimg-analogy-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.aimg-analogy-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    text-align: center;
}

.aimg-analogy-description {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.aimg-analogy-form {
    margin-top: 30px;
}

.aimg-analogy-form-group {
    margin-bottom: 24px;
}

.aimg-analogy-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.aimg-analogy-required {
    color: #d63638;
}

.aimg-analogy-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.aimg-analogy-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.aimg-analogy-help-text {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.aimg-analogy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.aimg-analogy-button-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    width: 100%;
}

.aimg-analogy-button-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
    box-shadow: 0 4px 8px rgba(34, 113, 177, 0.3);
    transform: translateY(-1px);
}

.aimg-analogy-button-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aimg-analogy-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: aimg-analogy-spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes aimg-analogy-spin {
    to { transform: rotate(360deg); }
}

.aimg-analogy-result {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.aimg-analogy-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.aimg-analogy-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.aimg-analogy-output {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aimg-analogy-output p {
    margin: 0 0 16px 0;
}

.aimg-analogy-output p:last-child {
    margin-bottom: 0;
}

.aimg-analogy-copy-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
}

.aimg-analogy-copy-btn:hover {
    background: #135e96;
}

.aimg-analogy-copy-btn.aimg-analogy-copied {
    background: #00a32a;
}

.aimg-analogy-copy-btn.aimg-analogy-copied:hover {
    background: #008a20;
}

.aimg-analogy-error {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    color: #721c24;
    font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aimg-analogy-form-wrapper {
        padding: 24px;
    }
    
    .aimg-analogy-title {
        font-size: 26px;
    }
    
    .aimg-analogy-result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .aimg-analogy-copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .aimg-analogy-container {
        padding: 0 15px;
    }
    
    .aimg-analogy-form-wrapper {
        padding: 20px;
    }
    
    .aimg-analogy-title {
        font-size: 22px;
    }
    
    .aimg-analogy-output {
        font-size: 16px;
        padding: 20px;
    }
}










