/**
 * Modern Blacklist Styles for Klick-Game
 * Basiert auf dem Styleguide: Schwarz-Grau-Gradienten, Orange Border
 */

/* Container */
.blacklist-container {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 2px solid #ff6600;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1rem auto;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Header */
.blacklist-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.75rem;
    border-bottom: 2px dashed #328727;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Info Box */
.blacklist-info {
    background: rgba(2, 27, 64, 0.8);
    border: 2px solid #ff6600;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 0.875rem;
}

.blacklist-info ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.blacklist-info li {
    margin-bottom: 0.5rem;
}

/* Success/Error Messages */
.blacklist-message {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blacklist-message-success {
    background: rgba(36, 188, 6, 0.2);
    border: 1px solid #328727;
    color: #fff;
}

.blacklist-message-error {
    background: rgba(219, 0, 0, 0.2);
    border: 1px solid #cc520d;
    color: #fff;
}

/* Table */
.blacklist-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.blacklist-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    min-width: 600px;
}

.blacklist-table thead {
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.blacklist-table th {
    background: linear-gradient(90deg, #BAB3B4 0%, #726B6C 100%);
    color: #000;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: bold;
    border: 1px solid #444646;
    font-size: 0.875rem;
}

.blacklist-table tbody tr {
    background: #635E5E;
    transition: background 0.2s ease;
    border-bottom: 1px solid #726B6C;
    cursor: pointer;
}

.blacklist-table tbody tr:hover {
    background: #545050;
}

/* Recent entry highlight (within 7 days) */
.blacklist-table tbody tr.recent {
    font-weight: bold;
}

.blacklist-table tbody tr.old {
    opacity: 0.8;
}

.blacklist-table td {
    padding: 0.75rem 1rem;
    color: #BAB3B4;
    border: 1px solid #726B6C;
    font-size: 0.875rem;
    text-align: center;
}

.blacklist-table td:first-child {
    text-align: left;
}

.blacklist-table td a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blacklist-table td a:hover {
    color: #ff9900;
}

/* Warning icon */
.blacklist-warning {
    color: #DB0000;
    font-weight: bold;
    margin-right: 0.25rem;
}

/* Ranking number */
.blacklist-rank {
    display: inline-block;
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    color: #fff;
    font-weight: bold;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    min-width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Back to top link */
.blacklist-back-top {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #595959;
}

.blacklist-back-top a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #726B6C 0%, #595959 100%);
    border: 1px solid #ff6600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.blacklist-back-top a:hover {
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .blacklist-container {
        padding: 1rem;
    }
    
    .blacklist-table {
        font-size: 0.75rem;
        min-width: 100%;
    }
    
    .blacklist-table th,
    .blacklist-table td {
        padding: 0.5rem;
    }
    
    .blacklist-header {
        font-size: 1.25rem;
    }
}

/* Old table styling compatibility */
table[width="650px"],
table[width="400px"] {
    width: 100% !important;
    max-width: 800px;
}

/* Remove old box styling */
td[background*="box2"] {
    background: none !important;
    border: none !important;
}

table[border][bordercolor="black"] {
    border: none !important;
}

/* Override inline styles */
td[bgcolor="#BAB3B4"] {
    background: linear-gradient(90deg, #BAB3B4 0%, #726B6C 100%) !important;
}

td[bgcolor="#635E5E"] {
    background: #635E5E !important;
}

td[bgcolor="#635E5E"]:hover {
    background: #545050 !important;
}

/* Value display */
.blacklist-value {
    font-weight: bold;
    white-space: nowrap;
}

.blacklist-date {
    white-space: nowrap;
    font-size: 0.8125rem;
}
