/* SEO Site Checkup - Public Styles */

.ssc-public-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.ssc-public-header {
    text-align: center;
    margin-bottom: 40px;
}

.ssc-public-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 10px 0;
}

.ssc-public-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
}

.ssc-public-form-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.ssc-form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 12px;
}

.ssc-input-wrapper {
    display: flex;
    gap: 12px;
}

.ssc-public-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.ssc-public-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.ssc-public-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.ssc-public-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ssc-public-btn:active {
    transform: translateY(0);
}

.ssc-btn-icon {
    display: flex;
    align-items: center;
}

.ssc-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.ssc-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.ssc-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #00a32a;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

/* Loading State */
.ssc-public-loading {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-top: 40px;
}

.ssc-loading-spinner {
    width: 60px;
    height: 60px;
    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); }
}

.ssc-loading-text {
    font-size: 20px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0 0 8px 0;
}

.ssc-loading-subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Results */
.ssc-public-results {
    margin-top: 40px;
}

.ssc-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.ssc-score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.ssc-score-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.ssc-score-label {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.ssc-results-url {
    font-size: 18px;
    margin: 20px 0 10px;
    word-break: break-all;
}

.ssc-grade-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 20px;
    font-weight: 700;
}

.ssc-results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ssc-summary-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.ssc-summary-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.ssc-summary-passed .ssc-summary-icon {
    color: #00a32a;
}

.ssc-summary-failed .ssc-summary-icon {
    color: #d63638;
}

.ssc-summary-total .ssc-summary-icon {
    color: #2271b1;
}

.ssc-summary-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.ssc-summary-label {
    font-size: 14px;
    color: #666;
}

.ssc-checks-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 30px;
}

.ssc-checks-title {
    font-size: 24px;
    margin: 0 0 25px 0;
}

.ssc-check-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ssc-check-passed {
    border-left: 4px solid #00a32a;
}

.ssc-check-failed {
    border-left: 4px solid #d63638;
}

.ssc-check-header {
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ssc-check-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ssc-check-passed .ssc-check-icon {
    color: #00a32a;
}

.ssc-check-failed .ssc-check-icon {
    color: #d63638;
}

.ssc-check-title {
    margin: 0;
    font-size: 18px;
    flex: 1;
}

.ssc-check-content {
    padding: 20px;
}

.ssc-check-message {
    font-size: 15px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
}

.ssc-check-recommendation {
    margin-top: 15px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
}

.ssc-check-recommendation strong {
    display: block;
    margin-bottom: 8px;
    color: #1e1e1e;
}

/* Disabled State */
.ssc-public-disabled {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.ssc-public-disabled p {
    font-size: 18px;
    color: #666;
}

/* Results Actions */
.ssc-results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.ssc-btn-primary,
.ssc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.ssc-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ssc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ssc-btn-secondary {
    color: #667eea;
    background: #fff;
    border: 2px solid #667eea;
}

.ssc-btn-secondary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ssc-btn-primary:active,
.ssc-btn-secondary:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .ssc-public-container {
        margin: 20px;
    }
    
    .ssc-public-title {
        font-size: 24px;
    }
    
    .ssc-public-subtitle {
        font-size: 16px;
    }
    
    .ssc-public-form-container {
        padding: 25px;
    }
    
    .ssc-input-wrapper {
        flex-direction: column;
    }
    
    .ssc-public-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ssc-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .ssc-results-summary {
        grid-template-columns: 1fr;
    }
    
    .ssc-results-actions {
        flex-direction: column;
    }
    
    .ssc-btn-primary,
    .ssc-btn-secondary {
        width: 100%;
    }
}
