/**
 * IP Botnet Checker Plugin Styles
 * Matches Extortionware theme aesthetic
 */

.ipbc-container {
    max-width: 800px;
    margin: 2rem auto;
    font-family: 'Crimson Text', Georgia, serif;
}

.ipbc-form-wrapper {
    margin-bottom: 2rem;
}

.ipbc-field label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e8e6e0;
}

.ipbc-input-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ipbc-input-group input[type="text"] {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1rem;
    background-color: #242424;
    border: 1px solid #333333;
    color: #e8e6e0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.ipbc-input-group input[type="text"]:focus {
    outline: none;
    border-color: #d4a574;
}

.ipbc-submit {
    padding: 0.75rem 2rem;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    background-color: #d4a574;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.ipbc-submit:hover {
    opacity: 0.85;
}

/* Results Section */
.ipbc-results {
    margin-top: 2rem;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
}

.ipbc-result-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333333;
}

.ipbc-result-header.ipbc-danger {
    background-color: rgba(200, 100, 100, 0.1);
    border-bottom-color: #c86464;
}

.ipbc-result-header.ipbc-safe {
    background-color: rgba(100, 200, 100, 0.1);
    border-bottom-color: #64c864;
}

.ipbc-result-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #e8e6e0;
}

.ipbc-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.ipbc-badge-danger {
    background-color: rgba(200, 100, 100, 0.3);
    color: #ff9999;
}

.ipbc-badge-safe {
    background-color: rgba(100, 200, 100, 0.3);
    color: #99ff99;
}

.ipbc-result-body {
    padding: 1.5rem;
    background-color: #242424;
}

/* Score Section */
.ipbc-score-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.ipbc-score-circle {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid;
    position: relative;
}

.ipbc-score-circle.ipbc-danger {
    border-color: #c86464;
    background-color: rgba(200, 100, 100, 0.1);
}

.ipbc-score-circle.ipbc-safe {
    border-color: #64c864;
    background-color: rgba(100, 200, 100, 0.1);
}

.ipbc-score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e8e6e0;
    line-height: 1;
}

.ipbc-score-label {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.25rem;
}

.ipbc-score-info {
    flex: 1;
    min-width: 300px;
}

.ipbc-score-info p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e8e6e0;
}

/* Details Table */
.ipbc-details {
    margin-top: 2rem;
}

.ipbc-details h4 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #d4a574;
}

.ipbc-table {
    width: 100%;
    border-collapse: collapse;
}

.ipbc-table th,
.ipbc-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #333333;
}

.ipbc-table th {
    font-weight: 600;
    color: #d4a574;
    width: 35%;
}

.ipbc-table td {
    color: #e8e6e0;
}

.ipbc-table tr:last-child th,
.ipbc-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.ipbc-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #333333;
    text-align: center;
}

.ipbc-footer p {
    margin: 0;
    color: #666666;
}

.ipbc-footer a {
    color: #d4a574;
    text-decoration: none;
}

.ipbc-footer a:hover {
    text-decoration: underline;
}

/* Error Message */
.ipbc-error {
    padding: 1.5rem;
    background-color: rgba(200, 100, 100, 0.2);
    border: 1px solid #c86464;
    border-radius: 4px;
    color: #e8e6e0;
}

.ipbc-error p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipbc-input-group {
        flex-direction: column;
    }
    
    .ipbc-input-group input[type="text"],
    .ipbc-submit {
        width: 100%;
    }
    
    .ipbc-score-section {
        flex-direction: column;
        text-align: center;
    }
    
    .ipbc-table th,
    .ipbc-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}
