/* Cyberpunk theme for Chatsubo */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --neon-text-color: #f92aad;
    --neon-border-color: #08f;
    --primary-color: #f92aad;
    --secondary-color: #08f;
    --background-color: #0a0a0a;
    --text-color: #fff;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
}

.cyberpunk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Glitch effect */
.glitch {
    position: relative;
    color: var(--neon-text-color);
    font-size: 4em;
    letter-spacing: 0.1em;
    text-shadow: 0 0 0.1em var(--neon-text-color);
    animation: glow 2s ease-in-out infinite alternate;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #0ff;
    z-index: -2;
}

.glitch::after {
    color: #f0f;
    z-index: -1;
}

.glitch.active::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch.active::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

/* Neon box */
.neon-box {
    border: 2px solid var(--neon-border-color);
    padding: 2rem;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 10px var(--neon-border-color),
                inset 0 0 10px var(--neon-border-color);
}

.terminal-text {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-border-color);
    padding: 1rem;
    margin: 1rem 0;
}

.terminal-text pre {
    color: #0f0;
    margin: 0;
}

/* Grid layout */
.grid-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.box {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--secondary-color);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff,
                     0 0 10px #fff,
                     0 0 15px var(--neon-text-color),
                     0 0 20px var(--neon-text-color);
    }
    to {
        text-shadow: 0 0 10px #fff,
                     0 0 20px #fff,
                     0 0 30px var(--neon-text-color),
                     0 0 40px var(--neon-text-color);
    }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

/* Character List Enhancements */

/* Admin Group Colors */
.group-sysop {
    color: #FF00FF !important;
}

.group-developer {
    color: #00FFFF !important;
}

.group-security {
    color: #FF8800 !important;
}

.group-builder {
    color: #FFFF00 !important;
}

.group-tester {
    color: #AA6600 !important;
}

.group-support {
    color: #00FF00 !important;
}

.group-player {
    color: #FFFFFF !important;
}

/* Status Text */
.status-text.online {
    color: #00FF00;
    font-weight: bold;
}

.status-text.offline {
    color: #888;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.online {
    background-color: #00FF00;
    box-shadow: 0 0 8px #00FF00;
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: #666;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Group Badges */
.group-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1);
    display: inline-block;
}

/* Character List Table Enhancements */
.character-list .character-online {
    background-color: rgba(0, 255, 0, 0.05);
}

.character-list .status-col {
    width: 50px;
    text-align: center;
}

.character-list .description-col {
    max-width: 300px;
}

.character-list .text-center {
    text-align: center;
}

.character-list .character-name {
    text-decoration: none;
    font-weight: bold;
}

.character-list .character-name:hover {
    text-shadow: 0 0 5px currentColor;
}

.character-list .character-role {
    color: var(--secondary-color);
}

/* Character Detail Page */
.character-detail-container {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.character-header {
    border-bottom: 2px solid var(--neon-border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.character-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.character-header h1 .status-indicator {
    width: 15px;
    height: 15px;
    margin-left: 10px;
}

.character-meta {
    margin-top: 15px;
    font-size: 1.1em;
}

.meta-item {
    margin-right: 30px;
    display: inline-block;
}

.character-description,
.character-stats {
    margin-bottom: 30px;
}

.character-description h2,
.character-stats h2 {
    color: var(--neon-text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.character-description p {
    line-height: 1.8;
    color: #ccc;
}

.stat-grid {
    display: grid;
    gap: 10px;
}

.stat-row {
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
}

.stat-label {
    font-weight: bold;
    color: var(--neon-text-color);
}

.stat-value {
    color: var(--secondary-color);
}

.character-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5em;
    }

    .grid-boxes {
        grid-template-columns: 1fr;
    }

    .character-header h1 {
        font-size: 1.8em;
    }

    .meta-item {
        display: block;
        margin-bottom: 10px;
    }

    .character-list .description-col {
        max-width: 200px;
    }

    .stat-row {
        flex-direction: column;
        gap: 5px;
    }
}

/* Documentation Hub Styles */

.docs-hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.docs-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--neon-border-color);
}

.docs-header h1 {
    color: var(--neon-text-color);
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--neon-text-color);
}

.docs-subtitle {
    color: var(--secondary-color);
    font-size: 1.2em;
}

.docs-search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.docs-search-input {
    width: 70%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-border-color);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1em;
}

.docs-search-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--neon-border-color);
}

.docs-search-btn {
    width: 28%;
    padding: 12px;
    background: var(--neon-border-color);
    border: none;
    color: var(--background-color);
    font-family: 'Share Tech Mono', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.docs-search-btn:hover {
    background: var(--neon-text-color);
    box-shadow: 0 0 15px var(--neon-text-color);
}

.docs-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.docs-section {
    padding: 20px;
}

.docs-section h2 {
    color: var(--neon-text-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.docs-list {
    list-style: none;
    padding: 0;
}

.docs-list li {
    margin-bottom: 10px;
}

.docs-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.docs-link:hover {
    color: var(--neon-text-color);
    text-shadow: 0 0 5px currentColor;
    transform: translateX(5px);
}

.docs-link::before {
    content: "▸ ";
    color: var(--neon-border-color);
}

.docs-quick-links {
    padding: 20px;
    margin-bottom: 20px;
}

.docs-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
}

.docs-footer code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--secondary-color);
}

/* Documentation Detail Page */

.docs-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.docs-breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
}

.docs-breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}

.docs-breadcrumb a:hover {
    color: var(--neon-text-color);
}

.docs-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin-bottom: 30px;
}

.docs-toc {
    position: sticky;
    top: 20px;
    height: fit-content;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-border-color);
}

.docs-toc h3 {
    color: var(--neon-text-color);
    margin-bottom: 10px;
}

.docs-toc ul {
    list-style: none;
    padding-left: 10px;
}

.docs-toc a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9em;
}

.docs-toc a:hover {
    color: var(--neon-text-color);
}

.docs-content {
    padding: 30px;
    line-height: 1.8;
}

.docs-content h1 {
    color: var(--neon-text-color);
    border-bottom: 2px solid var(--neon-border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.docs-content h2 {
    color: var(--neon-text-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.docs-content h3 {
    color: var(--secondary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.docs-content p {
    margin-bottom: 15px;
    color: #ccc;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
    color: #ccc;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content code {
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--secondary-color);
    font-family: 'Share Tech Mono', monospace;
}

.docs-content pre {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--neon-border-color);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: #0f0;
}

.docs-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--secondary-color);
}

.docs-content a:hover {
    color: var(--neon-text-color);
    border-bottom-color: var(--neon-text-color);
}

.docs-content blockquote {
    border-left: 3px solid var(--neon-border-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #aaa;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.docs-content th, .docs-content td {
    border: 1px solid var(--neon-border-color);
    padding: 10px;
    text-align: left;
}

.docs-content th {
    background: rgba(0, 255, 255, 0.1);
    color: var(--neon-text-color);
}

.docs-navigation {
    padding: 20px 0;
    text-align: center;
}

.docs-nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--neon-border-color);
    display: inline-block;
    transition: all 0.3s ease;
}

.docs-nav-link:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px var(--neon-border-color);
}

/* Documentation Search Page */

.docs-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.docs-search-results {
    margin-top: 30px;
}

.docs-search-results h2 {
    color: var(--neon-text-color);
    margin-bottom: 10px;
}

.search-count {
    color: #888;
    margin-bottom: 30px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result {
    padding: 20px;
}

.result-title {
    color: var(--neon-text-color);
    text-decoration: none;
    font-size: 1.3em;
}

.result-title:hover {
    text-shadow: 0 0 10px var(--neon-text-color);
}

.result-meta {
    margin: 10px 0;
    color: #888;
}

.result-category {
    background: rgba(0, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--secondary-color);
}

.result-excerpt {
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--neon-border-color);
    line-height: 1.6;
    color: #ccc;
}

.result-excerpt mark {
    background: rgba(255, 42, 173, 0.3);
    color: var(--neon-text-color);
    padding: 2px 4px;
}

.no-results {
    padding: 30px;
    text-align: center;
}

.no-results ul {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
}

.docs-search-help {
    padding: 30px;
}

.docs-search-help h2 {
    color: var(--neon-text-color);
    margin-bottom: 15px;
}

.docs-search-help ul {
    margin-top: 15px;
}

/* Commands Page Styles */
.command-filter-bar {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.command-filter-bar .form-control {
    border: 1px solid var(--neon-border-color);
    box-shadow: 0 0 5px var(--neon-border-color);
}

.command-filter-bar .form-control:focus {
    border-color: var(--neon-text-color);
    box-shadow: 0 0 10px var(--neon-text-color);
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.alpha-link {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.alpha-link:hover {
    color: var(--neon-text-color);
    border-color: var(--neon-text-color);
    box-shadow: 0 0 10px var(--neon-text-color);
    text-decoration: none;
}

.alpha-link.active {
    background-color: var(--neon-text-color);
    color: #000;
    border-color: var(--neon-text-color);
    box-shadow: 0 0 15px var(--neon-text-color);
}

.command-item {
    margin-bottom: 2rem;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    background-color: rgba(0, 136, 255, 0.05);
    transition: all 0.3s ease;
    padding-bottom: 0.5rem;
}

.command-item:hover {
    border-color: var(--neon-text-color);
    box-shadow: 0 0 10px rgba(249, 42, 173, 0.3);
}

.command-item.expanded {
    border-color: var(--neon-text-color);
    box-shadow: 0 0 15px rgba(249, 42, 173, 0.5);
}

.command-header {
    padding: 1rem;
    cursor: pointer;
    user-select: none;
}

.command-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.command-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--neon-text-color);
    text-shadow: 0 0 2px rgba(249, 42, 173, 0.3);
}

.command-switches {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.switch-badge {
    background-color: rgba(0, 136, 255, 0.3);
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    border: 1px solid var(--secondary-color);
}

.command-category-badge {
    background-color: rgba(249, 42, 173, 0.2);
    color: var(--neon-text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--neon-text-color);
    margin-left: auto;
}

.expand-icon {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.command-short-desc {
    color: #0ff;
    font-size: 0.95rem;
    margin-left: 0.25rem;
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.5);
}

.command-body {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid rgba(0, 136, 255, 0.3);
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.command-usage {
    margin-bottom: 1rem;
}

.command-usage strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.command-usage pre {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--secondary-color);
    border-radius: 3px;
    padding: 0.75rem;
    color: #0f0;
    margin: 0;
    font-size: 0.95rem;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.5);
    line-height: 1.5;
}

.command-full-help pre {
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--neon-border-color);
    border-radius: 3px;
    padding: 1rem;
    color: #0f0;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.95rem;
    max-height: 500px;
    overflow-y: auto;
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.5);
    line-height: 1.6;
}

#noResults {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .docs-content-wrapper {
        grid-template-columns: 1fr;
    }

    .docs-toc {
        position: relative;
        top: 0;
    }

    .docs-search-input {
        width: 60%;
    }

    .docs-search-btn {
        width: 38%;
    }

    .docs-sections {
        grid-template-columns: 1fr;
    }

    .command-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .command-category-badge {
        margin-left: 0;
    }

    .alphabet-filter {
        justify-content: center;
    }

    .command-filter-bar .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .command-filter-bar .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
