/* WP Remote Font Scanner - Stili Front-end Puliti */
.wp-rfs-scanner-frontend {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Box principale */
.rfs-scanner-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.rfs-scanner-title {
    margin-top: 0;
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* Input principale */
.rfs-main-input {
    margin-bottom: 25px;
}

.rfs-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.rfs-url-input {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #fafafa;
}

.rfs-url-input:focus {
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.rfs-scan-button {
    padding: 18px 35px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.rfs-scan-button:hover {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

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

/* Opzioni rapide */
.rfs-quick-options {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

.rfs-option-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rfs-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rfs-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.rfs-option label {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
}

.rfs-pages-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #2c3e50;
    min-width: 120px;
}

.rfs-pages-select:focus {
    border-color: #3498db;
    outline: none;
}

.rfs-options-help {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.rfs-description {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.6;
}

/* Loading */
.rfs-loading {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px dashed #dee2e6;
}

.rfs-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: rfs-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes rfs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Risultati */
.rfs-results-container {
    margin-top: 30px;
}

/* Tabella risultati uniformata */
.rfs-results-container table.wp-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rfs-results-container table.wp-list-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #2c3e50;
    font-weight: 600;
    padding: 15px 12px;
    border-bottom: 2px solid #dee2e6;
}

.rfs-results-container table.wp-list-table td {
    padding: 12px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
}

.rfs-results-container .font-main-row {
    transition: background-color 0.2s;
}

.rfs-results-container .font-main-row:hover {
    background-color: rgba(52, 152, 219, 0.03) !important;
}

/* Badge uniformi */
.font-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border: 1px solid #90caf9;
}

.font-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
}
.font-active {
    background: linear-gradient(135deg, #d4f7d4, #b0e9b0);
    color: #155724;
    border: 1px solid #9dd69d;
}
.font-inactive {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border: 1px solid #90caf9;
}

.license-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid transparent;
    text-align: center;
    min-width: 100px;
}
.license-free {
    background: linear-gradient(135deg, #68d391, #48bb78);
    color: white;
}
.license-check_required {
    background: linear-gradient(135deg, #f6e05e, #ecc94b);
    color: #744210;
}
.license-commercial {
    background: linear-gradient(135deg, #fc8181, #f56565);
    color: white;
}

.where-found-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
    border: none !important;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.scan-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

/* Dettagli font */
.font-details-container {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.detail-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 15px;
}

.detail-content pre.context-pre {
    background: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #34495e;
    border-radius: 6px;
    padding: 15px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    max-height: 200px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    font-family: 'Courier New', monospace;
}

/* Colori stato licenza */
.license-status-free {
    background-color: rgba(104, 211, 145, 0.08) !important;
    border-left: 4px solid #68d391;
}

.license-status-check_required {
    background-color: rgba(246, 224, 94, 0.08) !important;
    border-left: 4px solid #f6e05e;
}

.license-status-commercial {
    background-color: rgba(252, 129, 129, 0.08) !important;
    border-left: 4px solid #fc8181;
}

/* Errori */
.rfs-error {
    background: #fde8e8;
    color: #c53030;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #c53030;
    margin: 15px 0;
}

.rfs-no-results {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}

.rfs-login-required {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.rfs-disclaimer {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #1565c0;
    border-left: 4px solid #2196f3;
    margin-top: 30px;
}

.rfs-disclaimer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rfs-scanner-box {
        padding: 25px;
    }
    
    .rfs-input-group {
        flex-direction: column;
    }
    
    .rfs-scan-button {
        width: 100%;
    }
    
    .rfs-option-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rfs-pages-select {
        width: 100%;
    }
    
    .rfs-scanner-title {
        font-size: 24px;
    }
    
    .license-badge {
        min-width: 80px;
        font-size: 12px;
        padding: 5px 8px;
    }
}