/* Robot Cards Display Fix */

/* Fix robot grid layout */
.robots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Fix robot item card structure */
.robot-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.robot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Robot badge positioning */
.robot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #FF3CAC, #FF8A00);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.robot-badge.premium {
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
}

.robot-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Robot image container */
.robot-image {
    height: 200px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.robot-image i {
    font-size: 5rem;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.robot-item:hover .robot-image i {
    transform: scale(1.1) translateY(-5px);
}

/* Robot info section */
.robot-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.robot-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.robot-category {
    color: #5E2BFF;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.robot-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Robot specifications */
.robot-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.spec i {
    font-size: 1.25rem;
    color: #5E2BFF;
}

.spec span {
    white-space: nowrap;
}

/* Robot pricing */
.robot-pricing {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.05), rgba(200, 48, 204, 0.05));
    border-radius: 12px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-option:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

/* Robot actions */
.robot-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.robot-actions .btn-block {
    flex: 1;
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.btn-outline:hover {
    border-color: #5E2BFF;
    color: #5E2BFF;
    background: rgba(94, 43, 255, 0.05);
}

/* Ensure button text is visible */
.btn-primary {
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 43, 255, 0.3);
}

.btn-primary i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .robots-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .robots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .robot-specs {
        padding: 0.75rem;
    }
    
    .spec {
        font-size: 0.75rem;
    }
    
    .spec i {
        font-size: 1rem;
    }
    
    .robot-info h3 {
        font-size: 1.25rem;
    }
    
    .robot-badge {
        top: 15px;
        right: 15px;
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .robot-specs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .spec {
        flex: 0 0 calc(50% - 0.25rem);
    }
    
    .robot-actions {
        flex-direction: column;
    }
    
    .btn-icon {
        width: 100%;
    }
}