/* 3Cubed SEO Analyzer Lead Magnet Styles */

.threecubed-seo-analyzer-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.threecubed-seo-analyzer-widget[data-style="modern"] {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
}

/* Header */
.analyzer-header {
    text-align: center;
    padding: 40px 30px 30px;
    color: white;
}

.analyzer-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.analyzer-subtitle {
    font-size: 1.1rem;
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.analyzer-badge {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.analyzer-badge span {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Form Container */
.analyzer-form-container {
    background: white;
    border-radius: 14px;
    padding: 40px 30px;
    margin: 0 20px 20px;
}

/* Form */
.analyzer-form {
    margin-bottom: 30px;
}

.url-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    min-width: 300px;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

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

.analyze-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.analyze-button:disabled {
    transform: none;
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Features */
.analyzer-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.2rem;
}

/* Loading State */
.analysis-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-content h3 {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #374151;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-steps {
    max-width: 300px;
    margin: 30px auto 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.step.active {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 500;
}

.step-icon {
    font-size: 1.1rem;
}

/* Results */
.analysis-results {
    padding: 30px 0;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    font-size: 1.8rem;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.results-header p {
    color: #6b7280;
    font-size: 1rem;
}

.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.score-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.score-card:hover {
    transform: translateY(-2px);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.score-value.excellent { color: #10b981; }
.score-value.good { color: #3b82f6; }
.score-value.fair { color: #f59e0b; }
.score-value.poor { color: #ef4444; }

.score-label {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.score-description {
    font-size: 0.8rem;
    color: #6b7280;
}

.quick-insights {
    margin: 30px 0;
}

.quick-insights h4 {
    font-size: 1.2rem;
    color: #374151;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.insight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.insight-label {
    font-weight: 500;
    color: #4b5563;
    font-size: 0.9rem;
}

.insight-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    font-family: monospace;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.cta-section h4 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.cta-section p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.get-report-btn {
    background: white;
    color: #667eea;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.get-report-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

/* Issues Preview */
.issues-preview {
    background: #fef3cd;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.issues-preview h4 {
    font-size: 1.1rem;
    color: #92400e;
    margin: 0 0 12px 0;
}

.issues-list {
    margin: 0;
    padding-left: 20px;
}

.issues-list li {
    margin: 6px 0;
    color: #78350f;
    font-size: 0.9rem;
}

.more-issues {
    font-style: italic;
    color: #a16207;
}

/* Lead Capture Modal */
.lead-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    margin: 5vh auto;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    font-size: 1.6rem;
    color: #1f2937;
    margin: 0 0 10px 0;
    text-align: center;
}

.modal-header p {
    color: #6b7280;
    text-align: center;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

/* Lead Form */
.lead-form {
    margin: 20px 0;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #667eea;
}

.form-benefits {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.benefit-icon {
    font-size: 1.1rem;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 25px 0 15px;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.close-modal {
    background: transparent;
    color: #6b7280;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #374151;
}

.form-disclaimer {
    text-align: center;
    color: #9ca3af;
}

/* Lead Success */
.lead-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.lead-success h3 {
    font-size: 1.6rem;
    color: #059669;
    margin: 0 0 15px 0;
}

.lead-success p {
    color: #6b7280;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.success-benefits {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.success-benefits .benefit {
    justify-content: center;
    color: #065f46;
    font-weight: 500;
}

.close-success-btn {
    background: #10b981;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Error State */
.analysis-error {
    text-align: center;
    padding: 40px 20px;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.error-content h3 {
    font-size: 1.4rem;
    color: #dc2626;
    margin: 0 0 15px 0;
}

.error-content p {
    color: #6b7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.error-suggestions {
    background: #fef3cd;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.error-suggestions h4 {
    color: #92400e;
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.error-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.error-suggestions li {
    margin: 5px 0;
    color: #78350f;
    font-size: 0.9rem;
}

.retry-btn {
    background: #6b7280;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Trust Indicators */
.analyzer-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 0 0 14px 14px;
    margin: 0 20px;
    backdrop-filter: blur(10px);
    color: white;
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.trust-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .threecubed-seo-analyzer-widget {
        margin: 20px;
    }
    
    .analyzer-title {
        font-size: 2rem;
    }
    
    .analyzer-form-container {
        padding: 30px 20px;
        margin: 0 10px 10px;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .url-input {
        min-width: auto;
    }
    
    .scores-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .analyzer-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .analyzer-trust {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-content {
        padding: 30px 25px;
        margin: 10vh auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .analyzer-badge {
        flex-direction: column;
        gap: 8px;
    }
    
    .analyzer-badge span {
        display: inline-block;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px 20px;
    }
    
    .scores-grid .score-value {
        font-size: 2rem;
    }
}