/* =====================================================
   Bots Page Styles
   ===================================================== */

/* Bots Grid */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: 40px;
}

.bot-card {
    position: relative;
    cursor: pointer;
    animation: slideInUp 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.bot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.bot-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.bot-username {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.bot-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.bot-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.bot-meta-info {
    font-size: 14px;
    color: var(--text-tertiary);
}

.bot-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.bot-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.bot-action-btn.start {
    background: rgba(48, 209, 88, 0.1);
    color: var(--color-success);
}

.bot-action-btn.start:hover {
    background: var(--color-success);
    color: var(--text-white);
}

.bot-action-btn.stop {
    background: rgba(255, 59, 48, 0.1);
    color: var(--color-error);
}

.bot-action-btn.stop:hover {
    background: var(--color-error);
    color: var(--text-white);
}

.bot-action-btn.more {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.bot-action-btn.more:hover {
    background: var(--color-primary);
    color: var(--text-white);
}

/* Loading state */
.loading-state {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

/* Modal Actions */
.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.modal-actions .btn {
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .page-actions {
        justify-content: center;
        margin-top: 10px;
    }

    .bots-grid,
    .loading-state {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }
}

/* Animation for bot cards */
.bot-card:nth-child(1) {
    animation-delay: 0.1s;
}
.bot-card:nth-child(2) {
    animation-delay: 0.2s;
}
.bot-card:nth-child(3) {
    animation-delay: 0.3s;
}
.bot-card:nth-child(4) {
    animation-delay: 0.4s;
}
.bot-card:nth-child(5) {
    animation-delay: 0.5s;
}
.bot-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
