/* AI SEO Analyzer Public Styles */

.ai-seo-analyzer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.ai-seo-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.ai-seo-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.ai-seo-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Form Container */
.ai-seo-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.ai-seo-form {
    margin: 0;
}

/* Form Fields */
.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-field input[type="url"],
.form-field input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.form-field small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 13px;
}

/* Analysis Features */
.analysis-features {
    margin: 30px 0;
}

.analysis-features h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.feature-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-item.enabled-feature {
    border-color: #27ae60;
    background: #f8fff8;
}

.feature-item.enabled-feature:hover {
    border-color: #2ecc71;
    background: #f0fff0;
}

.feature-item.premium-feature {
    border-color: #f39c12;
    background: #fef9e7;
    position: relative;
    opacity: 0.8;
}

.feature-item.premium-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(243, 156, 18, 0.1) 10px,
        rgba(243, 156, 18, 0.1) 20px
    );
    border-radius: 6px;
    pointer-events: none;
}

.feature-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.feature-header input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
    cursor: pointer;
}

.feature-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.feature-header label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-size: 15px;
}

.feature-header label strong {
    color: #2c3e50;
    font-weight: 600;
}

.premium-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-description {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Limitation Notice */
.limitation-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin: 25px 0;
}

.limitation-notice p {
    margin: 0 0 10px 0;
    color: #856404;
    font-weight: 600;
}

.limitation-notice ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.limitation-notice li {
    margin-bottom: 5px;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.analyze-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.analyze-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.analyze-button:active {
    transform: translateY(0);
}

.analyze-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.analyze-button .loading-spinner {
    display: none;
}

.analyze-button.loading .button-text {
    display: none;
}

.analyze-button.loading .loading-spinner {
    display: inline-block;
}

/* Results */
.ai-seo-results {
    background: white;
    border: 2px solid #27ae60;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ai-seo-results h3 {
    color: #27ae60;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.analysis-results-container {
    max-height: 600px;
    overflow-y: auto;
}

.score-display {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border: 2px solid #27ae60;
    border-radius: 50px;
    padding: 20px;
    margin: 20px 0;
}

.score-display h4 {
    margin: 0;
    color: #155724;
    font-size: 20px;
    font-weight: 700;
}

.analysis-section {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.analysis-section h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.section-score {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.recommendations {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.recommendations h5 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.recommendations ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.recommendations li {
    margin-bottom: 8px;
    color: #856404;
    line-height: 1.5;
}

.content-item {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.content-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.content-item pre {
    background: #f1f3f4;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
}

/* Error */
.ai-seo-error {
    background: #ffebee;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    color: #c62828;
}

.ai-seo-error h3 {
    color: #c62828;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Upgrade Notice */
.upgrade-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: center;
}

.upgrade-notice h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.upgrade-notice p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.upgrade-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upgrade-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-seo-analyzer-container {
        padding: 15px;
    }
    
    .ai-seo-form-container {
        padding: 20px;
    }
    
    .ai-seo-header h2 {
        font-size: 24px;
    }
    
    .feature-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .premium-badge {
        margin-left: 0;
        margin-top: 8px;
        align-self: flex-start;
    }
    
    .analyze-button {
        width: 100%;
        padding: 15px 20px;
    }
    
    .ai-seo-results,
    .ai-seo-error {
        padding: 20px;
    }
    
    .upgrade-notice {
        padding: 20px;
    }
    
    .score-display {
        padding: 15px;
    }
    
    .score-display h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ai-seo-analyzer-container {
        padding: 10px;
    }
    
    .ai-seo-form-container {
        padding: 15px;
    }
    
    .ai-seo-header h2 {
        font-size: 20px;
    }
    
    .analysis-section {
        padding: 15px;
    }
    
    .form-field input[type="url"],
    .form-field input[type="email"] {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ai-seo-analyzer-container {
        color: #e9ecef;
    }
    
    .ai-seo-form-container {
        background: #2c3e50;
        color: #e9ecef;
    }
    
    .ai-seo-header h2 {
        color: #e9ecef;
    }
    
    .form-field label {
        color: #e9ecef;
    }
    
    .form-field input[type="url"],
    .form-field input[type="email"] {
        background: #34495e;
        border-color: #5a6c7d;
        color: #e9ecef;
    }
    
    .feature-item {
        background: #34495e;
        border-color: #5a6c7d;
    }
    
    .feature-item.enabled-feature {
        background: #1e3a2e;
        border-color: #27ae60;
    }
    
    .analysis-section {
        background: #34495e;
        color: #e9ecef;
    }
    
    .ai-seo-results {
        background: #2c3e50;
        color: #e9ecef;
    }
}

/* Print Styles */
@media print {
    .ai-seo-analyzer-container {
        max-width: none;
        padding: 0;
    }
    
    .ai-seo-form-container,
    .analyze-button,
    .upgrade-notice {
        display: none;
    }
    
    .ai-seo-results {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .analysis-section {
        page-break-inside: avoid;
        border-left: 4px solid #000;
    }
}