/* Commands Section Styles */

.commands-section {
    padding: 80px 0;
    background-color: #232323;
}

.commands-search {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(35, 35, 35, 0.8);
    border: 2px solid rgba(205, 65, 43, 0.3);
    border-radius: 10px;
    color: var(--rust-text, #c5bbb4);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--rust-primary, #cd412b);
    box-shadow: 0 0 20px rgba(205, 65, 43, 0.2);
}

.search-input::placeholder {
    color: rgba(197, 187, 180, 0.5);
}

.commands-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.command-tab {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(205, 65, 43, 0.3);
    border-radius: 8px;
    color: var(--rust-text, #c5bbb4);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.command-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rust-primary, #cd412b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.command-tab:hover {
    border-color: var(--rust-primary, #cd412b);
    transform: translateY(-2px);
}

.command-tab.active {
    background: var(--rust-primary, #cd412b);
    color: #fff;
    border-color: var(--rust-primary, #cd412b);
}

.command-tab.active::after {
    transform: scaleX(1);
}

.commands-content {
    display: none;
}

.commands-content.active {
    display: block;
}

.command-group {
    margin-bottom: 40px;
}

.command-group-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rust-primary, #cd412b);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(205, 65, 43, 0.3);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.command-card {
    background: rgba(35, 35, 35, 0.8);
    border: 2px solid rgba(205, 65, 43, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.command-card:hover {
    border-color: var(--rust-primary, #cd412b);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(205, 65, 43, 0.2);
}

.command-card.exclusive {
    border-color: var(--rust-accent, #738d45);
}

.command-card.exclusive::before {
    content: 'ЭКСКЛЮЗИВ';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--rust-accent, #738d45);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.command-syntax {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.command-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rust-accent, #738d45);
    background: rgba(26, 26, 26, 0.6);
    padding: 8px 12px;
    border-radius: 5px;
    flex: 1;
}

.copy-btn {
    background: transparent;
    border: 2px solid var(--rust-primary, #cd412b);
    color: var(--rust-primary, #cd412b);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--rust-primary, #cd412b);
    color: #fff;
}

.copy-btn.copied {
    background: var(--rust-accent, #738d45);
    border-color: var(--rust-accent, #738d45);
    color: #fff;
}

.command-description {
    color: var(--rust-text, #c5bbb4);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.command-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.command-cooldown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rust-accent, #738d45);
    font-size: 0.85rem;
    font-weight: 500;
}

.command-cooldown i {
    font-size: 0.9rem;
}

.command-usage {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(197, 187, 180, 0.2);
}

.command-usage-label {
    color: var(--rust-primary, #cd412b);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.command-examples {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.command-example {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(197, 187, 180, 0.8);
    background: rgba(26, 26, 26, 0.4);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--rust-accent, #738d45);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--rust-text, #c5bbb4);
}

.no-results i {
    font-size: 4rem;
    color: rgba(205, 65, 43, 0.3);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 1rem;
    color: rgba(197, 187, 180, 0.7);
}

.copy-confirmation {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--rust-accent, #738d45);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 9999;
    animation: slideInUp 0.3s ease, fadeOut 0.3s ease 1.7s;
    opacity: 0;
}

.copy-confirmation.show {
    opacity: 1;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .commands-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .command-tab {
        width: 100%;
        text-align: center;
    }
    
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .command-syntax {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .copy-confirmation {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }
}

/* Swipe Gesture Support */
.commands-tabs-container {
    position: relative;
    touch-action: pan-y;
}

.commands-tabs-container.swiping {
    cursor: grabbing;
}

@media (max-width: 768px) {
    .commands-content {
        touch-action: pan-y;
    }
}
