/**
 * Real Spam Score Checker - WordPress Plugin Styles
 */

/* Container */
.spam-checker-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.spam-checker-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Input Section */
.spam-input-section {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.spam-input-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.spam-input-section p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 16px;
}

.input-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

#spam-url-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#spam-url-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.spam-check-button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spam-check-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.spam-check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Section */
#spam-loading-section {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 30px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

#spam-loading-section h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 10px;
}

#spam-loading-section p {
    color: #64748b;
    font-size: 14px;
}

.loading-details {
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.loading-details p {
    padding: 5px 0;
    color: #64748b;
    font-size: 14px;
}

/* Results Section */
#spam-results-section {
    margin-top: 40px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spam Score Gauge */
.spam-gauge {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 30px;
}

.spam-gauge h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.gauge-container {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 20px auto;
}

.gauge-bg {
    width: 200px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px 100px 0 0;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    width: 200px;
    height: 100px;
    background: linear-gradient(to right, #22c55e, #16a34a);
    border-radius: 100px 100px 0 0;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: center bottom;
    transform: rotate(0deg);
    transition: transform 1s ease-out, background 0.5s ease;
}

.gauge-score {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.gauge-label {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* Risk Level Badge */
.risk-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 15px;
}

.risk-low {
    background: #dcfce7;
    color: #166534;
}

.risk-medium {
    background: #fed7aa;
    color: #9a3412;
}

.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

/* Spam Factors Section */
.factors-section {
    margin-top: 40px;
}

.factors-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.factors-section > p {
    color: #64748b;
    margin-bottom: 20px;
}

#spam-factors-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spam-factor {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.spam-factor:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.factor-detected {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.factor-clean {
    border-left: 4px solid #22c55e;
    background: #f0fdf4;
}

.factor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.factor-icon {
    font-size: 24px;
}

.factor-name {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    flex: 1;
    min-width: 150px;
}

.factor-impact {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.status-warning {
    background: #fee2e2;
    color: #991b1b;
}

.status-good {
    background: #dcfce7;
    color: #166534;
}

.factor-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-left: 36px;
}

/* Recommendations Section */
.recommendations-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 16px;
}

.recommendations-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.recommendation-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #3b82f6;
}

.recommendation-box h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1e293b;
}

.recommendation-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-box li {
    padding: 8px 0;
    color: #64748b;
    font-size: 15px;
}

.low-risk-box {
    border-left-color: #22c55e;
}

.medium-risk-box {
    border-left-color: #f59e0b;
}

.high-risk-box {
    border-left-color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spam-input-section {
        padding: 25px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    #spam-url-input {
        min-width: 100%;
    }
    
    .spam-check-button {
        width: 100%;
    }
    
    .gauge-container {
        transform: scale(0.9);
    }
    
    .factor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .factor-name {
        min-width: 100%;
    }
    
    .spam-gauge {
        padding: 25px;
    }
}

/* Print Styles */
@media print {
    .spam-input-section,
    .spam-check-button {
        display: none;
    }
}
