/* Стили для сетки информации о боте */
.bot-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Стили для секции команд */
.commands-section {
    margin: 3rem 0;
}

.commands-section .section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.commands-section h3 {
    font-size: 2rem;
    color: #e8b4e1;
    margin: 0 0 1rem 0;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(228, 180, 225, 0.3);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.command-card {
    background: rgba(45, 27, 78, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(196, 122, 255, 0.3);
    box-shadow: 0 4px 15px rgba(156, 89, 209, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(156, 89, 209, 0.4);
    border-color: rgba(228, 180, 225, 0.5);
}

.command-card:hover::before {
    left: 100%;
}

.command-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    background: rgba(228, 180, 225, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(228, 180, 225, 0.3);
}

.command-content {
    flex: 1;
    min-width: 0; /* Для правильного переноса длинного текста */
}

.command-name {
    display: block;
    color: #e8b4e1;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(156, 89, 209, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(196, 122, 255, 0.2);
    word-break: break-word;
}

.command-desc {
    color: #f8f0ff;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

/* Анимация появления команд */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-card {
    animation: slideInUp 0.5s ease-out;
}

.command-card:nth-child(2) { animation-delay: 0.05s; }
.command-card:nth-child(3) { animation-delay: 0.1s; }
.command-card:nth-child(4) { animation-delay: 0.15s; }
.command-card:nth-child(5) { animation-delay: 0.2s; }
.command-card:nth-child(6) { animation-delay: 0.25s; }
.command-card:nth-child(7) { animation-delay: 0.3s; }
.command-card:nth-child(8) { animation-delay: 0.35s; }
.command-card:nth-child(9) { animation-delay: 0.4s; }
.command-card:nth-child(10) { animation-delay: 0.45s; }
.command-card:nth-child(11) { animation-delay: 0.5s; }
.command-card:nth-child(12) { animation-delay: 0.55s; }
.command-card:nth-child(13) { animation-delay: 0.6s; }
.command-card:nth-child(14) { animation-delay: 0.65s; }
.command-card:nth-child(15) { animation-delay: 0.7s; }
.command-card:nth-child(16) { animation-delay: 0.75s; }
.command-card:nth-child(17) { animation-delay: 0.8s; }
.command-card:nth-child(18) { animation-delay: 0.85s; }
.command-card:nth-child(19) { animation-delay: 0.9s; }
.command-card:nth-child(20) { animation-delay: 0.95s; }

/* Адаптивность */
@media (max-width: 768px) {
    .commands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .command-card {
        padding: 1.2rem;
    }
    
    .command-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .bot-info-grid {
        grid-template-columns: 1fr;
    }
    
    .commands-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .command-card {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .command-icon {
        align-self: center;
    }
}