/* Breadcrumb navigation */
.breadcrumb {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666666;
}

.breadcrumb a {
    color: var(--minecraft-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page decorations */
.tool-container {
    position: relative;
    overflow: hidden;
}

.command-block-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAArklEQVQ4y92TMQ6DMAxFnyMGVi7RDXED4CCtVImtZ+MG3KBsLEiMPUyP4A06sRSJDFEZGDBDLCFBII7zBtkfWXb+txMbuOsRMA+e+SbAmGVZGKaJcRxnzRhDnue0bUuSJJ4XH7JMf+l9XdeMw0BVVWRZhlIKrTVa652HB1mWfQrjXV3XlGVJkiSUZcn7+hPcsiz7N9GzLHsrE4Zhdjdp2rYlz3PXGOe6IdE9SEWZLJLo4AGQ5Mz1F/XVYwAAAABJRU5ErkJggg==');
    background-size: cover;
    transform: rotate(-15deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

.redstone-decoration {
    position: absolute;
    bottom: 30px;
    right: -15px;
    width: 70px;
    height: 70px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAnUlEQVQ4y2P8//8/AyWAiYFCQLEBLAwoQOx/IjjKIgAZMIUIA/YxwgygxIC7UPYMfAbgMmAVVD6KGAPQXbCKAQl/Z0AEIkwsclADDjCgAphYNLFIFGfADqT7GXADmHxU/A5oCxG2Y/cCsQaAXICu5j4DE5RNlAEMSIbcJ+QCmItgakgyAGbIfVIMgBlCkgEgQ0g2gBFoCD4DPuPTBADx9TOBkUCXdAAAAABJRU5ErkJggg==');
    background-size: cover;
    transform: rotate(10deg);
    opacity: 0.8;
    z-index: 0;
    image-rendering: pixelated;
    display: none; /* 在大屏幕上才显示 */
}

/* Commands filter */
.commands-filter {
    position: relative;
    background: var(--minecraft-panel);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    z-index: 1;
}

.commands-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-box label {
    font-weight: bold;
    color: #E0E0E0;
}

.search-box input {
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--minecraft-secondary);
    color: white;
    font-family: 'Noto Sans Mono', monospace;
    width: 100%;
    border-radius: 2px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--minecraft-green);
    box-shadow: 0 0 0 2px rgba(68, 189, 50, 0.2);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    min-width: 250px;
}

.edition-filter, 
.category-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edition-filter label,
.category-filter label {
    font-weight: bold;
    color: #E0E0E0;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    color: #AAAAAA;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.filter-btn:hover {
    background-color: rgba(59, 133, 38, 0.3);
    border-color: var(--minecraft-green);
    color: white;
}

.filter-btn.active {
    background-color: var(--minecraft-green);
    border-color: var(--minecraft-green);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#category-select {
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--minecraft-secondary);
    color: white;
    font-family: 'VT323', monospace;
    border-radius: 2px;
}

#category-select:focus {
    outline: none;
    border-color: var(--minecraft-green);
}

/* Commands display */
.commands-display {
    position: relative;
    background: var(--minecraft-panel);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    z-index: 1;
}

.commands-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

/* Commands grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.command-item {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--minecraft-secondary);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.command-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: 0;
}

.command-item:hover {
    background: rgba(59, 133, 38, 0.2);
    border-color: var(--minecraft-green);
    transform: translateY(-3px);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3);
}

.command-item.active {
    background: rgba(59, 133, 38, 0.3);
    border-color: var(--minecraft-green);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(68, 189, 50, 0.3);
}

.command-name {
    font-family: 'VT323', monospace;
    font-weight: bold;
    color: var(--minecraft-green);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.command-category {
    font-size: 0.8rem;
    color: #AAAAAA;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Loading state */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #AAAAAA;
    grid-column: 1 / -1;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.6;
    }
    to {
        opacity: 1;
    }
}

/* Command detail view */
.command-detail-view {
    position: relative;
    background: var(--minecraft-panel);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    transition: all 0.3s ease;
    border-radius: 2px;
    z-index: 1;
}

.command-detail-view.hidden {
    display: none;
}

.command-detail-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    padding-bottom: 0.75rem;
    position: relative;
}

#detail-title {
    flex: 1;
    margin: 0;
    color: var(--minecraft-green);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    font-family: 'VT323', monospace;
}

/* Edition badge styles */
.edition-badge {
    background: #888888;
    color: white;
    font-size: 0.85rem;
    padding: 0.2rem 0.75rem;
    border-radius: 2px;
    margin-right: 1rem;
    font-family: 'VT323', monospace;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.java-edition {
    background: #4CAF50; /* 绿色，代表 Java */
}

.bedrock-edition {
    background: #2196F3; /* 蓝色，代表 Bedrock */
}

/* 命令项版本指示 */
.command-item::after {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #888888; /* 默认颜色，表示两个版本都适用 */
}

.command-item[data-edition="java"]::after {
    background-color: #4CAF50; /* 绿色，表示 Java 版本 */
}

.command-item[data-edition="bedrock"]::after {
    background-color: #2196F3; /* 蓝色，表示 Bedrock 版本 */
}

/* 悬停提示 */
.command-item {
    position: relative;
}

.command-item:hover::before {
    content: attr(data-edition-text);
    position: absolute;
    top: -30px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.command-item:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.close-detail {
    background: none;
    border: none;
    color: #AAAAAA;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-detail:hover {
    color: white;
    transform: scale(1.2);
}

.detail-content {
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: var(--minecraft-green);
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    font-family: 'VT323', monospace;
}

.syntax-box {
    background: #272822;
    color: #f8f8f2;
    border-left: 4px solid var(--minecraft-green);
    padding: 1rem;
    font-family: 'Noto Sans Mono', monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    position: relative;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    line-height: 1.6;
}

#detail-description {
    color: #E0E0E0;
    line-height: 1.6;
}

/* Arguments styling */
#detail-arguments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.param-item {
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border-left: 3px solid var(--minecraft-secondary);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.param-name {
    font-weight: bold;
    color: var(--minecraft-green);
    font-family: 'Noto Sans Mono', monospace;
    display: block;
    margin-bottom: 0.25rem;
}

.param-desc {
    color: #E0E0E0;
}

/* Examples styling */
#detail-examples {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.example-item {
    background: #272822;
    color: #f8f8f2;
    padding: 1rem;
    font-family: 'Noto Sans Mono', monospace;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.example-desc {
    font-size: 0.9rem;
    color: #E0E0E0;
    padding-left: 0.5rem;
    border-left: 2px solid var(--minecraft-secondary);
}

/* Command intro section */
.command-intro {
    position: relative;
    background: var(--minecraft-panel);
    padding: 1.5rem;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    border: 2px solid var(--minecraft-secondary);
    border-radius: 2px;
    z-index: 1;
}

.command-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQImWNgYGD4z8DAwMAAADgDAKdD8tMAAAAASUVORK5CYII=');
    background-size: 2px 2px;
    opacity: 0.05;
    z-index: -1;
}

.command-intro h2 {
    color: var(--minecraft-green);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-secondary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.command-intro p {
    color: #E0E0E0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.intro-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.intro-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border: 1px solid var(--minecraft-secondary);
    border-radius: 2px;
}

.intro-section h3 {
    color: var(--minecraft-green);
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    font-family: 'VT323', monospace;
}

.intro-section p {
    color: #CCCCCC;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.intro-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.3rem;
    font-family: 'Noto Sans Mono', monospace;
    color: #FF8C00;
    border-radius: 2px;
}

/* Syntax highlighting for commands */
.command-keyword {
    color: #f92672;
    font-weight: bold;
}

.command-param {
    color: #a6e22e;
}

.command-optional {
    color: #66d9ef;
}

/* Copy button for code */
.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--minecraft-green);
    color: white;
    border: none;
    border-radius: 2px;
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-family: 'VT323', monospace;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.syntax-box:hover .copy-btn,
.example-item:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: var(--minecraft-secondary);
    transform: translateY(-1px);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2),
                inset 0 -2px 0 rgba(0, 0, 0, 0.3),
                0 2px 4px rgba(0, 0, 0, 0.2);
}

.copy-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Tooltip for copy button */
.copy-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.copy-tooltip.active {
    opacity: 1;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #AAAAAA;
    font-style: italic;
    grid-column: 1 / -1;
}

/* Category colors */
.category-player {
    background-color: rgba(21, 101, 192, 0.3);
    color: #64B5F6;
}

.category-world {
    background-color: rgba(46, 125, 50, 0.3);
    color: #81C784;
}

.category-entity {
    background-color: rgba(230, 81, 0, 0.3);
    color: #FFB74D;
}

.category-block {
    background-color: rgba(123, 31, 162, 0.3);
    color: #CE93D8;
}

.category-admin {
    background-color: rgba(198, 40, 40, 0.3);
    color: #EF9A9A;
}

/* Permissions section styling */
.permissions-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-left: 3px solid var(--minecraft-accent);
    border-radius: 2px;
}

#detail-permission {
    color: #E0E0E0;
    line-height: 1.6;
}

/* Responsive design */
@media (min-width: 992px) {
    .command-block-decoration,
    .redstone-decoration {
        display: block;
    }
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
    }
    
    .commands-display,
    .command-detail-view,
    .command-intro,
    .commands-filter {
        padding: 1rem;
    }
    
    .commands-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .intro-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .commands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .filter-buttons {
        flex-wrap: wrap;
    }
    
    .command-name {
        font-size: 1rem;
    }
} 