/**
 * Broken Link Checker Plugin Styles
 * Modern, responsive, and lightweight CSS.
 */

.blc-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Input Section */
.blc-input-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

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

.blc-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.blc-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Buttons */
.blc-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.blc-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    color: #2c3e50;
    border: 1px solid #d1d9e6;
}

.blc-btn-primary {
    background: #3498db;
    color: #fff;
    border: none;
}

.blc-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.blc-btn-secondary {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.blc-btn-secondary:hover {
    background: #c0392b;
}

.blc-btn-small {
    padding: 6px 16px;
    font-size: 13px;
}

/* Loading Indicator */
.blc-loading {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 20px 0;
}

.blc-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e1e8ed;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: blc-spin 0.8s linear infinite;
}

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

/* Error Message */
.blc-error {
    background: #fee;
    color: #c0392b;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin: 20px 0;
}

/* Statistics Grid */
.blc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.blc-stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.blc-stat-card:hover {
    transform: translateY(-5px);
}

.blc-stat-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.blc-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
}

.blc-stat-working .blc-stat-value {
    color: #27ae60;
}

.blc-stat-broken .blc-stat-value {
    color: #e74c3c;
}

.blc-stat-redirect .blc-stat-value {
    color: #f39c12;
}

/* Filters */
.blc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.blc-filter-btn {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid #d1d9e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.blc-filter-btn:hover {
    background: #e1e8ed;
}

.blc-filter-active {
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Export Actions */
.blc-export-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
}

/* Table */
.blc-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.blc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.blc-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e8ed;
}

.blc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
    word-break: break-all;
}

.blc-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.blc-status-working {
    color: #27ae60;
    font-weight: 600;
}

.blc-status-broken {
    color: #e74c3c;
    font-weight: 600;
}

.blc-status-redirect {
    color: #f39c12;
    font-weight: 600;
}

.blc-type-internal {
    background: #d5f4e6;
    color: #27ae60;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.blc-type-external {
    background: #e8f0fe;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

/* No Results */
.blc-no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blc-container {
        padding: 15px;
    }
    
    .blc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .blc-stat-card {
        padding: 12px;
    }
    
    .blc-stat-value {
        font-size: 24px;
    }
    
    .blc-filters {
        gap: 8px;
    }
    
    .blc-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .blc-table th,
    .blc-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .blc-actions {
        flex-direction: column;
    }
    
    .blc-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blc-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .blc-input-section,
    .blc-filters,
    .blc-export-actions,
    #blc-analyze,
    #blc-reset {
        display: none;
    }
    
    .blc-container {
        padding: 0;
        margin: 0;
    }
    
    .blc-table {
        font-size: 10pt;
    }
    
    .blc-stat-card {
        break-inside: avoid;
    }
}

/* RTL Support */
[dir="rtl"] .blc-table th,
[dir="rtl"] .blc-table td {
    text-align: right;
}

[dir="rtl"] .blc-export-actions {
    justify-content: flex-start;
}