/* AntiSpywares SPF Checker - Styles */
/* Color Palette: #233D78, #5B98BA, #FF6B6B, #FFFFFF, #000000 */

.aspc-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000000;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(35, 61, 120, 0.1);
}

.aspc-header h2 {
    color: #233D78;
    font-size: 28px;
    margin: 0 0 8px 0;
}

.aspc-header p {
    color: #5B98BA;
    font-size: 16px;
    margin: 0 0 24px 0;
}

/* Form */
.aspc-form {
    margin-bottom: 30px;
}

.aspc-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.aspc-input-group input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 2px solid #e0e7ef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #FFFFFF;
    color: #000000;
}

.aspc-input-group input[type="text"]:focus {
    outline: none;
    border-color: #233D78;
    box-shadow: 0 0 0 3px rgba(35, 61, 120, 0.15);
}

.aspc-button {
    padding: 14px 32px;
    background: #233D78;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    white-space: nowrap;
}

.aspc-button:hover {
    background: #1a2f5e;
}

.aspc-button:active {
    transform: scale(0.97);
}

/* Results */
.aspc-result-card {
    background: #FFFFFF;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.aspc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8faff;
    border-bottom: 1px solid #e8edf4;
    flex-wrap: wrap;
    gap: 12px;
}

.aspc-domain-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.aspc-domain {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
}

.aspc-status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.aspc-status-good {
    background: #d4edda;
    color: #155724;
}

.aspc-status-warning {
    background: #fff3cd;
    color: #856404;
}

.aspc-status-critical {
    background: #f8d7da;
    color: #721c24;
}

.aspc-score {
    text-align: center;
    padding: 4px 16px;
    background: #233D78;
    border-radius: 8px;
    color: #FFFFFF;
}

.aspc-score-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.aspc-score-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.aspc-result-body {
    padding: 24px;
}

/* Sections */
.aspc-section {
    margin-top: 24px;
}

.aspc-section h4 {
    color: #233D78;
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

/* Code block */
.aspc-code-block {
    position: relative;
    background: #f5f7fb;
    border-radius: 8px;
    padding: 16px 60px 16px 16px;
    border: 1px solid #e8edf4;
    overflow-x: auto;
}

.aspc-code-block code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #000000;
    word-break: break-all;
}

.aspc-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    background: #FFFFFF;
    border: 1px solid #d0d7e0;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    color: #233D78;
    transition: background 0.2s;
}

.aspc-copy-btn:hover {
    background: #e8edf4;
}

/* Grid */
.aspc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .aspc-grid {
        grid-template-columns: 1fr;
    }
}

.aspc-grid-item h4 {
    color: #5B98BA;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.aspc-stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f5f7fb;
}

.aspc-stat-number {
    font-size: 32px;
    font-weight: 700;
}

.aspc-stat-success .aspc-stat-number {
    color: #28a745;
}

.aspc-stat-warning .aspc-stat-number {
    color: #ffc107;
}

.aspc-stat-danger .aspc-stat-number {
    color: #FF6B6B;
}

.aspc-stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Qualifier */
.aspc-qualifier {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f5f7fb;
    border-radius: 8px;
}

.aspc-qualifier code {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    background: #e8edf4;
    padding: 2px 12px;
    border-radius: 4px;
}

.aspc-badge {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.aspc-badge-success {
    background: #d4edda;
    color: #155724;
}

.aspc-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.aspc-badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* Mechanism tags */
.aspc-mechanism-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aspc-mechanism-tag {
    background: #e8edf4;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    color: #000000;
}

.aspc-mech-qualifier {
    font-weight: 700;
    color: #233D78;
}

.aspc-mech-value {
    color: #5B98BA;
}

/* Warnings & Recommendations */
.aspc-warning-list,
.aspc-recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aspc-warning-item,
.aspc-recommendation-item {
    padding: 10px 14px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 14px;
}

.aspc-warning-item {
    background: #fef3f0;
    border-left: 4px solid #FF6B6B;
    color: #8b3a3a;
}

.aspc-recommendation-item {
    background: #f0f7ff;
    border-left: 4px solid #5B98BA;
    color: #1a3a5c;
}

/* Alerts */
.aspc-alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.aspc-alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.aspc-alert-danger strong {
    display: block;
    margin-bottom: 4px;
}

.aspc-alert-danger p {
    margin: 4px 0 0 0;
}

/* Help text */
.aspc-help-text {
    font-size: 13px;
    margin: 6px 0 0 0;
}

.aspc-text-danger {
    color: #FF6B6B;
}

.aspc-text-muted {
    color: #6c757d;
}

/* Loading state */
.aspc-loading .aspc-button {
    opacity: 0.7;
    pointer-events: none;
}

.aspc-loading .aspc-button::after {
    content: '…';
    animation: aspc-dots 1.2s steps(4) infinite;
}

@keyframes aspc-dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}