/* RankPilot AEO Frontend Styles */

/* Audit Form */
.aeo-audit-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.aeo-audit-form h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
}

.aeo-form-group {
    margin-bottom: 20px;
}

.aeo-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.aeo-form-group input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.aeo-form-group input[type="url"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Buttons */
.aeo-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.aeo-button-primary {
    background: #3498db;
    color: white;
}

.aeo-button-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.aeo-button-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.aeo-button-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Loading State */
.aeo-loading {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.aeo-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid #e3e3e3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: aeo-spin 1s linear infinite;
}

@keyframes aeo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aeo-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Error Messages */
.aeo-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.aeo-error p {
    color: #c33;
    margin: 0;
    font-weight: 500;
}

/* Results */
.aeo-result {
    margin: 30px 0;
}

.aeo-audit-complete {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.aeo-audit-complete h3 {
    margin-top: 0;
    color: #27ae60;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* Note */
.aeo-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 30px;
}

.aeo-note p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Score Display */
.aeo-score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.aeo-score-chart {
    position: relative;
}

.aeo-score-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
}

.aeo-score-number {
    font-size: 48px;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
}

/* Suggestions */
.aeo-suggestions {
    margin-top: 40px;
}

.aeo-suggestions h4 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.aeo-suggestion {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
}

.aeo-suggestion.aeo-priority-high {
    border-left-color: #e74c3c;
}

.aeo-suggestion.aeo-priority-medium {
    border-left-color: #f39c12;
}

.aeo-suggestion.aeo-priority-low {
    border-left-color: #95a5a6;
}

.aeo-suggestion h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.aeo-suggestion p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.6;
}

.aeo-code-snippet {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.aeo-code-snippet code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Dashboard */
.aeo-dashboard {
    margin: 20px 0;
}

.aeo-dashboard h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
}

.aeo-audits-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.aeo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.aeo-table th,
.aeo-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.aeo-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.aeo-table a {
    color: #3498db;
    text-decoration: none;
}

.aeo-table a:hover {
    text-decoration: underline;
}

/* Score badges */
.aeo-score {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.aeo-score-excellent {
    background: #d4edda;
    color: #155724;
}

.aeo-score-good {
    background: #fff3cd;
    color: #856404;
}

.aeo-score-fair {
    background: #f8d7da;
    color: #721c24;
}

.aeo-score-poor {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    .aeo-audit-form {
        margin: 10px;
        padding: 15px;
    }
    
    .aeo-score-display {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .aeo-score-number {
        font-size: 36px;
    }
    
    .aeo-table {
        font-size: 14px;
    }
    
    .aeo-table th,
    .aeo-table td {
        padding: 8px;
    }
} 