/* playtest.css - Custom Playtest Hub Dashboard style sheets */

:root {
    --neon-blue: #00D9FF;
    --neon-green: #00FF00;
    --neon-red: #FF0000;
    --neon-yellow: #FFFF00;
    --neon-orange: #FF6B35;
    --neon-turquoise: #40E0D0;
    --neon-amber: #FFBF00;
    --neon-violet: #8B5CF6;
    --bg-dark: #05050a;
    --bg-panel: rgba(10, 10, 20, 0.85);
    --border-glow: rgba(0, 217, 255, 0.25);
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --font-body: 'Electrolize', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 60px;
}

/* scanlines effect */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 1000;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* Header */
header {
    background-color: rgba(5, 5, 10, 0.9);
    border-bottom: 1px solid var(--border-glow);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

header .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    letter-spacing: 2px;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

header nav a {
    color: #a0a0b0;
    text-decoration: none;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

header nav a:hover, header nav a.active {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-stats {
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    backdrop-filter: blur(10px);
}

.stat-box {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 10px;
}

.stat-box.clickable {
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border-radius: 4px;
    padding-left: 10px;
}

.stat-box.clickable:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.stat-box.clickable:hover .stat-value {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.stat-box:last-child {
    border-right: none;
}

.stat-label {
    font-family: var(--font-mono);
    color: #606080;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--neon-turquoise);
    margin-top: 5px;
}

.stat-value.neon-green { color: var(--neon-green); text-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
.stat-value.neon-orange { color: var(--neon-orange); text-shadow: 0 0 10px rgba(255, 107, 53, 0.3); }
.stat-value.neon-violet { color: var(--neon-violet); text-shadow: 0 0 10px rgba(139, 92, 246, 0.3); }

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Panel Card */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-violet));
}

.panel.danger::before {
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange));
}

.panel.success::before {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-turquoise));
}

.panel-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Directives / Testing Focus Cards */
.directive-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--neon-turquoise);
    padding: 15px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 15px;
}

.directive-item h4 {
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 5px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.directive-item p {
    font-size: 0.85rem;
    color: #a0a0b0;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.tag-critical { background: rgba(255, 0, 0, 0.2); color: var(--neon-red); border: 1px solid var(--neon-red); }
.tag-high { background: rgba(255, 107, 53, 0.2); color: var(--neon-orange); border: 1px solid var(--neon-orange); }
.tag-medium { background: rgba(255, 191, 0, 0.2); color: var(--neon-amber); border: 1px solid var(--neon-amber); }
.tag-low { background: rgba(0, 217, 255, 0.2); color: var(--neon-blue); border: 1px solid var(--neon-blue); }

/* Scrollable panels */
#directives-container,
#changelog-container {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 15px;
}

#directives-container::-webkit-scrollbar,
#changelog-container::-webkit-scrollbar {
    width: 6px;
}
#directives-container::-webkit-scrollbar-track,
#changelog-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}
#directives-container::-webkit-scrollbar-thumb,
#changelog-container::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.15);
    border-radius: 3px;
    border: 1px solid rgba(0, 217, 255, 0.25);
}
#directives-container::-webkit-scrollbar-thumb:hover,
#changelog-container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.4);
}

/* Changelog Timeline */
.timeline {
    position: relative;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-event {
    position: relative;
    margin-bottom: 25px;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--neon-violet);
    box-shadow: 0 0 8px var(--neon-violet);
}

.timeline-event.release::before {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.timeline-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-violet);
}

.timeline-event.release .timeline-time {
    color: var(--neon-green);
}

.timeline-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #fff;
    margin: 3px 0;
}

.timeline-desc {
    font-size: 0.85rem;
    color: #a0a0b0;
}

.changelog-sec {
    margin-top: 15px;
}
.changelog-sec-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--neon-turquoise);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    padding-bottom: 2px;
}
.changelog-list {
    list-style-type: none;
    padding-left: 5px;
}
.changelog-list li {
    font-size: 0.8rem;
    color: #b0b0c0;
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.changelog-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--neon-blue);
    font-weight: bold;
}
.code-highlight {
    font-family: var(--font-mono);
    color: var(--neon-amber);
    background: rgba(255, 191, 0, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.75rem;
}

/* Issue list and board */
.issue-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s, border-color 0.2s;
}

.issue-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 255, 0.2);
}

.issue-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.issue-id {
    font-family: var(--font-mono);
    color: #606080;
    font-size: 0.8rem;
}

.issue-title {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.issue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #808090;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #a0a0b0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    padding: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select option {
    background-color: var(--bg-dark);
    color: #fff;
}

.btn {
    display: inline-block;
    width: 100%;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.1);
}

.btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    text-shadow: none;
}

.status-msg {
    margin-top: 15px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.status-msg.success {
    display: block;
    background: rgba(0, 255, 0, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

.status-msg.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

/* Console Logger Terminal widget */
.console-widget {
    background: #000;
    border: 1px solid #1a1a2e;
    border-radius: 6px;
    height: 180px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 15px;
    overflow-y: auto;
    color: var(--neon-green);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.console-line {
    opacity: 0.95;
    animation: typing 0.5s steps(40, end);
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
}

.console-time {
    color: rgba(0, 255, 0, 0.5);
    margin-right: 8px;
}

.console-alert { color: var(--neon-orange); }
.console-success { color: var(--neon-blue); }

.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #020205;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    justify-content: space-between;
    padding: 8px 30px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #606080;
    z-index: 998;
}

/* Developer Reports Viewer */
.reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: var(--font-body);
}

.reports-table th, .reports-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reports-table th {
    font-family: var(--font-mono);
    color: var(--neon-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.reports-table td {
    font-size: 0.85rem;
}

.reports-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: bold;
}
.badge-new { background: rgba(0, 217, 255, 0.15); color: var(--neon-blue); border: 1px solid var(--neon-blue); }
.badge-in_progress { background: rgba(255, 191, 0, 0.15); color: var(--neon-amber); border: 1px solid var(--neon-amber); }
.badge-resolved { background: rgba(0, 255, 0, 0.15); color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-closed { background: rgba(255, 255, 255, 0.1); color: #808090; border: 1px solid #808090; }

.status-select {
    padding: 4px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    border-radius: 4px;
}
