/* SEO Suite Frontend Styles */

.rankray-seo-frontend {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* FAQ Generator Styles */
.rr-faq-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rr-faq-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.rr-faq-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.rr-faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rr-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.rr-faq-item:last-child {
    border-bottom: none;
}

.rr-faq-question {
    background: #f8f9fa;
    border: none;
    width: 100%;
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rr-faq-question:hover {
    background: #e2e8f0;
    color: #667eea;
}

.rr-faq-question.active {
    background: #667eea;
    color: #fff;
}

.rr-faq-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.rr-faq-question.active .rr-faq-icon {
    transform: rotate(180deg);
}

.rr-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.rr-faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

.rr-faq-answer p {
    margin: 0 0 15px 0;
    color: #64748b;
    line-height: 1.7;
}

.rr-faq-answer p:last-child {
    margin-bottom: 0;
}

/* SEO Audit Styles */
.rr-seo-audit-container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rr-audit-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.rr-audit-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.rr-audit-subtitle {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.rr-audit-content {
    padding: 30px;
}

.rr-audit-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
}

.rr-audit-section.success {
    background: #f0fdf4;
    border-left-color: #10b981;
}

.rr-audit-section.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.rr-audit-section.error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.rr-audit-section-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rr-audit-icon {
    font-size: 20px;
}

.rr-audit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rr-audit-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rr-audit-item:last-child {
    border-bottom: none;
}

.rr-audit-item-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.rr-audit-item-text {
    flex: 1;
    color: #64748b;
}

.rr-audit-score {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.rr-audit-score-number {
    font-size: 48px;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.rr-audit-score-label {
    font-size: 16px;
    color: #64748b;
    margin: 5px 0 0 0;
}

/* Loading States */
.rr-loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.rr-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .rr-faq-container,
    .rr-seo-audit-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .rr-faq-question,
    .rr-audit-content {
        padding: 15px;
    }
    
    .rr-audit-title {
        font-size: 24px;
    }
    
    .rr-audit-score-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .rr-faq-question {
        font-size: 14px;
        padding: 15px;
    }
    
    .rr-audit-content {
        padding: 20px 15px;
    }
    
    .rr-audit-section {
        padding: 15px;
    }
}

/* Animation Classes */
.rr-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.rr-slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 500px; opacity: 1; }
}