/* =============================================================
   2k6Bans - Stylesheet
   Based on Owen2k6 Network Design Language
   ============================================================= */

/* GLOBAL RESET */
*, *:before, *:after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #f2f2f2;
    background-color: #1a1a1a;
    background-image: linear-gradient(to bottom, #181818 0%, #1a1a1a 100%);
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

/* HEADER */
.site-header {
    width: 100%;
    margin: 0;
    padding: 14px 4%;
    color: #fff;
    background-color: #2b2b2b;
    border-bottom: 2px solid #555;
    background-image: linear-gradient(to bottom, #3b3b3b, #1e1e1e);
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-title {
    margin: 0;
    font-size: 1.8em;
    text-shadow: 1px 1px 2px #000;
    font-weight: normal;
}

.header-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.header-nav a {
    color: #a7c7ff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.header-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.header-nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* MAIN CONTENT */
.site-main {
    width: 100%;
    margin: 0;
    padding: 12px 4%;
}

.content-container {
    background-color: #1e1e1e;
    max-width: 1200px;
    margin: 14px auto;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 0 16px rgba(0,0,0,0.6);
}

/* PANELS */
.panel-inset {
    margin: 0 0 20px 0;
    padding: 20px;
    border: 1px solid #444;
    background-color: #242424;
    border-radius: 8px;
    box-shadow: inset 2px 2px 5px #0e0e0e, inset -2px -2px 5px #2e2e2e;
    background-image: linear-gradient(145deg, #2e2e2e, #1c1c1c);
}

/* TYPOGRAPHY */
h1, h2, h3 { font-weight: normal; margin: 0; }

h2 {
    font-size: 1.55em;
    margin: 0 0 0.7em 0;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    line-height: 1.3;
}

.section-header {
    margin: 20px 0 10px 0;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.subtitle {
    color: #888;
    margin: 0;
}

/* BANS TABLE */
.bans-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.bans-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.bans-table th {
    background: #151515;
    color: #777;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #333;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.bans-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #ccc;
}

.bans-table tr:nth-child(even) {
    background: #1c1c1c;
}

.bans-table tr:hover {
    background: #2a2a2a;
}

.bans-table.compact td {
    padding: 8px 10px;
    font-size: 0.9em;
}

.player-cell {
    white-space: nowrap;
}

.player-cell img {
    vertical-align: middle;
    margin-right: 8px;
}

.player-cell span {
    vertical-align: middle;
}

.player-head {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #444;
    vertical-align: middle;
}

.reason-cell {
    max-width: 300px;
}

/* STATUS BADGES */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* BUTTONS */
.view-btn, .action-btn {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(to bottom, #0066cc, #004499);
    color: white;
    border: 1px solid #003366;
    border-radius: 4px;
    font-size: 0.85em;
    text-decoration: none;
    text-shadow: 1px 1px 1px #000;
    cursor: pointer;
    transition: background 0.2s;
}

.view-btn:hover, .action-btn:hover {
    background: linear-gradient(to bottom, #0055aa, #003377);
}

.view-btn.small {
    padding: 4px 8px;
    font-size: 0.8em;
}

.action-btn.large {
    padding: 12px 24px;
    font-size: 1em;
}

.action-btn.pardon {
    background: linear-gradient(to bottom, #228822, #006600);
    border-color: #004400;
}

.action-btn.pardon:hover {
    background: linear-gradient(to bottom, #117711, #005500);
}

.action-btn.warning {
    background: linear-gradient(to bottom, #cc6600, #994400);
    border-color: #663300;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.page-btn {
    padding: 8px 16px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
}

.page-btn:hover {
    background: #444;
}

.page-info {
    color: #888;
}

/* BAN DETAIL PAGE */
.ban-header {
    margin-bottom: 20px;
}

.ban-header-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid #444;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: border-color 0.2s;
}

a:hover .player-avatar {
    border-color: #5588ff;
}

.ban-header-info {
    flex: 1;
}

.ban-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.player-name {
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
}

a.player-name:hover {
    color: #5588ff;
    text-decoration: underline;
}

.ban-id {
    color: #888;
    margin: 5px 0 0 0;
}

.ban-id code {
    background: #111;
    padding: 2px 8px;
    border-radius: 3px;
    color: #55aaff;
}

/* DETAIL GRID */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #e0e0e0;
}

.detail-value code {
    background: #111;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #55aaff;
}

.reason-text {
    font-size: 1.1em;
    color: #fff;
}

/* PARDON INFO */
.pardon-info {
    border-color: #228822;
    background-image: linear-gradient(145deg, #1a2e1a, #1c1c1c);
}

/* EVIDENCE */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.evidence-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.evidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #151515;
    border-bottom: 1px solid #333;
    flex-wrap: wrap;
    gap: 10px;
}

.evidence-type {
    font-weight: bold;
    font-size: 0.9em;
}

.evidence-type.image { color: #55aaff; }
.evidence-type.text { color: #ffaa00; }

.evidence-meta {
    font-size: 0.8em;
    color: #666;
}

.evidence-content {
    padding: 15px;
}

.evidence-text {
    margin: 0;
    color: #ccc;
    white-space: pre-wrap;
}

.evidence-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    border: 1px solid #333;
}

.evidence-image-link {
    display: block;
}

/* STAFF SECTION */
.staff-only {
    border-color: #335588;
    background-image: linear-gradient(145deg, #1a2233, #1c1c1c);
}

.staff-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #ccc;
    font-size: 0.95em;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.form-input:focus {
    outline: none;
    border-color: #0066cc;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
}

.radio-group label:hover {
    border-color: #555;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to bottom, #0066cc, #004499);
    color: white;
    border: 1px solid #003366;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 1px 1px 1px #000;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: linear-gradient(to bottom, #0055aa, #003377);
}

.submit-btn.pardon {
    background: linear-gradient(to bottom, #228822, #006600);
    border-color: #004400;
}

/* SEARCH */
.search-form {
    margin-bottom: 0;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 12px;
    background: #111;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 1.1em;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.search-btn {
    padding: 0 30px;
    background: linear-gradient(to bottom, #0066cc, #004499);
    color: white;
    border: 1px solid #003366;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 1px 1px 1px #000;
}

.search-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #888;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-card.active { border-color: #ff5555; }
.stat-card.pardoned { border-color: #55ff55; }
.stat-card.expired { border-color: #ffaa00; }
.stat-card.flagged { border-color: #ff5555; background: #2a1a1a; }

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* QUICK ACTIONS */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* MESSAGES */
.error-msg {
    background: #441111;
    color: #ffaaaa;
    padding: 15px;
    border: 1px solid #993333;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #ff000033;
}

.success-msg {
    background: #114411;
    color: #aaffaa;
    padding: 15px;
    border: 1px solid #339933;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #00ff0033;
}

.warning-box {
    background: #332200;
    color: #ffcc66;
    padding: 15px;
    border: 1px solid #665500;
    border-radius: 4px;
    margin: 15px 0;
}

/* LOGIN HELP */
.login-help {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.login-help h4 {
    color: #888;
    margin: 0 0 10px 0;
    font-weight: normal;
}

.login-help ol {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.login-help ol li {
    margin-bottom: 5px;
}

.login-help code {
    background: #111;
    padding: 2px 6px;
    border-radius: 3px;
    color: #55aaff;
}

.login-help .warning {
    color: #ff5555;
    margin-top: 15px;
}

/* FOOTER */
.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #333;
    text-align: center;
    color: #555;
    font-size: 0.85em;
}

.footer a {
    color: #a7c7ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* LINKS */
a {
    color: #a7c7ff;
    text-decoration: underline;
}

code {
    font-family: "Courier New", monospace;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-title {
        font-size: 1.4em;
    }

    .ban-header-flex {
        flex-direction: column;
        text-align: center;
    }

    .ban-title {
        justify-content: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bans-table {
        font-size: 0.8em;
    }

    .search-row {
        flex-direction: column;
    }
}

