.seoapro-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.seoapro-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.seoapro-header h1 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.seoapro-header p {
    font-size: 1.2em;
    margin: 0;
    opacity: 0.9;
}

.seoapro-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.seoapro-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.seoapro-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.seoapro-form-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.3em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.seoapro-form-group {
    margin-bottom: 25px;
}

.seoapro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.seoapro-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.seoapro-input,
.seoapro-select,
.seoapro-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.seoapro-input:focus,
.seoapro-select:focus,
.seoapro-textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.seoapro-form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 12px;
}

.seoapro-form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.seoapro-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 8px;
}

.seoapro-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.seoapro-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.seoapro-btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.seoapro-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.seoapro-btn-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.seoapro-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.seoapro-loading-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.seoapro-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.seoapro-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 12px;
}

.seoapro-progress-steps .step {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
}

.seoapro-progress-steps .step.active {
    background: #667eea;
    color: white;
}

.seoapro-results {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.seoapro-results-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.seoapro-results-header h2 {
    margin: 0 0 20px 0;
    font-size: 1.8em;
}

.seoapro-results-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.seoapro-results-content {
    padding: 40px;
}

.seoapro-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.seoapro-section-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3em;
}

.seoapro-content-section {
    margin-bottom: 40px;
}

.seoapro-content-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    max-height: 600px;
    overflow-y: auto;
    font-family: Georgia, serif;
    line-height: 1.6;
}

.seoapro-content-display h2 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.seoapro-content-display h3 {
    color: #495057;
    margin-top: 25px;
    margin-bottom: 12px;
}

.seoapro-content-display p {
    margin-bottom: 15px;
}

.seoapro-image-placeholder {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.seoapro-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.seo-metric {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    position: relative;
}

.seo-metric h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.seo-score {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-excellent { color: #28a745; }
.score-good { color: #20c997; }
.score-ok { color: #ffc107; }
.score-poor { color: #dc3545; }

.seo-metric-details {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 10px;
}

.seoapro-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.metadata-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.metadata-item strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-value {
    color: #495057;
    line-height: 1.4;
}

.copy-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

@media (max-width: 768px) {
    .seoapro-form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .seoapro-form-row {
        grid-template-columns: 1fr;
    }
    
    .seoapro-results-stats {
        gap: 20px;
    }
    
    .seoapro-seo-grid,
    .seoapro-metadata-grid {
        grid-template-columns: 1fr;
    }
}