/* RankPilot AEO Shortcodes Styles - Professional Design */

/* Widget Base Styles */
.rankpilot-widget {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.rankpilot-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e5e9;
    text-align: center;
}

.rankpilot-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Form Styles */
.rankpilot-form {
    padding: 24px;
    background: #f8fafc;
}

.rankpilot-field {
    margin-bottom: 16px;
}

.rankpilot-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.rankpilot-input,
.rankpilot-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

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

.rankpilot-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Button Styles */
.rankpilot-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1;
}

.rankpilot-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.rankpilot-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.rankpilot-btn-success {
    background: #10b981;
    color: white;
}

.rankpilot-btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.rankpilot-btn-info {
    background: #06b6d4;
    color: white;
}

.rankpilot-btn-info:hover {
    background: #0891b2;
    transform: translateY(-1px);
}

.rankpilot-btn-warning {
    background: #f59e0b;
    color: white;
}

.rankpilot-btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.rankpilot-btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

/* Results Styles */
.rankpilot-results {
    padding: 0 24px 24px;
}

/* Professional Score Boxes Design */
.rankpilot-score-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.rankpilot-score-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.rankpilot-score-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.rankpilot-score-box.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
}

.rankpilot-score-box.green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #86efac;
}

.rankpilot-score-box.orange {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-color: #fbbf24;
}

.rankpilot-score-box.red {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-color: #f87171;
}

.rankpilot-score-box.light-blue {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-color: #7dd3fc;
}

.rankpilot-score-box.dark-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    border-color: #60a5fa;
}

.rankpilot-score-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.rankpilot-score-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Styling */
.rankpilot-section {
    margin: 24px 0;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.rankpilot-section.light-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #bbf7d0;
}

.rankpilot-section.light-yellow {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.rankpilot-section.white {
    background: #ffffff;
    border-color: #e5e7eb;
}

.rankpilot-section h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.rankpilot-section h5 {
    margin: 16px 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.rankpilot-section p {
    margin: 8px 0;
    color: #4b5563;
    line-height: 1.6;
}

/* Status Indicators */
.rankpilot-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.rankpilot-status.success {
    color: #059669;
}

.rankpilot-status.error {
    color: #dc2626;
}

.rankpilot-status.warning {
    color: #d97706;
}

.rankpilot-status-icon {
    font-size: 16px;
}

/* Keyword Tags */
.rankpilot-keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.rankpilot-keyword-tag {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #fbbf24;
    transition: all 0.2s ease;
}

.rankpilot-keyword-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.rankpilot-result-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.rankpilot-result-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
}

.rankpilot-result-loading {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
    padding: 16px;
    border-radius: 6px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rankpilot-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #fed7aa;
    border-top: 2px solid #92400e;
    border-radius: 50%;
    animation: rankpilot-spin 1s linear infinite;
}

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

.rankpilot-json {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 12px;
}

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

.rankpilot-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.rankpilot-dashboard-card .rankpilot-widget {
    margin: 0;
    height: 100%;
}

/* SEO Score Widget */
.rankpilot-seo-score {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.rankpilot-score-header h4 {
    margin: 0 0 20px 0;
    color: #374151;
    font-size: 18px;
}

.rankpilot-score-display {
    margin: 20px 0;
}

.rankpilot-score-circle {
    width: 120px;
    height: 120px;
    border: 8px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.rankpilot-score-value {
    font-size: 32px;
    font-weight: 700;
    color: #374151;
    line-height: 1;
}

.rankpilot-score-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.rankpilot-score-details {
    margin-top: 20px;
    text-align: left;
}

/* Score Colors */
.rankpilot-score-excellent .rankpilot-score-circle {
    border-color: #10b981;
}

.rankpilot-score-good .rankpilot-score-circle {
    border-color: #f59e0b;
}

.rankpilot-score-poor .rankpilot-score-circle {
    border-color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rankpilot-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .rankpilot-widget {
        margin: 15px 0;
    }
    
    .rankpilot-form {
        padding: 20px;
    }
    
    .rankpilot-header {
        padding: 16px 20px;
    }
    
    .rankpilot-header h3 {
        font-size: 20px;
    }
    
    .rankpilot-btn {
        width: 100%;
        justify-content: center;
    }
    
    .rankpilot-score-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .rankpilot-score-box {
        padding: 16px;
    }
    
    .rankpilot-score-value {
        font-size: 28px;
    }
    
    .rankpilot-score-label {
        font-size: 12px;
    }
    
    .rankpilot-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .rankpilot-keyword-tags {
        gap: 6px;
    }
    
    .rankpilot-keyword-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .rankpilot-score-boxes {
        grid-template-columns: 1fr;
    }
    
    .rankpilot-score-box {
        padding: 20px;
    }
    
    .rankpilot-score-value {
        font-size: 32px;
    }
}

/* Animation for success states */
.rankpilot-success-animation {
    animation: rankpilot-success-pulse 0.6s ease-in-out;
}

@keyframes rankpilot-success-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Accessibility improvements */
.rankpilot-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.rankpilot-input:focus,
.rankpilot-textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading states */
.rankpilot-loading .rankpilot-btn {
    opacity: 0.7;
    pointer-events: none;
}

.rankpilot-loading .rankpilot-input,
.rankpilot-loading .rankpilot-textarea {
    opacity: 0.7;
    pointer-events: none;
}

/* Progress indicators */
.rankpilot-progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.rankpilot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Keyword tags */
.rankpilot-keyword-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
    border: 1px solid #e5e7eb;
}

.rankpilot-keyword-tag.primary {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.rankpilot-keyword-tag.secondary {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

/* Schema display */
.rankpilot-schema-output {
    background: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 12px;
}

.rankpilot-copy-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

.rankpilot-copy-btn:hover {
    background: #4b5563;
}

.rankpilot-copy-btn.copied {
    background: #10b981;
}

/* AI Form Specific Styles */
.rankpilot-ai-form .rankpilot-field small {
    display: block;
    margin-top: 4px;
}

.rankpilot-ai-comprehensive-results {
    margin-top: 20px;
}

.rankpilot-overall-score {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    margin-bottom: 20px;
}

.rankpilot-overall-score .rankpilot-score-display {
    margin-bottom: 16px;
}

.rankpilot-overall-score .rankpilot-score-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
}

.rankpilot-overall-score .rankpilot-score-value {
    font-size: 28px;
}

.rankpilot-analysis-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.rankpilot-tab-btn {
    padding: 10px 16px;
    border: none;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.rankpilot-tab-btn:hover {
    background: #e5e7eb;
}

.rankpilot-tab-btn.active {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.rankpilot-analysis-content {
    min-height: 200px;
}

.rankpilot-tab-content {
    display: none;
    padding: 20px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.rankpilot-tab-content.active {
    display: block;
    animation: rankpilot-fade-in 0.3s ease-in-out;
}

@keyframes rankpilot-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.rankpilot-tab-content h5 {
    color: #374151;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.rankpilot-tab-content h6 {
    color: #4b5563;
    margin: 16px 0 8px 0;
    font-size: 14px;
    font-weight: 500;
}

.rankpilot-tab-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.rankpilot-tab-content li {
    margin-bottom: 4px;
    color: #374151;
}

.rankpilot-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced keyword tags for AI results */
.rankpilot-tab-content .rankpilot-keyword-tag {
    margin: 4px;
    display: inline-block;
}

/* Enhanced schema output for AI results */
.rankpilot-tab-content .rankpilot-schema-output {
    font-size: 11px;
    max-height: 250px;
    margin: 12px 0;
}

/* Responsive adjustments for AI form */
@media (max-width: 768px) {
    .rankpilot-analysis-tabs {
        flex-direction: column;
    }
    
    .rankpilot-tab-btn {
        border-radius: 6px;
        margin-bottom: 4px;
    }
    
    .rankpilot-tab-btn.active {
        transform: none;
    }
    
    .rankpilot-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rankpilot-action-buttons .rankpilot-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .rankpilot-overall-score .rankpilot-score-circle {
        width: 80px;
        height: 80px;
    }
    
    .rankpilot-overall-score .rankpilot-score-value {
        font-size: 24px;
    }
}

/* Loading state for AI form */
.rankpilot-ai-form.rankpilot-loading .rankpilot-form {
    opacity: 0.6;
    pointer-events: none;
}

/* Success pulse animation for AI results */
.rankpilot-ai-comprehensive-results {
    animation: rankpilot-ai-success 0.8s ease-in-out;
}

@keyframes rankpilot-ai-success {
    0% { transform: scale(0.95); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
} 
 
 
 
 