/* 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, #ff6b35 0%, #f7931e 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, #ff6b35 0%, #f7931e 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;
}

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

.url-input-group {
    margin-bottom: 15px;
}

.url-input,
.email-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.url-input:focus,
.email-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.email-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.email-input {
    flex: 1;
    min-width: 250px;
}

.analyze-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 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: 200px;
}

.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 #ff6b35;
    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 #ff6b35;
}

.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;
}

/* Recommendations Preview Section */
.recommendations-preview {
    margin: 30px 0;
}

.recommendations-preview h4 {
    font-size: 1.2rem;
    color: #374151;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-item {
    display: flex;
    gap: 15px;
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.recommendation-item:hover {
    transform: translateX(5px);
}

.recommendation-item.priority-high {
    background: #fee2e2;
    border-left-color: #ef4444;
}

.recommendation-item.priority-medium {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.recommendation-item.priority-low {
    background: #dbeafe;
    border-left-color: #3b82f6;
}

.rec-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.recommendation-item.priority-high .rec-number {
    background: #ef4444;
}

.recommendation-item.priority-medium .rec-number {
    background: #f59e0b;
}

.recommendation-item.priority-low .rec-number {
    background: #3b82f6;
}

.rec-content {
    flex: 1;
}

.rec-title {
    font-weight: 700;
    color: #065f46;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.recommendation-item.priority-high .rec-title {
    color: #991b1b;
}

.recommendation-item.priority-medium .rec-title {
    color: #92400e;
}

.recommendation-item.priority-low .rec-title {
    color: #1e40af;
}

.rec-detail {
    color: #047857;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.recommendation-item.priority-high .rec-detail {
    color: #7f1d1d;
}

.recommendation-item.priority-medium .rec-detail {
    color: #78350f;
}

.recommendation-item.priority-low .rec-detail {
    color: #1e3a8a;
}

.rec-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #d1fae5;
    color: #065f46;
}

.recommendation-item.priority-high .rec-badge {
    background: #fecaca;
    color: #991b1b;
}

.recommendation-item.priority-medium .rec-badge {
    background: #fed7aa;
    color: #92400e;
}

.recommendation-item.priority-low .rec-badge {
    background: #bfdbfe;
    color: #1e40af;
}

.more-recommendations {
    text-align: center;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    font-style: italic;
    font-size: 0.95rem;
}

/* Breakdown Preview Section */
.breakdown-preview {
    margin: 30px 0;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
}

.breakdown-preview h4 {
    font-size: 1.2rem;
    color: #374151;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.breakdown-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.breakdown-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #10b981;
    border-radius: 8px;
    padding: 12px;
    align-items: center;
}

.breakdown-item.geo {
    border-left-color: #ff6b35;
}

.breakdown-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: capitalize;
}

.breakdown-score {
    text-align: right;
    font-weight: 800;
    font-size: 1.1rem;
    color: #10b981;
    padding: 4px 12px;
    background: #d1fae5;
    border-radius: 6px;
}

.breakdown-item.geo .breakdown-score {
    color: #ff6b35;
    background: #fff0eb;
}

.breakdown-detail {
    grid-column: 1 / -1;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.breakdown-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    padding-top: 10px;
    border-top: 2px dashed #e5e7eb;
}

/* Email Confirmation Section */
.email-confirmation {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 30px 0;
}

.confirmation-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.email-confirmation h4 {
    font-size: 1.3rem;
    color: #1e40af;
    margin: 0 0 10px 0;
}

.email-confirmation p {
    color: #1e40af;
    margin: 0 0 15px 0;
}

.email-confirmation ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding-left: 20px;
}

.email-confirmation li {
    color: #1e3a8a;
    font-size: 0.95rem;
    margin: 8px 0;
}

/* CTA Section */
.cta-section {
    background: #ffffff !important;
    border: 2px solid #ff6b35;
    color: #000000 !important;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
}

.cta-section h4 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #000000 !important;
}

.cta-section p {
    margin: 0 0 20px 0;
    color: #000000 !important;
}

.cta-section a {
    color: #ff6b35 !important;
}

.get-report-btn,
.calendly-btn {
    display: inline-block;
    background: #ff6b35 !important;
    color: #ffffff !important;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

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

/* 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;
    box-sizing: border-box;
}

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

.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, #ff6b35 0%, #f7931e 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,
    .email-input-group {
        flex-direction: column;
    }
    
    .url-input,
    .email-input {
        min-width: auto;
    }
    
    .analyze-button {
        width: 100%;
    }
    
    .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;
    }
    
    .email-confirmation ul {
        padding-left: 15px;
    }
}