/* ========================
   PUNISHMENTS PAGE STYLES
   ======================== */

.punishments-page {
    padding-bottom: 4rem;
}

.punishments-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1607513746994-51f730a44832?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.punishments-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Statistics Cards */
.punishments-stats {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), transparent);
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

#stat-bans .stat-icon { color: #f44336; }
#stat-mutes .stat-icon { color: #ff9800; }
#stat-blacklists .stat-icon { color: #9c27b0; }
#stat-warnings .stat-icon { color: #ffc107; }

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
}

.stat-info {
    flex-grow: 1;
}

.stat-number {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--text-secondary);
}

/* Search Section */
.punishments-search {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.search-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 3.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 0.8rem;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.search-clear:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Filter Tabs */
.punishments-filters {
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
}

.filter-tab {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-light);
}

.filter-tab.active {
    background: var(--primary-light);
    color: var(--text-dark);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Punishments List */
.punishments-list {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.punishments-container {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    min-height: 400px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.loading-spinner i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Punishments Table */
.punishments-table-container {
    overflow-x: auto;
}

.punishments-table {
    width: 100%;
    border-collapse: collapse;
}

.punishments-table thead {
    background: rgba(255, 255, 255, 0.1);
}

.punishments-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-light);
    border-bottom: 2px solid var(--glass-border);
}

.punishments-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.punishments-table tbody tr:hover {
    background: rgba(4, 116, 28, 0.05);
}

.punishments-table td {
    padding: 1rem;
    color: var(--text);
}

/* Punishment Type Badge */
.punishment-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.punishment-type.ban {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.punishment-type.mute {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.punishment-type.blacklist {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.punishment-type.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.punishment-type.kick {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

/* Status Badge */
.punishment-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.punishment-status.active {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.punishment-status.expired {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.punishment-status.pardoned {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

/* Player Avatar */
.player-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 0.3rem;
    object-fit: cover;
}

.player-name {
    font-weight: 600;
    color: var(--text);
}

.player-name:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.pagination-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-light);
    color: var(--text-dark);
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text);
    font-weight: 600;
}

/* API Info Section */
.api-info {
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.api-info-content {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.api-icon {
    font-size: 3rem;
    color: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    flex-shrink: 0;
}

.api-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.api-text p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .punishments-hero h1 {
        font-size: 2.8rem;
    }

    .punishments-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tabs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .punishments-hero h1 {
        font-size: 2.2rem;
    }

    .punishments-stats {
        grid-template-columns: 1fr;
    }

    .punishments-table {
        font-size: 0.85rem;
    }

    .punishments-table th,
    .punishments-table td {
        padding: 0.8rem 0.5rem;
    }

    .api-info-content {
        flex-direction: column;
        text-align: center;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .punishments-hero h1 {
        font-size: 2rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
        justify-content: center;
    }

    /* Make table scrollable on mobile */
    .punishments-table-container {
        border-radius: 0.5rem;
    }

    .punishments-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
